From 7bd3f39d472f62fd018be8322e8bc034f2c1a770 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 21 Aug 2026 17:41:44 +0000 Subject: [PATCH 1/2] Milestone 3: AST, transformer core, and the SELECT tree-shape gate Add the typed AST (package ast, DuckDB-native node shapes), the public parser API (Parse/ParseStatement/ParseExpr), and transformers for the full expression layer and SELECT tree: query nodes, set operations (n-ary UNION flattening), CTEs (incl. recursive conversion and USING KEY), table refs, joins, PIVOT/UNPIVOT, samples, windows (named-window resolution), GROUP BY grouping sets, result modifiers, and SHOW/DESCRIBE desugaring. Every upstream transform-time rewrite the pinned build performs is replicated: operator calls as functions, IN/ANY/ALL and BETWEEN desugaring, list comprehensions, ARRAY(subquery), interval literals, star modifiers, prepared-parameter numbering, and constant typing (INTEGER through UHUGEINT, DECIMAL width/scale). internal/serialize renders the AST as json_serialize_sql-compatible JSON; cmd/serialize-diff diffs it statement-by-statement against the pinned DuckDB CLI. The full corpus SELECT subset (25,414 statements) now matches the oracle exactly: 25,301 match, 0 mismatch, 113 skipped (statements the oracle itself refuses to serialize). A deterministic sample of 2,108 statements is vendored as goldens for parser/serialize_test.go; comparator normalizations for upstream's unordered containers are documented on serialize.Equal. The lexer learns upstream's Unicode-whitespace handling, the matcher exposes an Expression entry point for ParseExpr, and debug-parse gains an -ast mode. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01B918Vu4wvBaZcRUX4nkQdr --- ast/ast.go | 107 ++ ast/ddl.go | 456 +++++ ast/expr.go | 484 ++++++ ast/query.go | 201 +++ ast/stmt.go | 251 +++ ast/tableref.go | 206 +++ ast/value.go | 57 + cmd/debug-parse/main.go | 36 +- cmd/serialize-diff/main.go | 276 +++ internal/matcher/engine.go | 18 +- internal/serialize/compare.go | 137 ++ internal/serialize/serialize.go | 675 ++++++++ lexer/lexer.go | 35 +- parser/parser.go | 234 +++ parser/serialize_test.go | 70 + parser/testdata/serialize/README.md | 31 + parser/testdata/serialize/goldens.jsonl | 2108 +++++++++++++++++++++++ parser/transform.go | 193 +++ parser/transform_expr.go | 869 ++++++++++ parser/transform_func.go | 972 +++++++++++ parser/transform_select.go | 876 ++++++++++ parser/transform_single.go | 664 +++++++ parser/transform_tableref.go | 847 +++++++++ parser/transform_type.go | 289 ++++ parser/tree.go | 212 +++ 25 files changed, 10296 insertions(+), 8 deletions(-) create mode 100644 ast/ast.go create mode 100644 ast/ddl.go create mode 100644 ast/expr.go create mode 100644 ast/query.go create mode 100644 ast/stmt.go create mode 100644 ast/tableref.go create mode 100644 ast/value.go create mode 100644 cmd/serialize-diff/main.go create mode 100644 internal/serialize/compare.go create mode 100644 internal/serialize/serialize.go create mode 100644 parser/parser.go create mode 100644 parser/serialize_test.go create mode 100644 parser/testdata/serialize/README.md create mode 100644 parser/testdata/serialize/goldens.jsonl create mode 100644 parser/transform.go create mode 100644 parser/transform_expr.go create mode 100644 parser/transform_func.go create mode 100644 parser/transform_select.go create mode 100644 parser/transform_single.go create mode 100644 parser/transform_tableref.go create mode 100644 parser/transform_type.go create mode 100644 parser/tree.go diff --git a/ast/ast.go b/ast/ast.go new file mode 100644 index 0000000..39fb64d --- /dev/null +++ b/ast/ast.go @@ -0,0 +1,107 @@ +// Package ast defines darkwing's typed syntax tree for the DuckDB SQL +// dialect. Node names follow DuckDB's parsed statement and expression +// classes (SelectStatement, ColumnRefExpression, ...) so the transformer +// and serializer read side-by-side with upstream's transformer/*.cpp; +// sqlc's future convert.go owns the mapping to sqlc's own sql/ast. +package ast + +// Span is a half-open byte range [Start, End) into the original SQL text. +// +// Statement spans tile the input: sqlc slices the source by statement span +// to find `-- name:` comments. Expression spans mirror DuckDB's +// query_location bookkeeping (the position upstream reports in errors and +// json_serialize_sql), which for some nodes is the operator token rather +// than the full extent of the expression. +type Span struct { + Start int `json:"start"` + End int `json:"end"` +} + +// Node is implemented by every syntax tree node. +type Node interface { + // Pos returns the byte offset where the node begins. + Pos() int + // End returns the byte offset just past the node. + End() int + // Children returns the node's direct children, for generic walks. + Children() []Node +} + +// spanned supplies the Span field plus the Pos/End half of Node; every +// concrete node embeds it. +type spanned struct { + Span Span `json:"span"` +} + +func (s *spanned) Pos() int { return s.Span.Start } +func (s *spanned) End() int { return s.Span.End } + +// SetSpan overwrites the node's span; used by the transformer. +func (s *spanned) SetSpan(sp Span) { s.Span = sp } + +// Stmt is implemented by all statement nodes. +type Stmt interface { + Node + stmtNode() +} + +// Expr is implemented by all expression nodes (DuckDB's ParsedExpression +// hierarchy). +type Expr interface { + Node + exprNode() + // GetAlias and SetAlias expose the alias every DuckDB expression + // carries (e.g. `expr AS name` in a select list). + GetAlias() string + SetAlias(string) +} + +// TableRef is implemented by all table reference nodes. +type TableRef interface { + Node + tableRefNode() +} + +// QueryNode is a node of the query tree wrapped by SelectStatement: +// SelectNode, SetOperationNode, RecursiveCTENode or CTENode — DuckDB's +// shape. +type QueryNode interface { + Node + queryNode() + // ModifiersRef exposes the node's result modifier list (ORDER BY, + // LIMIT, ...) for the transformer to append to. + ModifiersRef() *[]ResultModifier + // CTEMapRef exposes the node's CTE map for the transformer. + CTEMapRef() *CTEMap +} + +// ResultModifier is a modifier applied to a query node's result: ORDER BY, +// LIMIT, DISTINCT, LIMIT PERCENT. +type ResultModifier interface { + Node + resultModifierNode() +} + +// exprs converts a []Expr to []Node, skipping nils. The transformer +// stores untyped nils in absent interface fields, so a plain nil check +// suffices. +func exprs(list []Expr) []Node { + nodes := make([]Node, 0, len(list)) + for _, e := range list { + if e != nil { + nodes = append(nodes, e) + } + } + return nodes +} + +// add appends non-nil nodes. Callers pass interface fields directly; the +// transformer never stores typed nils, so a plain nil check suffices. +func add(nodes []Node, extra ...Node) []Node { + for _, n := range extra { + if n != nil { + nodes = append(nodes, n) + } + } + return nodes +} diff --git a/ast/ddl.go b/ast/ddl.go new file mode 100644 index 0000000..06da80b --- /dev/null +++ b/ast/ddl.go @@ -0,0 +1,456 @@ +package ast + +// QualifiedName is a possibly catalog/schema-qualified object name. +type QualifiedName struct { + Catalog string `json:"catalog,omitempty"` + Schema string `json:"schema,omitempty"` + Name string `json:"name"` +} + +// OnCreateConflict mirrors DuckDB's OnCreateConflict: what CREATE does +// when the object exists. +type OnCreateConflict string + +const ( + CreateError OnCreateConflict = "ERROR" + CreateIgnore OnCreateConflict = "IGNORE" // IF NOT EXISTS + CreateReplace OnCreateConflict = "REPLACE" // OR REPLACE +) + +// CreateInfo is implemented by the per-object payloads of +// CreateStatement. +type CreateInfo interface { + Node + createInfo() + // Base returns the shared fields. + Base() *CreateInfoBase +} + +// CreateInfoBase carries the fields shared by every CREATE variant. +type CreateInfoBase struct { + spanned + Catalog string `json:"catalog,omitempty"` + Schema string `json:"schema,omitempty"` + Name string `json:"name"` + OnConflict OnCreateConflict `json:"on_conflict"` + Temporary bool `json:"temporary,omitempty"` +} + +func (b *CreateInfoBase) createInfo() {} +func (b *CreateInfoBase) Base() *CreateInfoBase { return b } + +// CreateStatement is CREATE . Port of CreateStatement. +type CreateStatement struct { + stmtBase + Info CreateInfo `json:"info"` + NamedParams []NamedParam `json:"named_param_map,omitempty"` +} + +func (s *CreateStatement) Children() []Node { return add(nil, s.Info) } + +// GeneratedColumnKind distinguishes VIRTUAL and STORED generated +// columns. +type GeneratedColumnKind string + +const ( + GeneratedVirtual GeneratedColumnKind = "VIRTUAL" + GeneratedStored GeneratedColumnKind = "STORED" +) + +// ColumnDef is one column of CREATE TABLE (or ALTER TABLE ADD COLUMN). +// Port of ColumnDefinition; the parsed column constraints stay attached +// here rather than being flattened, for sqlc's benefit. +type ColumnDef struct { + spanned + // Names is the (possibly dotted) column name path. + Names []string `json:"names"` + Type *TypeExpression `json:"type,omitempty"` + // Generated is set for generated columns; Default holds the + // generation expression in that case, mirroring upstream. + Generated GeneratedColumnKind `json:"generated,omitempty"` + Default Expr `json:"default,omitempty"` + Constraints []Constraint `json:"constraints,omitempty"` + Collation string `json:"collation,omitempty"` + Compression string `json:"compression,omitempty"` +} + +func (c *ColumnDef) Children() []Node { + var nodes []Node + if c.Type != nil { + nodes = add(nodes, c.Type) + } + nodes = add(nodes, c.Default) + for _, con := range c.Constraints { + nodes = add(nodes, con) + } + return nodes +} + +// Constraint is a table or column constraint. +type Constraint interface { + Node + constraintNode() +} + +type constraintBase struct { + spanned + // Name is the optional CONSTRAINT name. + Name string `json:"name,omitempty"` +} + +func (c *constraintBase) constraintNode() {} + +// NotNullConstraint is NOT NULL (Negated false) or NULL (Negated true). +type NotNullConstraint struct { + constraintBase + // Null is true for an explicit NULL constraint. + Null bool `json:"null,omitempty"` +} + +func (c *NotNullConstraint) Children() []Node { return nil } + +// UniqueConstraint is UNIQUE or PRIMARY KEY, as a column constraint +// (Columns empty) or a table constraint (Columns set). +type UniqueConstraint struct { + constraintBase + IsPrimaryKey bool `json:"is_primary_key,omitempty"` + Columns []string `json:"columns,omitempty"` +} + +func (c *UniqueConstraint) Children() []Node { return nil } + +// CheckConstraint is CHECK (expr). +type CheckConstraint struct { + constraintBase + Expr Expr `json:"expression"` +} + +func (c *CheckConstraint) Children() []Node { return add(nil, c.Expr) } + +// DefaultConstraint is a column DEFAULT clause. +type DefaultConstraint struct { + constraintBase + Expr Expr `json:"expression"` +} + +func (c *DefaultConstraint) Children() []Node { return add(nil, c.Expr) } + +// KeyAction mirrors foreign-key referential actions. +type KeyAction string + +const ( + KeyActionNone KeyAction = "NO ACTION" + KeyActionRestrict KeyAction = "RESTRICT" + KeyActionCascade KeyAction = "CASCADE" + KeyActionSetNull KeyAction = "SET NULL" + KeyActionSetDefault KeyAction = "SET DEFAULT" +) + +// ForeignKeyConstraint is REFERENCES / FOREIGN KEY. +type ForeignKeyConstraint struct { + constraintBase + // Columns are the referencing columns (table-level form only). + Columns []string `json:"columns,omitempty"` + // Referenced table and columns. + Table QualifiedName `json:"table"` + ReferencedColumns []string `json:"referenced_columns,omitempty"` + OnUpdate KeyAction `json:"on_update,omitempty"` + OnDelete KeyAction `json:"on_delete,omitempty"` +} + +func (c *ForeignKeyConstraint) Children() []Node { return nil } + +// CreateTableInfo is CREATE TABLE. Port of CreateTableInfo. +type CreateTableInfo struct { + CreateInfoBase + Columns []ColumnDef `json:"columns,omitempty"` + Constraints []Constraint `json:"constraints,omitempty"` + // Query is CREATE TABLE ... AS. + Query *SelectStatement `json:"query,omitempty"` + // QueryAliases are the CTAS column aliases (`CREATE TABLE t (a, b) AS`). + QueryAliases []string `json:"query_aliases,omitempty"` +} + +func (i *CreateTableInfo) Children() []Node { + var nodes []Node + for j := range i.Columns { + nodes = add(nodes, &i.Columns[j]) + } + for _, c := range i.Constraints { + nodes = add(nodes, c) + } + return add(nodes, i.Query) +} + +// CreateViewInfo is CREATE VIEW. Port of CreateViewInfo. +type CreateViewInfo struct { + CreateInfoBase + Recursive bool `json:"recursive,omitempty"` + Aliases []string `json:"aliases,omitempty"` + Query *SelectStatement `json:"query"` +} + +func (i *CreateViewInfo) Children() []Node { return add(nil, i.Query) } + +// CreateSchemaInfo is CREATE SCHEMA. Port of CreateSchemaInfo. +type CreateSchemaInfo struct { + CreateInfoBase +} + +func (i *CreateSchemaInfo) Children() []Node { return nil } + +// IndexElement is one indexed expression with its ordering. +type IndexElement struct { + Expr Expr `json:"expression"` + OrderType OrderType `json:"order_type,omitempty"` + NullOrder NullOrder `json:"null_order,omitempty"` +} + +// CreateIndexInfo is CREATE INDEX. Port of CreateIndexInfo. +type CreateIndexInfo struct { + CreateInfoBase + Unique bool `json:"unique,omitempty"` + Table QualifiedName `json:"table"` + // IndexType is the USING method (ART by default upstream; recorded + // verbatim here). + IndexType string `json:"index_type,omitempty"` + Elements []IndexElement `json:"elements,omitempty"` + Where Expr `json:"where,omitempty"` +} + +func (i *CreateIndexInfo) Children() []Node { + var nodes []Node + for j := range i.Elements { + nodes = add(nodes, i.Elements[j].Expr) + } + return add(nodes, i.Where) +} + +// CreateSequenceInfo is CREATE SEQUENCE. Port of CreateSequenceInfo. +// Option expressions stay as expressions (DuckDB evaluates them at bind +// time). +type CreateSequenceInfo struct { + CreateInfoBase + Increment Expr `json:"increment,omitempty"` + MinValue Expr `json:"min_value,omitempty"` + MaxValue Expr `json:"max_value,omitempty"` + StartValue Expr `json:"start_value,omitempty"` + // NoMinValue / NoMaxValue record explicit NO MINVALUE / NO MAXVALUE. + NoMinValue bool `json:"no_min_value,omitempty"` + NoMaxValue bool `json:"no_max_value,omitempty"` + // Cycle records CYCLE (true) / NO CYCLE (false, the default). + Cycle bool `json:"cycle,omitempty"` + // OwnedBy is the OWNED BY target. + OwnedBy *QualifiedName `json:"owned_by,omitempty"` +} + +func (i *CreateSequenceInfo) Children() []Node { + return add(nil, i.Increment, i.MinValue, i.MaxValue, i.StartValue) +} + +// CreateTypeInfo is CREATE TYPE. Port of CreateTypeInfo. +type CreateTypeInfo struct { + CreateInfoBase + // Type is the aliased type (`CREATE TYPE t AS `). + Type *TypeExpression `json:"type,omitempty"` + // EnumValues is `AS ENUM ('a', 'b')`. + EnumValues []string `json:"enum_values,omitempty"` + // EnumQuery is `AS ENUM (SELECT ...)`. + EnumQuery *SelectStatement `json:"enum_query,omitempty"` + // IsEnum distinguishes an empty enum list from a missing one. + IsEnum bool `json:"is_enum,omitempty"` +} + +func (i *CreateTypeInfo) Children() []Node { + var nodes []Node + if i.Type != nil { + nodes = add(nodes, i.Type) + } + return add(nodes, i.EnumQuery) +} + +// DropType names the object family a DROP statement targets. +type DropType string + +const ( + DropTable DropType = "TABLE" + DropView DropType = "VIEW" + DropMaterializedView DropType = "MATERIALIZED_VIEW" + DropSchema DropType = "SCHEMA" + DropIndex DropType = "INDEX" + DropSequence DropType = "SEQUENCE" + DropCollation DropType = "COLLATION" + DropTypeType DropType = "TYPE" + DropMacro DropType = "MACRO" + DropMacroTable DropType = "MACRO_TABLE" + DropFunction DropType = "FUNCTION" + DropSecret DropType = "SECRET" + DropTrigger DropType = "TRIGGER" +) + +// DropStatement is DROP . Port of DropStatement; the grammar +// allows a list of names, kept as-is. +type DropStatement struct { + stmtBase + DropType DropType `json:"drop_type"` + IfExists bool `json:"if_exists,omitempty"` + Names []QualifiedName `json:"names"` + // Cascade is CASCADE (true) / RESTRICT or absent (false). + Cascade bool `json:"cascade,omitempty"` + // Temporary and Storage apply to DROP SECRET. + Temporary bool `json:"temporary,omitempty"` + Storage string `json:"storage,omitempty"` + NamedParams []NamedParam `json:"named_param_map,omitempty"` +} + +func (s *DropStatement) Children() []Node { return nil } + +// AlterInfo is one ALTER action; a single ALTER TABLE statement can +// carry several. +type AlterInfo interface { + Node + alterInfo() +} + +type alterInfoBase struct { + spanned +} + +func (a *alterInfoBase) alterInfo() {} + +// AlterEntityKind is what kind of object an AlterStatement targets. +type AlterEntityKind string + +const ( + AlterEntityTable AlterEntityKind = "TABLE" + AlterEntityView AlterEntityKind = "VIEW" + AlterEntitySequence AlterEntityKind = "SEQUENCE" + AlterEntityDatabase AlterEntityKind = "DATABASE" + AlterEntitySchema AlterEntityKind = "SCHEMA" +) + +// AlterStatement is ALTER TABLE/VIEW/SEQUENCE/DATABASE/SCHEMA. Port of +// AlterStatement. +type AlterStatement struct { + stmtBase + Entity AlterEntityKind `json:"entity"` + IfExists bool `json:"if_exists,omitempty"` + Name QualifiedName `json:"name"` + Actions []AlterInfo `json:"actions"` + NamedParams []NamedParam `json:"named_param_map,omitempty"` +} + +func (s *AlterStatement) Children() []Node { + var nodes []Node + for _, a := range s.Actions { + nodes = add(nodes, a) + } + return nodes +} + +// AddColumnInfo is ALTER TABLE ADD COLUMN. +type AddColumnInfo struct { + alterInfoBase + IfNotExists bool `json:"if_not_exists,omitempty"` + Column ColumnDef `json:"column"` +} + +func (a *AddColumnInfo) Children() []Node { return add(nil, &a.Column) } + +// DropColumnInfo is ALTER TABLE DROP COLUMN. +type DropColumnInfo struct { + alterInfoBase + IfExists bool `json:"if_exists,omitempty"` + Column []string `json:"column"` + Cascade bool `json:"cascade,omitempty"` +} + +func (a *DropColumnInfo) Children() []Node { return nil } + +// AlterColumnTypeInfo is ALTER TABLE ALTER COLUMN ... [SET DATA] TYPE. +type AlterColumnTypeInfo struct { + alterInfoBase + Column []string `json:"column"` + Type *TypeExpression `json:"type,omitempty"` + Using Expr `json:"using,omitempty"` +} + +func (a *AlterColumnTypeInfo) Children() []Node { + var nodes []Node + if a.Type != nil { + nodes = add(nodes, a.Type) + } + return add(nodes, a.Using) +} + +// SetDefaultInfo is ALTER COLUMN ... SET DEFAULT / DROP DEFAULT (nil +// Expr). +type SetDefaultInfo struct { + alterInfoBase + Column []string `json:"column"` + Expr Expr `json:"expression,omitempty"` +} + +func (a *SetDefaultInfo) Children() []Node { return add(nil, a.Expr) } + +// SetNotNullInfo is ALTER COLUMN ... SET/DROP NOT NULL. +type SetNotNullInfo struct { + alterInfoBase + Column []string `json:"column"` + // Drop is true for DROP NOT NULL. + Drop bool `json:"drop,omitempty"` +} + +func (a *SetNotNullInfo) Children() []Node { return nil } + +// RenameColumnInfo is ALTER TABLE RENAME COLUMN. +type RenameColumnInfo struct { + alterInfoBase + Column []string `json:"column"` + NewName string `json:"new_name"` +} + +func (a *RenameColumnInfo) Children() []Node { return nil } + +// RenameInfo is ALTER ... RENAME TO. +type RenameInfo struct { + alterInfoBase + NewName string `json:"new_name"` +} + +func (a *RenameInfo) Children() []Node { return nil } + +// AddConstraintInfo is ALTER TABLE ADD . +type AddConstraintInfo struct { + alterInfoBase + Constraint Constraint `json:"constraint"` +} + +func (a *AddConstraintInfo) Children() []Node { return add(nil, a.Constraint) } + +// SetSequenceOptionInfo is ALTER SEQUENCE . +type SetSequenceOptionInfo struct { + alterInfoBase + Options CreateSequenceInfo `json:"options"` +} + +func (a *SetSequenceOptionInfo) Children() []Node { return a.Options.Children() } + +// SetDatabaseAliasInfo is ALTER DATABASE ... SET ALIAS TO. +type SetDatabaseAliasInfo struct { + alterInfoBase + NewName string `json:"new_name"` +} + +func (a *SetDatabaseAliasInfo) Children() []Node { return nil } + +// GenericAlterInfo covers the remaining ALTER TABLE options darkwing +// records but does not model structurally (partitioning, rel options). +type GenericAlterInfo struct { + alterInfoBase + // Kind names the option (e.g. "SET_PARTITIONED_BY"). + Kind string `json:"kind"` + Expressions []Expr `json:"expressions,omitempty"` +} + +func (a *GenericAlterInfo) Children() []Node { return exprs(a.Expressions) } diff --git a/ast/expr.go b/ast/expr.go new file mode 100644 index 0000000..4e41990 --- /dev/null +++ b/ast/expr.go @@ -0,0 +1,484 @@ +package ast + +// ExpressionType mirrors DuckDB's ExpressionType enum, spelled exactly as +// json_serialize_sql serializes it (e.g. COMPARE_EQUAL, OPERATOR_NOT). +type ExpressionType string + +const ( + // Comparisons. + CompareEqual ExpressionType = "COMPARE_EQUAL" + CompareNotEqual ExpressionType = "COMPARE_NOTEQUAL" + CompareLessThan ExpressionType = "COMPARE_LESSTHAN" + CompareGreaterThan ExpressionType = "COMPARE_GREATERTHAN" + CompareLessThanOrEqual ExpressionType = "COMPARE_LESSTHANOREQUALTO" + CompareGreaterThanOrEqual ExpressionType = "COMPARE_GREATERTHANOREQUALTO" + CompareDistinctFrom ExpressionType = "COMPARE_DISTINCT_FROM" + CompareNotDistinctFrom ExpressionType = "COMPARE_NOT_DISTINCT_FROM" + CompareIn ExpressionType = "COMPARE_IN" + CompareNotIn ExpressionType = "COMPARE_NOT_IN" + CompareBetween ExpressionType = "COMPARE_BETWEEN" + + // Conjunctions. + ConjunctionAnd ExpressionType = "CONJUNCTION_AND" + ConjunctionOr ExpressionType = "CONJUNCTION_OR" + + // Operators. + OperatorNot ExpressionType = "OPERATOR_NOT" + OperatorIsNull ExpressionType = "OPERATOR_IS_NULL" + OperatorIsNotNull ExpressionType = "OPERATOR_IS_NOT_NULL" + OperatorCoalesce ExpressionType = "OPERATOR_COALESCE" + OperatorTry ExpressionType = "OPERATOR_TRY" + OperatorUnpack ExpressionType = "OPERATOR_UNPACK" + OperatorCast ExpressionType = "OPERATOR_CAST" + ArrayExtract ExpressionType = "ARRAY_EXTRACT" + ArraySlice ExpressionType = "ARRAY_SLICE" + ArrayConstructor ExpressionType = "ARRAY_CONSTRUCTOR" + StructExtract ExpressionType = "STRUCT_EXTRACT" + GroupingFunction ExpressionType = "GROUPING_FUNCTION" + + // Invalid marks an absent comparison (SubqueryExpression on EXISTS / + // SCALAR subqueries). + InvalidExpressionType ExpressionType = "INVALID" +) + +// exprBase carries the fields every DuckDB ParsedExpression has: the query +// location (as Span) and the alias. +type exprBase struct { + spanned + Alias string `json:"alias,omitempty"` +} + +func (e *exprBase) exprNode() {} +func (e *exprBase) GetAlias() string { return e.Alias } +func (e *exprBase) SetAlias(a string) { e.Alias = a } + +// ColumnRefExpression is an unresolved column reference: the dotted parts +// in source order (column, table.column, ...). Port of DuckDB's +// ColumnRefExpression. +type ColumnRefExpression struct { + exprBase + ColumnNames []string `json:"column_names"` +} + +func (e *ColumnRefExpression) Children() []Node { return nil } + +// ConstantExpression is a literal value. Port of ConstantExpression. +type ConstantExpression struct { + exprBase + Value Value `json:"value"` +} + +func (e *ConstantExpression) Children() []Node { return nil } + +// ParameterKind distinguishes the four prepared-parameter spellings. +type ParameterKind uint8 + +const ( + // ParameterAnonymous is `?` (auto-numbered in order of appearance). + ParameterAnonymous ParameterKind = iota + // ParameterQuestionNumbered is `?3`. + ParameterQuestionNumbered + // ParameterNumbered is `$3`. + ParameterNumbered + // ParameterNamed is `$name`. + ParameterNamed +) + +// ParameterExpression is a prepared-statement parameter — the single most +// important node for sqlc's parameter inference: the spelling kind, the +// resolved number, and the name (for `$name`) are all preserved. Port of +// ParameterExpression. +type ParameterExpression struct { + exprBase + Kind ParameterKind `json:"kind"` + // Number is the parameter's 1-based index: explicit for `$3`/`?3`, + // assigned in order of appearance for `?`, and assigned in order of + // first use for `$name`. + Number int `json:"number"` + // Name is the identifier for `$name` parameters. + Name string `json:"name,omitempty"` +} + +func (e *ParameterExpression) Children() []Node { return nil } + +// Identifier returns DuckDB's parameter identifier: the name for named +// parameters, the decimal number otherwise. +func (e *ParameterExpression) Identifier() string { + if e.Kind == ParameterNamed { + return e.Name + } + return itoa(e.Number) +} + +func itoa(n int) string { + if n == 0 { + return "0" + } + neg := n < 0 + if neg { + n = -n + } + var buf [24]byte + i := len(buf) + for n > 0 { + i-- + buf[i] = byte('0' + n%10) + n /= 10 + } + if neg { + i-- + buf[i] = '-' + } + return string(buf[i:]) +} + +// FunctionArgument is one (possibly named) argument of a function call. +type FunctionArgument struct { + Name string `json:"name,omitempty"` + Expr Expr `json:"expression"` +} + +// FunctionExpression is a function call — including binary and prefix +// operators, which DuckDB's transformer represents as operator-named +// functions (`+`, `~~`, ...) with IsOperator set. Port of +// FunctionExpression. +type FunctionExpression struct { + exprBase + Catalog string `json:"catalog,omitempty"` + Schema string `json:"schema,omitempty"` + FunctionName string `json:"function_name"` + Arguments []FunctionArgument `json:"arguments"` + Distinct bool `json:"distinct,omitempty"` + IsOperator bool `json:"is_operator,omitempty"` + ExportState bool `json:"export_state,omitempty"` + Filter Expr `json:"filter,omitempty"` + OrderBys []OrderByNode `json:"order_bys,omitempty"` +} + +func (e *FunctionExpression) Children() []Node { + var nodes []Node + for _, a := range e.Arguments { + nodes = add(nodes, a.Expr) + } + nodes = add(nodes, e.Filter) + for i := range e.OrderBys { + nodes = add(nodes, e.OrderBys[i].Expression) + } + return nodes +} + +// OperatorExpression is an n-ary special operator (NOT, IS NULL, IN, +// array indexing, ...). Port of OperatorExpression. +type OperatorExpression struct { + exprBase + Type ExpressionType `json:"type"` + Operands []Expr `json:"children"` +} + +func (e *OperatorExpression) Children() []Node { return exprs(e.Operands) } + +// ComparisonExpression is a binary comparison. Port of +// ComparisonExpression. +type ComparisonExpression struct { + exprBase + Type ExpressionType `json:"type"` + Left Expr `json:"left"` + Right Expr `json:"right"` +} + +func (e *ComparisonExpression) Children() []Node { return add(nil, e.Left, e.Right) } + +// ConjunctionExpression is an AND/OR chain. Port of +// ConjunctionExpression. +type ConjunctionExpression struct { + exprBase + Type ExpressionType `json:"type"` + Operands []Expr `json:"children"` +} + +func (e *ConjunctionExpression) Children() []Node { return exprs(e.Operands) } + +// CastExpression is CAST/TRY_CAST/`::`. Port of CastExpression. The +// target is an unbound type expression (DuckDB v2 resolves types at bind +// time), except for the plain INTERVAL type which the transformer +// pre-resolves. +type CastExpression struct { + exprBase + Child Expr `json:"child"` + // CastType is the unbound target type; nil when ResolvedType is set. + CastType *TypeExpression `json:"cast_type,omitempty"` + // ResolvedType is a pre-resolved logical type id (only "INTERVAL" and + // the internal casts the transformer synthesizes). + ResolvedType string `json:"resolved_type,omitempty"` + TryCast bool `json:"try_cast,omitempty"` +} + +func (e *CastExpression) Children() []Node { return add(add(nil, e.Child), nodeOrNil(e.CastType)) } + +func nodeOrNil(t *TypeExpression) Node { + if t == nil { + return nil + } + return t +} + +// CaseCheck is one WHEN/THEN arm. +type CaseCheck struct { + When Expr `json:"when_expr"` + Then Expr `json:"then_expr"` +} + +// CaseExpression is CASE [expr] WHEN ... THEN ... ELSE ... END; the +// transformer rewrites the `CASE expr WHEN v` form into `WHEN expr = v` +// like upstream. Port of CaseExpression. +type CaseExpression struct { + exprBase + CaseChecks []CaseCheck `json:"case_checks"` + ElseExpr Expr `json:"else_expr"` +} + +func (e *CaseExpression) Children() []Node { + var nodes []Node + for _, c := range e.CaseChecks { + nodes = add(nodes, c.When, c.Then) + } + return add(nodes, e.ElseExpr) +} + +// SubqueryType is DuckDB's SubqueryType enum. +type SubqueryType string + +const ( + SubqueryScalar SubqueryType = "SCALAR" + SubqueryExists SubqueryType = "EXISTS" + SubqueryAny SubqueryType = "ANY" +) + +// SubqueryExpression is a scalar/EXISTS/ANY subquery; `x IN (SELECT ...)` +// and quantified comparisons desugar to ANY. Port of SubqueryExpression. +type SubqueryExpression struct { + exprBase + SubqueryType SubqueryType `json:"subquery_type"` + Subquery *SelectStatement `json:"subquery"` + // Child is the left-hand side for ANY subqueries. + Child Expr `json:"child,omitempty"` + // ComparisonType is the comparison for ANY subqueries; INVALID + // otherwise. + ComparisonType ExpressionType `json:"comparison_type"` +} + +func (e *SubqueryExpression) Children() []Node { return add(add(nil, e.Child), e.Subquery) } + +// StarReplaceEntry is one `expr AS name` inside `* REPLACE (...)`. +type StarReplaceEntry struct { + Key string `json:"key"` + Expr Expr `json:"value"` +} + +// StarRenameEntry is one `name AS newname` inside `* RENAME (...)`. +type StarRenameEntry struct { + Key QualifiedColumnName `json:"key"` + Name string `json:"value"` +} + +// QualifiedColumnName is a dotted column path (for qualified EXCLUDE / +// RENAME entries). +type QualifiedColumnName struct { + Path []string `json:"path"` +} + +// StarExpression is `*`, `t.*`, `COLUMNS(...)` and their EXCLUDE / +// REPLACE / RENAME modifiers. Port of StarExpression. +type StarExpression struct { + exprBase + RelationName string `json:"relation_name,omitempty"` + // ExcludeList holds unqualified excluded names; QualifiedExcludeList + // holds dotted ones (upstream keeps them separate). + ExcludeList []string `json:"exclude_list,omitempty"` + QualifiedExcludeList []QualifiedColumnName `json:"qualified_exclude_list,omitempty"` + ReplaceList []StarReplaceEntry `json:"replace_list,omitempty"` + RenameList []StarRenameEntry `json:"rename_list,omitempty"` + // Columns marks COLUMNS(...); Expr is its argument (pattern or + // lambda), or nil for COLUMNS(*). + Columns bool `json:"columns,omitempty"` + Expr Expr `json:"expr,omitempty"` +} + +func (e *StarExpression) Children() []Node { + var nodes []Node + for _, r := range e.ReplaceList { + nodes = add(nodes, r.Expr) + } + return add(nodes, e.Expr) +} + +// LambdaSyntaxType records which spelling produced a lambda. +type LambdaSyntaxType string + +const ( + LambdaSingleArrow LambdaSyntaxType = "SINGLE_ARROW" + LambdaKeyword LambdaSyntaxType = "LAMBDA_KEYWORD" +) + +// LambdaExpression is `x -> expr` or `LAMBDA x, y : expr`. LHS is a +// column ref (single parameter) or row function call (parameter list), +// mirroring upstream. Port of LambdaExpression. +type LambdaExpression struct { + exprBase + LHS Expr `json:"lhs"` + Expr Expr `json:"expr"` + SyntaxType LambdaSyntaxType `json:"syntax_type"` +} + +func (e *LambdaExpression) Children() []Node { return add(nil, e.LHS, e.Expr) } + +// BetweenExpression is `input BETWEEN lower AND upper`. Port of +// BetweenExpression. +type BetweenExpression struct { + exprBase + Input Expr `json:"input"` + Lower Expr `json:"lower"` + Upper Expr `json:"upper"` +} + +func (e *BetweenExpression) Children() []Node { return add(nil, e.Input, e.Lower, e.Upper) } + +// CollateExpression is `child COLLATE collation`. Port of +// CollateExpression. +type CollateExpression struct { + exprBase + Child Expr `json:"child"` + Collation string `json:"collation"` +} + +func (e *CollateExpression) Children() []Node { return add(nil, e.Child) } + +// PositionalReferenceExpression is `#n`. Port of +// PositionalReferenceExpression. +type PositionalReferenceExpression struct { + exprBase + Index uint64 `json:"index"` +} + +func (e *PositionalReferenceExpression) Children() []Node { return nil } + +// DefaultExpression is the DEFAULT keyword in expression position. Port +// of DefaultExpression. +type DefaultExpression struct { + exprBase +} + +func (e *DefaultExpression) Children() []Node { return nil } + +// TypeExpression is an unbound type in expression position — DuckDB v2 +// defers type resolution to the binder, so `CAST(x AS my.tp(3))` carries +// the type as an expression: qualified name plus modifier/child +// expressions (nested TypeExpressions carry struct field names in their +// alias). Port of upstream's TYPE expression class. +type TypeExpression struct { + exprBase + Catalog string `json:"catalog,omitempty"` + Schema string `json:"schema,omitempty"` + TypeName string `json:"type_name"` + // Args holds type modifiers (constants) and element types (nested + // TypeExpressions; a struct field's name is the child's Alias). + Args []Expr `json:"children,omitempty"` +} + +func (e *TypeExpression) Children() []Node { return exprs(e.Args) } + +// WindowBoundary mirrors DuckDB's WindowBoundary enum spelling. +type WindowBoundary string + +const ( + WindowUnboundedPreceding WindowBoundary = "UNBOUNDED_PRECEDING" + WindowUnboundedFollowing WindowBoundary = "UNBOUNDED_FOLLOWING" + WindowCurrentRowRange WindowBoundary = "CURRENT_ROW_RANGE" + WindowCurrentRowRows WindowBoundary = "CURRENT_ROW_ROWS" + WindowCurrentRowGroups WindowBoundary = "CURRENT_ROW_GROUPS" + WindowExprPrecedingRows WindowBoundary = "EXPR_PRECEDING_ROWS" + WindowExprFollowingRows WindowBoundary = "EXPR_FOLLOWING_ROWS" + WindowExprPrecedingRange WindowBoundary = "EXPR_PRECEDING_RANGE" + WindowExprFollowingRange WindowBoundary = "EXPR_FOLLOWING_RANGE" + WindowExprPrecedingGroups WindowBoundary = "EXPR_PRECEDING_GROUPS" + WindowExprFollowingGroups WindowBoundary = "EXPR_FOLLOWING_GROUPS" +) + +// WindowExcludeClause mirrors DuckDB's WindowExcludeMode spelling. +type WindowExcludeClause string + +const ( + WindowExcludeNoOther WindowExcludeClause = "NO_OTHER" + WindowExcludeCurrentRow WindowExcludeClause = "CURRENT_ROW" + WindowExcludeGroup WindowExcludeClause = "GROUP" + WindowExcludeTies WindowExcludeClause = "TIES" +) + +// WindowExpression is a function call with an OVER clause. Type is the +// specialized WINDOW_* expression type (WINDOW_AGGREGATE for ordinary +// aggregates). Port of WindowExpression. +type WindowExpression struct { + exprBase + Type ExpressionType `json:"type"` + Catalog string `json:"catalog,omitempty"` + Schema string `json:"schema,omitempty"` + FunctionName string `json:"function_name"` + Arguments []FunctionArgument `json:"arguments"` + Partitions []Expr `json:"partitions,omitempty"` + Orders []OrderByNode `json:"orders,omitempty"` + FrameStart WindowBoundary `json:"start"` + FrameEnd WindowBoundary `json:"end"` + StartExpr Expr `json:"start_expr,omitempty"` + EndExpr Expr `json:"end_expr,omitempty"` + OffsetExpr Expr `json:"offset_expr,omitempty"` + DefaultExpr Expr `json:"default_expr,omitempty"` + IgnoreNulls bool `json:"ignore_nulls,omitempty"` + // HasIgnoreNulls records that IGNORE or RESPECT NULLS was written. + HasIgnoreNulls bool `json:"has_ignore_nulls,omitempty"` + Distinct bool `json:"distinct,omitempty"` + FilterExpr Expr `json:"filter_expr,omitempty"` + ExcludeClause WindowExcludeClause `json:"exclude_clause"` + ArgOrders []OrderByNode `json:"arg_orders,omitempty"` +} + +func (e *WindowExpression) Children() []Node { + var nodes []Node + for _, a := range e.Arguments { + nodes = add(nodes, a.Expr) + } + for _, p := range e.Partitions { + nodes = add(nodes, p) + } + for i := range e.Orders { + nodes = add(nodes, e.Orders[i].Expression) + } + for i := range e.ArgOrders { + nodes = add(nodes, e.ArgOrders[i].Expression) + } + return add(nodes, e.StartExpr, e.EndExpr, e.OffsetExpr, e.DefaultExpr, e.FilterExpr) +} + +// OrderType mirrors DuckDB's OrderType spelling. +type OrderType string + +const ( + OrderDefault OrderType = "ORDER_DEFAULT" + OrderAscending OrderType = "ASCENDING" + OrderDescending OrderType = "DESCENDING" +) + +// NullOrder mirrors DuckDB's OrderByNullType spelling (note the spaces). +type NullOrder string + +const ( + NullOrderDefault NullOrder = "ORDER_DEFAULT" + NullsFirst NullOrder = "NULLS FIRST" + NullsLast NullOrder = "NULLS LAST" +) + +// OrderByNode is one ORDER BY entry. +type OrderByNode struct { + Type OrderType `json:"type"` + NullOrder NullOrder `json:"null_order"` + Expression Expr `json:"expression"` +} diff --git a/ast/query.go b/ast/query.go new file mode 100644 index 0000000..b7c4d9b --- /dev/null +++ b/ast/query.go @@ -0,0 +1,201 @@ +package ast + +// CTEMaterialize mirrors DuckDB's CTEMaterialize spelling. +type CTEMaterialize string + +const ( + CTEMaterializeDefault CTEMaterialize = "CTE_MATERIALIZE_DEFAULT" + CTEMaterializeAlways CTEMaterialize = "CTE_MATERIALIZE_ALWAYS" + CTEMaterializeNever CTEMaterialize = "CTE_MATERIALIZE_NEVER" +) + +// CommonTableExpr is one WITH entry. Port of CommonTableExpressionInfo. +type CommonTableExpr struct { + spanned + // Aliases are the parenthesized column aliases (`WITH t(a, b) AS ...`). + Aliases []string `json:"aliases,omitempty"` + Materialized CTEMaterialize `json:"materialized"` + // KeyTargets are the USING KEY expressions. + KeyTargets []Expr `json:"key_targets,omitempty"` + Query QueryNode `json:"query_node"` +} + +func (c *CommonTableExpr) Children() []Node { + return add(exprs(c.KeyTargets), c.Query) +} + +// CTEMapEntry is one named entry of a CTE map, in source order. +type CTEMapEntry struct { + Name string `json:"key"` + CTE *CommonTableExpr `json:"value"` +} + +// CTEMap is the ordered WITH-clause map carried by every query node. +type CTEMap struct { + Entries []CTEMapEntry `json:"map,omitempty"` +} + +// queryNodeBase carries what every DuckDB QueryNode has: result modifiers +// and a CTE map. +type queryNodeBase struct { + spanned + Modifiers []ResultModifier `json:"modifiers,omitempty"` + CTEs CTEMap `json:"cte_map,omitempty"` +} + +func (q *queryNodeBase) queryNode() {} +func (q *queryNodeBase) ModifiersRef() *[]ResultModifier { return &q.Modifiers } +func (q *queryNodeBase) CTEMapRef() *CTEMap { return &q.CTEs } + +func (q *queryNodeBase) baseChildren() []Node { + var nodes []Node + for _, m := range q.Modifiers { + nodes = add(nodes, m) + } + for _, e := range q.CTEs.Entries { + nodes = add(nodes, e.CTE) + } + return nodes +} + +// AggregateHandling mirrors DuckDB's AggregateHandling spelling. +type AggregateHandling string + +const ( + StandardHandling AggregateHandling = "STANDARD_HANDLING" + // ForceAggregates is GROUP BY ALL. + ForceAggregates AggregateHandling = "FORCE_AGGREGATES" +) + +// GroupingSet is one grouping set: indexes into the group expression +// list. +type GroupingSet []int + +// SelectNode is a plain SELECT ... FROM ... query node. Port of +// SelectNode. +type SelectNode struct { + queryNodeBase + SelectList []Expr `json:"select_list"` + FromTable TableRef `json:"from_table,omitempty"` + Where Expr `json:"where_clause,omitempty"` + GroupExpressions []Expr `json:"group_expressions,omitempty"` + GroupSets []GroupingSet `json:"group_sets,omitempty"` + AggregateHandling AggregateHandling `json:"aggregate_handling"` + Having Expr `json:"having,omitempty"` + Qualify Expr `json:"qualify,omitempty"` + Sample *SampleOptions `json:"sample,omitempty"` +} + +func (n *SelectNode) Children() []Node { + nodes := n.baseChildren() + nodes = append(nodes, exprs(n.SelectList)...) + nodes = add(nodes, n.FromTable, n.Where) + nodes = append(nodes, exprs(n.GroupExpressions)...) + return add(nodes, n.Having, n.Qualify) +} + +// SetOperationType mirrors DuckDB's SetOperationType spelling. +type SetOperationType string + +const ( + SetOpUnion SetOperationType = "UNION" + SetOpExcept SetOperationType = "EXCEPT" + SetOpIntersect SetOperationType = "INTERSECT" + SetOpUnionByName SetOperationType = "UNION_BY_NAME" +) + +// SetOperationNode is a UNION/EXCEPT/INTERSECT node. DuckDB v2's set +// operations are n-ary: same-kind UNION chains flatten into one node +// with many inputs. Port of SetOperationNode. +type SetOperationNode struct { + queryNodeBase + SetOpType SetOperationType `json:"setop_type"` + SetOpAll bool `json:"setop_all"` + Inputs []QueryNode `json:"children"` +} + +func (n *SetOperationNode) Children() []Node { + nodes := n.baseChildren() + for _, c := range n.Inputs { + nodes = add(nodes, c) + } + return nodes +} + +// RecursiveCTENode is the body of a recursive CTE: base UNION [ALL] +// recursive part. Port of RecursiveCTENode. +type RecursiveCTENode struct { + queryNodeBase + CTEName string `json:"cte_name"` + UnionAll bool `json:"union_all"` + Left QueryNode `json:"left"` + Right QueryNode `json:"right"` + Aliases []string `json:"aliases,omitempty"` + KeyTargets []Expr `json:"key_targets,omitempty"` +} + +func (n *RecursiveCTENode) Children() []Node { + return add(add(n.baseChildren(), n.Left, n.Right), exprs(n.KeyTargets)...) +} + +// DistinctModifier is SELECT DISTINCT [ON (...)]. Port of +// DistinctModifier. +type DistinctModifier struct { + spanned + DistinctOnTargets []Expr `json:"distinct_on_targets,omitempty"` +} + +func (m *DistinctModifier) resultModifierNode() {} +func (m *DistinctModifier) Children() []Node { return exprs(m.DistinctOnTargets) } + +// OrderModifier is an ORDER BY list. Port of OrderModifier. +type OrderModifier struct { + spanned + Orders []OrderByNode `json:"orders"` +} + +func (m *OrderModifier) resultModifierNode() {} +func (m *OrderModifier) Children() []Node { + var nodes []Node + for i := range m.Orders { + nodes = add(nodes, m.Orders[i].Expression) + } + return nodes +} + +// LimitType distinguishes LIMIT n from LIMIT n%. +type LimitType string + +const ( + LimitRowCount LimitType = "ROW_COUNT" + LimitPercentage LimitType = "PERCENTAGE" +) + +// LimitModifier is LIMIT/OFFSET/FETCH. Port of LimitModifier and +// LimitPercentModifier (folded via LimitType). +type LimitModifier struct { + spanned + Limit Expr `json:"limit,omitempty"` + Offset Expr `json:"offset,omitempty"` + LimitType LimitType `json:"limit_type"` +} + +func (m *LimitModifier) resultModifierNode() {} +func (m *LimitModifier) Children() []Node { return add(nil, m.Limit, m.Offset) } + +// SampleMethod is a sampling method name, capitalized as DuckDB +// serializes it ("System", "Reservoir", "Bernoulli"). +type SampleMethod string + +// SampleOptions is a TABLESAMPLE / USING SAMPLE specification. Port of +// SampleOptions. +type SampleOptions struct { + spanned + SampleSize Value `json:"sample_size"` + IsPercentage bool `json:"is_percentage"` + Method SampleMethod `json:"method"` + Seed int64 `json:"seed"` + Repeatable bool `json:"repeatable"` +} + +func (s *SampleOptions) Children() []Node { return nil } diff --git a/ast/stmt.go b/ast/stmt.go new file mode 100644 index 0000000..ba73107 --- /dev/null +++ b/ast/stmt.go @@ -0,0 +1,251 @@ +package ast + +// stmtBase gives statements their span. Statement spans tile the input +// (see Span). +type stmtBase struct { + spanned +} + +func (s *stmtBase) stmtNode() {} + +// NamedParam is one entry of a statement's parameter map: the parameter +// identifier ("1", "name") and its 1-based index. +type NamedParam struct { + Name string `json:"key"` + Index int `json:"value"` +} + +// SelectStatement wraps a query-node tree. Port of SelectStatement. +type SelectStatement struct { + stmtBase + Node QueryNode `json:"node"` + // NamedParams maps parameter identifiers to indexes, populated only + // on top-level statements (like upstream). + NamedParams []NamedParam `json:"named_param_map,omitempty"` +} + +func (s *SelectStatement) Children() []Node { return add(nil, s.Node) } + +// OnConflictAction mirrors DuckDB's OnConflictAction spelling. +type OnConflictAction string + +const ( + OnConflictThrow OnConflictAction = "THROW" + OnConflictNothing OnConflictAction = "NOTHING" + OnConflictUpdate OnConflictAction = "UPDATE" + OnConflictReplace OnConflictAction = "REPLACE" +) + +// OnConflictInfo is the ON CONFLICT clause of INSERT (and the OR +// REPLACE / OR IGNORE shorthands). Port of OnConflictInfo. +type OnConflictInfo struct { + spanned + Action OnConflictAction `json:"action"` + // IndexedColumns is the conflict target column list. + IndexedColumns []string `json:"indexed_columns,omitempty"` + // ConstraintName is set for ON CONFLICT ON CONSTRAINT name. + ConstraintName string `json:"constraint_name,omitempty"` + // TargetWhere is the WHERE on the conflict target. + TargetWhere Expr `json:"target_where,omitempty"` + // SetInfo is the DO UPDATE SET payload. + SetInfo *UpdateSetInfo `json:"set_info,omitempty"` +} + +func (o *OnConflictInfo) Children() []Node { + nodes := add(nil, o.TargetWhere) + if o.SetInfo != nil { + nodes = add(nodes, o.SetInfo) + } + return nodes +} + +// InsertColumnOrder mirrors DuckDB's InsertColumnOrder. +type InsertColumnOrder string + +const ( + InsertByPosition InsertColumnOrder = "INSERT_BY_POSITION" + InsertByName InsertColumnOrder = "INSERT_BY_NAME" +) + +// InsertStatement is INSERT INTO. Port of InsertStatement. +type InsertStatement struct { + stmtBase + Catalog string `json:"catalog,omitempty"` + Schema string `json:"schema,omitempty"` + Table string `json:"table"` + // TableAlias is `INSERT INTO t AS alias`. + TableAlias string `json:"table_alias,omitempty"` + // Columns is the explicit insert column list. + Columns []string `json:"columns,omitempty"` + ColumnOrder InsertColumnOrder `json:"column_order,omitempty"` + // Query is the inserted data; nil for DEFAULT VALUES. + Query *SelectStatement `json:"select_statement,omitempty"` + DefaultValues bool `json:"default_values,omitempty"` + OnConflict *OnConflictInfo `json:"on_conflict_info,omitempty"` + Returning []Expr `json:"returning_list,omitempty"` + CTEs CTEMap `json:"cte_map,omitempty"` + NamedParams []NamedParam `json:"named_param_map,omitempty"` +} + +func (s *InsertStatement) Children() []Node { + var nodes []Node + for _, e := range s.CTEs.Entries { + nodes = add(nodes, e.CTE) + } + nodes = add(nodes, s.Query) + if s.OnConflict != nil { + nodes = add(nodes, s.OnConflict) + } + return append(nodes, exprs(s.Returning)...) +} + +// UpdateSetInfo is the SET list of UPDATE / ON CONFLICT DO UPDATE / +// MERGE. Port of UpdateSetInfo. +type UpdateSetInfo struct { + spanned + // Columns[i] is assigned Expressions[i]. Nested struct-field targets + // keep their dotted path. + Columns [][]string `json:"columns"` + Expressions []Expr `json:"expressions"` + // Condition is the WHERE of ON CONFLICT DO UPDATE SET ... WHERE. + Condition Expr `json:"condition,omitempty"` +} + +func (u *UpdateSetInfo) Children() []Node { + return add(exprs(u.Expressions), u.Condition) +} + +// UpdateStatement is UPDATE. Port of UpdateStatement. +type UpdateStatement struct { + stmtBase + // Table is the update target (a BaseTableRef). + Table TableRef `json:"table"` + // From is the optional FROM clause. + From TableRef `json:"from_table,omitempty"` + SetInfo *UpdateSetInfo `json:"set_info"` + Where Expr `json:"condition,omitempty"` + Returning []Expr `json:"returning_list,omitempty"` + CTEs CTEMap `json:"cte_map,omitempty"` + NamedParams []NamedParam `json:"named_param_map,omitempty"` +} + +func (s *UpdateStatement) Children() []Node { + var nodes []Node + for _, e := range s.CTEs.Entries { + nodes = add(nodes, e.CTE) + } + nodes = add(nodes, s.Table, s.From) + if s.SetInfo != nil { + nodes = add(nodes, s.SetInfo) + } + nodes = add(nodes, s.Where) + return append(nodes, exprs(s.Returning)...) +} + +// DeleteStatement is DELETE FROM. Port of DeleteStatement. +type DeleteStatement struct { + stmtBase + Table TableRef `json:"table"` + Using []TableRef `json:"using_clauses,omitempty"` + Where Expr `json:"condition,omitempty"` + Returning []Expr `json:"returning_list,omitempty"` + CTEs CTEMap `json:"cte_map,omitempty"` + NamedParams []NamedParam `json:"named_param_map,omitempty"` +} + +func (s *DeleteStatement) Children() []Node { + var nodes []Node + for _, e := range s.CTEs.Entries { + nodes = add(nodes, e.CTE) + } + nodes = add(nodes, s.Table) + for _, u := range s.Using { + nodes = add(nodes, u) + } + nodes = add(nodes, s.Where) + return append(nodes, exprs(s.Returning)...) +} + +// TruncateStatement is TRUNCATE [TABLE] name — parsed as its own +// statement but represented like upstream as a delete without a WHERE. +type TruncateStatement struct { + stmtBase + Table TableRef `json:"table"` + NamedParams []NamedParam `json:"named_param_map,omitempty"` +} + +func (s *TruncateStatement) Children() []Node { return add(nil, s.Table) } + +// MergeActionType mirrors DuckDB's MergeIntoActionType. +type MergeActionType string + +const ( + MergeUpdate MergeActionType = "UPDATE" + MergeDelete MergeActionType = "DELETE" + MergeInsert MergeActionType = "INSERT" + MergeDoNothing MergeActionType = "DO NOTHING" + MergeError MergeActionType = "ERROR" +) + +// MergeMatchKind is the WHEN arm kind of MERGE INTO. +type MergeMatchKind string + +const ( + MergeWhenMatched MergeMatchKind = "MATCHED" + MergeWhenNotMatchedBySource MergeMatchKind = "NOT_MATCHED_BY_SOURCE" + MergeWhenNotMatchedByTarget MergeMatchKind = "NOT_MATCHED_BY_TARGET" +) + +// MergeIntoAction is one WHEN ... THEN arm of MERGE INTO. Port of +// MergeIntoAction. +type MergeIntoAction struct { + spanned + Kind MergeMatchKind `json:"kind"` + Condition Expr `json:"condition,omitempty"` + Action MergeActionType `json:"action_type"` + // SetInfo is the UPDATE SET payload; a nil SetInfo with Action + // MergeUpdate means UPDATE (SET *) by-position shorthand. + SetInfo *UpdateSetInfo `json:"set_info,omitempty"` + // Columns and Expressions are the INSERT payload. + Columns []string `json:"insert_columns,omitempty"` + Expressions []Expr `json:"expressions,omitempty"` + ColumnOrder InsertColumnOrder `json:"column_order,omitempty"` + // DefaultValues is INSERT DEFAULT VALUES. + DefaultValues bool `json:"default_values,omitempty"` + // ErrorExpr is the optional message expression of THEN ERROR. + ErrorExpr Expr `json:"error_expr,omitempty"` +} + +func (a *MergeIntoAction) Children() []Node { + nodes := add(nil, a.Condition) + if a.SetInfo != nil { + nodes = add(nodes, a.SetInfo) + } + nodes = append(nodes, exprs(a.Expressions)...) + return add(nodes, a.ErrorExpr) +} + +// MergeIntoStatement is MERGE INTO. Port of MergeIntoStatement. +type MergeIntoStatement struct { + stmtBase + Target TableRef `json:"target"` + Source TableRef `json:"source"` + JoinCondition Expr `json:"join_condition,omitempty"` + UsingColumns []string `json:"using_columns,omitempty"` + Actions []MergeIntoAction `json:"actions"` + Returning []Expr `json:"returning_list,omitempty"` + CTEs CTEMap `json:"cte_map,omitempty"` + NamedParams []NamedParam `json:"named_param_map,omitempty"` +} + +func (s *MergeIntoStatement) Children() []Node { + var nodes []Node + for _, e := range s.CTEs.Entries { + nodes = add(nodes, e.CTE) + } + nodes = add(nodes, s.Target, s.Source, s.JoinCondition) + for i := range s.Actions { + nodes = add(nodes, &s.Actions[i]) + } + return append(nodes, exprs(s.Returning)...) +} diff --git a/ast/tableref.go b/ast/tableref.go new file mode 100644 index 0000000..5920259 --- /dev/null +++ b/ast/tableref.go @@ -0,0 +1,206 @@ +package ast + +// tableRefBase carries what every DuckDB TableRef has: alias and sample. +type tableRefBase struct { + spanned + Alias string `json:"alias,omitempty"` + Sample *SampleOptions `json:"sample,omitempty"` +} + +func (t *tableRefBase) tableRefNode() {} + +// AtUnit is the unit of an AT clause (time travel). +type AtUnit string + +const ( + AtVersion AtUnit = "VERSION" + AtTimestamp AtUnit = "TIMESTAMP" +) + +// AtClause is `AT (VERSION => ...)` / `AT (TIMESTAMP => ...)`. Port of +// BoundAtClause's parsed form. +type AtClause struct { + spanned + Unit AtUnit `json:"unit"` + Expr Expr `json:"expr"` +} + +func (a *AtClause) Children() []Node { return add(nil, a.Expr) } + +// BaseTableRef is a plain (possibly qualified) table name. Port of +// BaseTableRef. +type BaseTableRef struct { + tableRefBase + CatalogName string `json:"catalog_name,omitempty"` + SchemaName string `json:"schema_name,omitempty"` + TableName string `json:"table_name"` + ColumnNameAlias []string `json:"column_name_alias,omitempty"` + At *AtClause `json:"at_clause,omitempty"` +} + +func (t *BaseTableRef) Children() []Node { + if t.At == nil { + return nil + } + return []Node{t.At} +} + +// EmptyTableRef is the absent FROM clause. Port of EmptyTableRef. +type EmptyTableRef struct { + tableRefBase +} + +func (t *EmptyTableRef) Children() []Node { return nil } + +// JoinType mirrors DuckDB's JoinType spelling. +type JoinType string + +const ( + JoinInner JoinType = "INNER" + JoinLeft JoinType = "LEFT" + JoinRight JoinType = "RIGHT" + JoinFull JoinType = "FULL" + JoinSemi JoinType = "SEMI" + JoinAnti JoinType = "ANTI" +) + +// JoinRefType mirrors DuckDB's JoinRefType spelling. +type JoinRefType string + +const ( + JoinRefRegular JoinRefType = "REGULAR" + JoinRefNatural JoinRefType = "NATURAL" + JoinRefCross JoinRefType = "CROSS" + JoinRefPositional JoinRefType = "POSITIONAL" + JoinRefAsof JoinRefType = "ASOF" + JoinRefNearest JoinRefType = "NEAREST" +) + +// JoinRef is a join between two table refs, including the implicit +// cross joins of comma-separated FROM lists. Port of JoinRef. +type JoinRef struct { + tableRefBase + Left TableRef `json:"left"` + Right TableRef `json:"right"` + Condition Expr `json:"condition,omitempty"` + JoinType JoinType `json:"join_type"` + RefType JoinRefType `json:"ref_type"` + UsingColumns []string `json:"using_columns,omitempty"` + // IsImplicit marks the cross joins synthesized from `FROM a, b`. + IsImplicit bool `json:"is_implicit,omitempty"` + // ColumnNameAlias holds the column aliases of an aliased + // parenthesized join (`(a JOIN b USING (k)) t(x, y)`). + ColumnNameAlias []string `json:"column_name_alias,omitempty"` + // Nearest-join (JOIN ... NEAREST k BY ...) fields. + RankingExpression Expr `json:"ranking_expression,omitempty"` + NearestCount int64 `json:"nearest_count,omitempty"` + NearestOrderType OrderType `json:"nearest_order_type,omitempty"` + NearestApprox bool `json:"nearest_approx,omitempty"` +} + +func (t *JoinRef) Children() []Node { + return add(nil, t.Left, t.Right, t.Condition, t.RankingExpression) +} + +// SubqueryRef is a parenthesized subquery in FROM. Port of SubqueryRef. +type SubqueryRef struct { + tableRefBase + Subquery *SelectStatement `json:"subquery"` + ColumnNameAlias []string `json:"column_name_alias,omitempty"` +} + +func (t *SubqueryRef) Children() []Node { return add(nil, t.Subquery) } + +// TableFunctionRef is a table function call in FROM. Port of +// TableFunctionRef. +type TableFunctionRef struct { + tableRefBase + // Function is the call, a FunctionExpression (or a SubqueryExpression + // argument wrapper for table-in-out functions). + Function Expr `json:"function"` + ColumnNameAlias []string `json:"column_name_alias,omitempty"` + WithOrdinality bool `json:"with_ordinality,omitempty"` +} + +func (t *TableFunctionRef) Children() []Node { return add(nil, t.Function) } + +// ExpressionListRef is a VALUES list used as a table. Port of +// ExpressionListRef. +type ExpressionListRef struct { + tableRefBase + ExpectedNames []string `json:"expected_names,omitempty"` + Values [][]Expr `json:"values"` +} + +func (t *ExpressionListRef) Children() []Node { + var nodes []Node + for _, row := range t.Values { + nodes = append(nodes, exprs(row)...) + } + return nodes +} + +// PivotColumn is one FOR entry of a PIVOT (or the ON list of the +// simplified syntax). Port of PivotColumn. +type PivotColumn struct { + PivotExpressions []Expr `json:"pivot_expressions,omitempty"` + UnpivotNames []string `json:"unpivot_names,omitempty"` + Entries []PivotColumnEntry `json:"entries,omitempty"` + PivotEnum string `json:"pivot_enum,omitempty"` + Subquery *SelectStatement `json:"subquery,omitempty"` +} + +// PivotColumnEntry is one IN entry: literal values plus optional alias. +type PivotColumnEntry struct { + Values []Value `json:"values,omitempty"` + StarExpr Expr `json:"star_expr,omitempty"` + Alias string `json:"alias,omitempty"` + Expr Expr `json:"expr,omitempty"` +} + +// PivotRef is a PIVOT/UNPIVOT table reference (both the statement form, +// which desugars to it, and the table-ref form). Port of PivotRef. +type PivotRef struct { + tableRefBase + Source TableRef `json:"source"` + // Aggregates are the USING aggregates (PIVOT); nil for UNPIVOT. + Aggregates []Expr `json:"aggregates,omitempty"` + // UnpivotNames are the value column names of UNPIVOT. + UnpivotNames []string `json:"unpivot_names,omitempty"` + Pivots []PivotColumn `json:"pivots"` + GroupBy []string `json:"groups,omitempty"` + ColumnNameAlias []string `json:"column_name_alias,omitempty"` + IncludeNulls bool `json:"include_nulls,omitempty"` +} + +func (t *PivotRef) Children() []Node { + nodes := add(nil, t.Source) + return append(nodes, exprs(t.Aggregates)...) +} + +// ShowRefType distinguishes SHOW/DESCRIBE/SUMMARIZE targets. +type ShowType string + +const ( + ShowTypeDescribe ShowType = "DESCRIBE" + ShowTypeSummary ShowType = "SUMMARY" + ShowTypeShowFrom ShowType = "SHOW_FROM" + ShowTypeShowUnqualified ShowType = "SHOW_UNQUALIFIED" +) + +// ShowRef is the relation behind SHOW/DESCRIBE/SUMMARIZE. Port of +// ShowRef. +type ShowRef struct { + tableRefBase + TableName string `json:"table_name,omitempty"` + CatalogName string `json:"catalog_name,omitempty"` + SchemaName string `json:"schema_name,omitempty"` + // Query is set when describing a query (`DESCRIBE SELECT ...`). + Query QueryNode `json:"query,omitempty"` + ShowType ShowType `json:"show_type"` +} + +func (t *ShowRef) Children() []Node { return add(nil, t.Query) } + +// ColumnDataRef only appears in serialized plans, not in parser output; +// it is intentionally absent from darkwing. diff --git a/ast/value.go b/ast/value.go new file mode 100644 index 0000000..5b96ac2 --- /dev/null +++ b/ast/value.go @@ -0,0 +1,57 @@ +package ast + +// LogicalType is the small slice of DuckDB's type system the parser's +// constants can carry: primitives, DECIMAL (width/scale) and LIST (the +// empty-list sentinels in slice bounds). Everything else stays unbound +// (see TypeExpression). +type LogicalType struct { + // ID is the LogicalTypeId spelling as serialized (INTEGER, DECIMAL, + // LIST, ...). + ID string `json:"id"` + // Width and Scale are set for DECIMAL. + Width int `json:"width,omitempty"` + Scale int `json:"scale,omitempty"` + // Child is set for LIST. + Child *LogicalType `json:"child,omitempty"` +} + +// ValueKind discriminates the payload of a Value. +type ValueKind uint8 + +const ( + // ValueNull has no payload. + ValueNull ValueKind = iota + // ValueBool uses Bool. + ValueBool + // ValueInt64 uses Int64 (INTEGER, BIGINT, and the unscaled value of + // DECIMALs up to width 18). + ValueInt64 + // ValueHugeint uses Hugeint (HUGEINT and wider DECIMALs). + ValueHugeint + // ValueDouble uses Float64. + ValueDouble + // ValueString uses Str. + ValueString + // ValueEmptyList has no payload (the slice-bound sentinel). + ValueEmptyList +) + +// Hugeint is a 128-bit signed integer, upper:lower. +type Hugeint struct { + Upper int64 `json:"upper"` + Lower uint64 `json:"lower"` +} + +// Value is a constant value with its DuckDB logical type — the payload of +// a ConstantExpression. Port of duckdb::Value restricted to what the +// transformer produces. +type Value struct { + Type LogicalType `json:"type"` + IsNull bool `json:"is_null,omitempty"` + Kind ValueKind `json:"-"` + Bool bool `json:"bool,omitempty"` + Int64 int64 `json:"int64,omitempty"` + Hugeint Hugeint `json:"hugeint,omitempty"` + Float64 float64 `json:"float64,omitempty"` + Str string `json:"str,omitempty"` +} diff --git a/cmd/debug-parse/main.go b/cmd/debug-parse/main.go index 8388d61..6ec4842 100644 --- a/cmd/debug-parse/main.go +++ b/cmd/debug-parse/main.go @@ -1,14 +1,15 @@ // Command debug-parse tokenizes and matches SQL from the command line, -// dumping either the token stream or the raw ParseResult tree — the -// milestone-1 window into the engine, before transformers and a public -// Parse API exist. +// dumping the token stream, the raw ParseResult tree, or the typed AST +// (as JSON). // // Usage: // -// debug-parse [-tokens] 'SELECT 1' +// debug-parse [-tokens|-ast] 'SELECT 1' package main import ( + "context" + "encoding/json" "flag" "fmt" "os" @@ -16,16 +17,25 @@ import ( "github.com/sqlc-dev/darkwing/internal/matcher" "github.com/sqlc-dev/darkwing/lexer" + "github.com/sqlc-dev/darkwing/parser" ) func main() { tokensOnly := flag.Bool("tokens", false, "dump the token stream instead of the parse tree") + astMode := flag.Bool("ast", false, "dump the typed AST as JSON instead of the parse tree") flag.Parse() if flag.NArg() == 0 { - fmt.Fprintln(os.Stderr, "usage: debug-parse [-tokens] ") + fmt.Fprintln(os.Stderr, "usage: debug-parse [-tokens|-ast] ") os.Exit(2) } sql := strings.Join(flag.Args(), " ") + if *astMode { + if err := runAST(sql); err != nil { + fmt.Fprintf(os.Stderr, "error: %v\n", err) + os.Exit(1) + } + return + } if err := run(sql, *tokensOnly); err != nil { fmt.Fprintf(os.Stderr, "error: %v\n", err) os.Exit(1) @@ -67,3 +77,19 @@ func run(sql string, tokensOnly bool) error { } return nil } + +func runAST(sql string) error { + stmts, err := parser.Parse(context.Background(), strings.NewReader(sql)) + if err != nil { + return err + } + for i, stmt := range stmts { + fmt.Printf("-- statement %d (%T)\n", i+1, stmt) + b, err := json.MarshalIndent(stmt, "", " ") + if err != nil { + return err + } + fmt.Println(string(b)) + } + return nil +} diff --git a/cmd/serialize-diff/main.go b/cmd/serialize-diff/main.go new file mode 100644 index 0000000..23b6600 --- /dev/null +++ b/cmd/serialize-diff/main.go @@ -0,0 +1,276 @@ +// Command serialize-diff compares darkwing's json_serialize_sql-compatible +// output (internal/serialize) against the pinned DuckDB CLI, statement by +// statement — the milestone-3 tree-shape conformance loop. +// +// Usage: +// +// serialize-diff 'SELECT 1' ... # diff specific statements +// serialize-diff -corpus [-limit N] # sweep the SELECT subset of the corpus +// serialize-diff -corpus -quiet # counts only +// +// With -write-goldens, matching statements are sampled into the vendored +// golden file consumed by parser/serialize_test.go: +// +// serialize-diff -corpus -write-goldens parser/testdata/serialize/goldens.jsonl +// +// The oracle binary is located via $DARKWING_DUCKDB (see internal/duckdbsrc). +// Comparison is structural (parsed JSON) via internal/serialize.Equal, +// which documents the normalizations for upstream's unordered containers. +package main + +import ( + "bufio" + "bytes" + "context" + "encoding/json" + "errors" + "flag" + "fmt" + "io/fs" + "os" + "os/exec" + "path/filepath" + "strings" + + "github.com/sqlc-dev/darkwing/ast" + "github.com/sqlc-dev/darkwing/internal/duckdbsrc" + "github.com/sqlc-dev/darkwing/internal/serialize" + "github.com/sqlc-dev/darkwing/internal/testfile" + "github.com/sqlc-dev/darkwing/parser" +) + +func main() { + corpus := flag.Bool("corpus", false, "sweep the SELECT subset of parser/testdata/corpus") + limit := flag.Int("limit", 0, "max corpus statements to check (0 = all)") + quiet := flag.Bool("quiet", false, "print only the summary") + maxPrint := flag.Int("max-print", 10, "max mismatches to print in detail") + verbose := flag.Bool("v", false, "print both JSON trees for each mismatch") + writeGoldens := flag.String("write-goldens", "", "write sampled matching statements to this JSONL golden file") + sampleEvery := flag.Int("sample-every", 20, "with -write-goldens, keep every n-th matching statement") + flag.Parse() + + bin, err := duckdbsrc.Find() + if err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } + + var sqls []string + if *corpus { + sqls, err = corpusSelects(*limit) + if err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } + } else { + sqls = flag.Args() + } + if len(sqls) == 0 { + fmt.Fprintln(os.Stderr, "nothing to check") + os.Exit(2) + } + + oracle, err := oracleSerialize(bin, sqls) + if err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } + + var match, mismatch, skipped, printed int + var goldens []goldenEntry + for i, sql := range sqls { + want := oracle[i] + got, ok := darkwingSerialize(sql) + if !ok { + skipped++ + continue + } + var probe map[string]any + if err := json.Unmarshal([]byte(want), &probe); err != nil { + skipped++ + continue + } + if probe["error"] == true { + // the oracle refused to serialize (non-SELECT reached only via + // transformer desugaring) + skipped++ + continue + } + equal, diff, err := serialize.Equal([]byte(want), got) + if err != nil { + panic(err) + } + if equal { + match++ + if *writeGoldens != "" && match%*sampleEvery == 0 { + goldens = append(goldens, goldenEntry{SQL: sql, JSON: json.RawMessage(want)}) + } + continue + } + mismatch++ + if !*quiet && printed < *maxPrint { + printed++ + fmt.Printf("== MISMATCH: %s\n", sql) + fmt.Printf(" path: %s\n", diff) + if *verbose { + fmt.Printf("-- want:\n%s\n-- got:\n%s\n", indentJSON(want), indentJSON(string(got))) + } + } + } + fmt.Printf("checked %d: %d match, %d mismatch, %d skipped\n", + match+mismatch+skipped, match, mismatch, skipped) + if *writeGoldens != "" { + if err := writeGoldenFile(*writeGoldens, goldens); err != nil { + fmt.Fprintln(os.Stderr, err) + os.Exit(1) + } + fmt.Printf("wrote %d goldens to %s\n", len(goldens), *writeGoldens) + } + if mismatch > 0 { + os.Exit(1) + } +} + +type goldenEntry struct { + SQL string `json:"sql"` + JSON json.RawMessage `json:"json"` +} + +func writeGoldenFile(path string, entries []goldenEntry) error { + if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil { + return err + } + f, err := os.Create(path) + if err != nil { + return err + } + defer f.Close() + w := bufio.NewWriter(f) + for _, e := range entries { + b, err := json.Marshal(e) + if err != nil { + return err + } + w.Write(b) + w.WriteByte('\n') + } + return w.Flush() +} + +func indentJSON(s string) string { + var v any + if err := json.Unmarshal([]byte(s), &v); err != nil { + return s + } + b, _ := json.MarshalIndent(v, "", " ") + return string(b) +} + +// darkwingSerialize parses and serializes; ok is false when the statement +// is not a serializable SELECT (or parsing fails — the accept/reject gate +// owns those). +func darkwingSerialize(sql string) ([]byte, bool) { + defer func() { recover() }() + stmts, err := parser.Parse(context.Background(), strings.NewReader(sql)) + if err != nil || len(stmts) == 0 { + return nil, false + } + for _, s := range stmts { + if _, ok := s.(*ast.SelectStatement); !ok { + return nil, false + } + } + out, err := serialize.Script(stmts) + if err != nil { + return nil, false + } + return out, true +} + +// corpusSelects extracts the must-accept statements that darkwing parses +// into SELECT statements. +func corpusSelects(limit int) ([]string, error) { + var out []string + root := filepath.Join("parser", "testdata", "corpus") + err := filepath.WalkDir(root, func(path string, d fs.DirEntry, err error) error { + if err != nil || d.IsDir() || !strings.HasSuffix(path, ".test") { + return err + } + if limit > 0 && len(out) >= limit { + return fs.SkipAll + } + file, err := testfile.Read(path) + if err != nil { + return err + } + for i := range file.Cases { + c := &file.Cases[i] + if c.Reject { + continue + } + if isSelectOnly(c.SQL) { + out = append(out, c.SQL) + if limit > 0 && len(out) >= limit { + return fs.SkipAll + } + } + } + return nil + }) + return out, err +} + +func isSelectOnly(sql string) (ok bool) { + defer func() { + if recover() != nil { + ok = false + } + }() + stmts, err := parser.Parse(context.Background(), strings.NewReader(sql)) + if err != nil || len(stmts) == 0 { + return false + } + for _, s := range stmts { + if _, isSel := s.(*ast.SelectStatement); !isSel { + return false + } + } + return true +} + +// oracleSerialize runs json_serialize_sql over every statement in one CLI +// invocation, returning raw JSON per input. +func oracleSerialize(bin string, sqls []string) ([]string, error) { + var script bytes.Buffer + script.WriteString(".mode line\n") + for _, sql := range sqls { + escaped := strings.ReplaceAll(sql, "'", "''") + fmt.Fprintf(&script, "SELECT json_serialize_sql('%s') AS j;\n", escaped) + } + cmd := exec.Command(bin, "-batch", "-noheader", "-list", ":memory:") + cmd.Stdin = &script + var stdout bytes.Buffer + cmd.Stdout = &stdout + cmd.Stderr = os.Stderr + if err := cmd.Run(); err != nil { + return nil, fmt.Errorf("oracle run: %w", err) + } + var results []string + scanner := bufio.NewScanner(&stdout) + scanner.Buffer(make([]byte, 1024*1024), 64*1024*1024) + for scanner.Scan() { + line := strings.TrimSpace(scanner.Text()) + line = strings.TrimPrefix(line, "j = ") + if line == "" || line == "j" { + continue + } + results = append(results, line) + } + if err := scanner.Err(); err != nil { + return nil, err + } + if len(results) != len(sqls) { + return nil, errors.New("oracle produced " + fmt.Sprint(len(results)) + " results for " + fmt.Sprint(len(sqls)) + " statements") + } + return results, nil +} diff --git a/internal/matcher/engine.go b/internal/matcher/engine.go index 58e7d4b..416a0ee 100644 --- a/internal/matcher/engine.go +++ b/internal/matcher/engine.go @@ -35,8 +35,9 @@ func (e *MatchError) Error() string { // Match call gets its own packrat cache, as upstream does per top-level // statement. type Engine struct { - root matcher - topLevel matcher + root matcher + topLevel matcher + expression matcher } // New compiles g starting from rootRule. Rules unreachable from rootRule @@ -59,6 +60,10 @@ func New(g *grammar.Grammar, rootRule string) (*Engine, error) { if tls, ok := f.matchers["TopLevelStatement"]; ok { e.topLevel = tls } + // Expression is likewise exposed for ParseExpr + if expr, ok := f.matchers["Expression"]; ok { + e.expression = expr + } return e, nil } @@ -109,6 +114,15 @@ func (e *Engine) MatchTopLevel(tokens []token.Token, pos int) (ParseResult, int, return runMatch(e.topLevel, tokens, pos) } +// MatchExpression matches a single Expression from the start of the +// token stream, the entry point of ParseExpr. +func (e *Engine) MatchExpression(tokens []token.Token) (ParseResult, int, error) { + if e.expression == nil { + return nil, 0, fmt.Errorf("engine has no Expression rule") + } + return runMatch(e.expression, tokens, 0) +} + // MatchAll peels TopLevelStatement matches until the token stream is // consumed - upstream's Parser::ParseQuery loop. On error it returns the // results matched so far alongside the error, so callers can report diff --git a/internal/serialize/compare.go b/internal/serialize/compare.go new file mode 100644 index 0000000..9e8dca2 --- /dev/null +++ b/internal/serialize/compare.go @@ -0,0 +1,137 @@ +package serialize + +import ( + "encoding/json" + "fmt" + "reflect" + "sort" +) + +// Equal compares two json_serialize_sql documents structurally, applying +// the documented normalizations for fields upstream serializes from +// unordered hash containers: +// +// - named_param_map entries are sorted by key +// - exclude_list entries are sorted alphabetically +// - qualified_exclude_list entries are sorted by their rendered form +// +// On mismatch it returns the path of the first difference. +func Equal(want, got []byte) (bool, string, error) { + var wantAny, gotAny any + if err := json.Unmarshal(want, &wantAny); err != nil { + return false, "", fmt.Errorf("parsing expected JSON: %w", err) + } + if err := json.Unmarshal(got, &gotAny); err != nil { + return false, "", fmt.Errorf("parsing actual JSON: %w", err) + } + Normalize(wantAny) + Normalize(gotAny) + if reflect.DeepEqual(wantAny, gotAny) { + return true, "", nil + } + return false, FirstDiff(wantAny, gotAny, "$"), nil +} + +// Normalize applies the comparator normalizations in place. +func Normalize(v any) { + switch t := v.(type) { + case map[string]any: + for k, child := range t { + switch k { + case "named_param_map": + if list, ok := child.([]any); ok { + sort.Slice(list, func(i, j int) bool { + a, _ := list[i].(map[string]any) + b, _ := list[j].(map[string]any) + ka, _ := a["key"].(string) + kb, _ := b["key"].(string) + return ka < kb + }) + } + case "exclude_list": + if list, ok := child.([]any); ok { + sort.Slice(list, func(i, j int) bool { + a, _ := list[i].(string) + b, _ := list[j].(string) + return a < b + }) + } + case "qualified_exclude_list": + if list, ok := child.([]any); ok { + sort.Slice(list, func(i, j int) bool { + a, _ := json.Marshal(list[i]) + b, _ := json.Marshal(list[j]) + return string(a) < string(b) + }) + } + } + Normalize(child) + } + case []any: + for _, child := range t { + Normalize(child) + } + } +} + +// FirstDiff walks two parsed JSON trees and reports the first differing +// path, for readable failure messages. +func FirstDiff(want, got any, path string) string { + switch w := want.(type) { + case map[string]any: + g, ok := got.(map[string]any) + if !ok { + return fmt.Sprintf("%s: want object, got %s", path, describeJSON(got)) + } + var keys []string + for k := range w { + keys = append(keys, k) + } + sort.Strings(keys) + for _, k := range keys { + gv, present := g[k] + if !present { + return fmt.Sprintf("%s.%s: missing in actual output", path, k) + } + if d := FirstDiff(w[k], gv, path+"."+k); d != "" { + return d + } + } + for k := range g { + if _, present := w[k]; !present { + return fmt.Sprintf("%s.%s: extra in actual output", path, k) + } + } + return "" + case []any: + g, ok := got.([]any) + if !ok { + return fmt.Sprintf("%s: want array, got %s", path, describeJSON(got)) + } + if len(w) != len(g) { + return fmt.Sprintf("%s: want %d elements, got %d", path, len(w), len(g)) + } + for i := range w { + if d := FirstDiff(w[i], g[i], fmt.Sprintf("%s[%d]", path, i)); d != "" { + return d + } + } + return "" + default: + if !reflect.DeepEqual(want, got) { + return fmt.Sprintf("%s: want %s, got %s", path, describeJSON(want), describeJSON(got)) + } + return "" + } +} + +func describeJSON(v any) string { + b, err := json.Marshal(v) + if err != nil { + return fmt.Sprint(v) + } + if len(b) > 200 { + b = append(b[:200], []byte("...")...) + } + return string(b) +} diff --git a/internal/serialize/serialize.go b/internal/serialize/serialize.go new file mode 100644 index 0000000..f78d61c --- /dev/null +++ b/internal/serialize/serialize.go @@ -0,0 +1,675 @@ +// Package serialize renders darkwing's AST in json_serialize_sql-compatible +// JSON: the same maps, keys and enum spellings the pinned DuckDB binary +// emits for SELECT statements. The conformance suite diffs this output +// against oracle output structurally (parsed JSON, not bytes), so key +// order is irrelevant; values and shapes are not. +package serialize + +import ( + "encoding/json" + "fmt" + + "github.com/sqlc-dev/darkwing/ast" +) + +// invalidLocation is DuckDB's DConstants::INVALID_INDEX, serialized for +// nodes with no source location. +const invalidLocation = ^uint64(0) + +// Script renders a statement list the way json_serialize_sql renders a +// script: {"error": false, "statements": [...]}. Only SELECT statements +// are supported, mirroring upstream's restriction. +func Script(stmts []ast.Stmt) ([]byte, error) { + out := map[string]any{"error": false} + list := make([]any, 0, len(stmts)) + for _, stmt := range stmts { + sel, ok := stmt.(*ast.SelectStatement) + if !ok { + return nil, fmt.Errorf("serialize: only SELECT statements are supported, got %T", stmt) + } + list = append(list, selectStatement(sel)) + } + out["statements"] = list + return json.Marshal(out) +} + +// SelectStatementJSON renders one statement wrapper ({"node": ..., +// "named_param_map": ...}). +func SelectStatementJSON(sel *ast.SelectStatement) ([]byte, error) { + return json.Marshal(selectStatement(sel)) +} + +func selectStatement(sel *ast.SelectStatement) map[string]any { + params := make([]any, 0, len(sel.NamedParams)) + for _, p := range sel.NamedParams { + params = append(params, map[string]any{"key": p.Name, "value": p.Index}) + } + return map[string]any{ + "node": queryNode(sel.Node), + "named_param_map": params, + } +} + +func location(sp ast.Span) (uint64, uint64) { + if sp.Start < 0 { + return invalidLocation, 0 + } + length := sp.End - sp.Start + if length < 0 { + length = 0 + } + return uint64(sp.Start), uint64(length) +} + +func locate(m map[string]any, sp ast.Span) map[string]any { + loc, length := location(sp) + m["query_location"] = loc + m["query_location_length"] = length + return m +} + +// ---- query nodes ------------------------------------------------------- + +func queryNode(n ast.QueryNode) map[string]any { + if n == nil { + return nil + } + base := map[string]any{ + "modifiers": modifiers(*n.ModifiersRef()), + "cte_map": cteMap(*n.CTEMapRef()), + } + switch node := n.(type) { + case *ast.SelectNode: + base["type"] = "SELECT_NODE" + base["select_list"] = exprList(node.SelectList) + base["from_table"] = tableRef(node.FromTable) + base["where_clause"] = exprOrNil(node.Where) + base["group_expressions"] = exprList(node.GroupExpressions) + base["group_sets"] = groupSets(node.GroupSets) + base["aggregate_handling"] = string(node.AggregateHandling) + base["having"] = exprOrNil(node.Having) + base["sample"] = sampleOptions(node.Sample) + base["qualify"] = exprOrNil(node.Qualify) + case *ast.SetOperationNode: + children := make([]any, 0, len(node.Inputs)) + for _, c := range node.Inputs { + children = append(children, queryNode(c)) + } + base["type"] = "SET_OPERATION_NODE" + base["setop_type"] = string(node.SetOpType) + base["setop_all"] = node.SetOpAll + base["left"] = nil + base["right"] = nil + base["children"] = children + case *ast.RecursiveCTENode: + base["type"] = "RECURSIVE_CTE_NODE" + base["cte_name"] = node.CTEName + base["union_all"] = node.UnionAll + base["left"] = queryNode(node.Left) + base["right"] = queryNode(node.Right) + base["aliases"] = stringList(node.Aliases) + base["key_targets"] = exprList(node.KeyTargets) + default: + panic(fmt.Sprintf("serialize: unknown query node %T", n)) + } + return base +} + +func groupSets(sets []ast.GroupingSet) []any { + out := make([]any, 0, len(sets)) + for _, s := range sets { + set := make([]any, 0, len(s)) + for _, idx := range s { + set = append(set, idx) + } + out = append(out, set) + } + return out +} + +func modifiers(mods []ast.ResultModifier) []any { + out := make([]any, 0, len(mods)) + for _, m := range mods { + switch mod := m.(type) { + case *ast.DistinctModifier: + out = append(out, map[string]any{ + "type": "DISTINCT_MODIFIER", + "distinct_on_targets": exprList(mod.DistinctOnTargets), + }) + case *ast.OrderModifier: + out = append(out, orderModifier(mod.Orders)) + case *ast.LimitModifier: + out = append(out, map[string]any{ + "type": "LIMIT_MODIFIER", + "limit": exprOrNil(mod.Limit), + "offset": exprOrNil(mod.Offset), + "limit_type": string(mod.LimitType), + }) + default: + panic(fmt.Sprintf("serialize: unknown result modifier %T", m)) + } + } + return out +} + +func orderModifier(orders []ast.OrderByNode) map[string]any { + return map[string]any{"type": "ORDER_MODIFIER", "orders": orderList(orders)} +} + +func orderList(orders []ast.OrderByNode) []any { + out := make([]any, 0, len(orders)) + for _, o := range orders { + out = append(out, map[string]any{ + "type": string(o.Type), + "null_order": string(o.NullOrder), + "expression": expr(o.Expression), + }) + } + return out +} + +func cteMap(m ast.CTEMap) map[string]any { + entries := make([]any, 0, len(m.Entries)) + for _, e := range m.Entries { + entries = append(entries, map[string]any{ + "key": e.Name, + "value": map[string]any{ + "aliases": stringList(e.CTE.Aliases), + "materialized": string(e.CTE.Materialized), + "key_targets": exprList(e.CTE.KeyTargets), + "payload_aggregates": []any{}, + "query_node": queryNode(e.CTE.Query), + }, + }) + } + return map[string]any{"map": entries} +} + +// ---- table refs -------------------------------------------------------- + +func tableRef(r ast.TableRef) map[string]any { + if r == nil { + return nil + } + switch ref := r.(type) { + case *ast.EmptyTableRef: + return locate(map[string]any{ + "type": "EMPTY", "alias": ref.Alias, "sample": sampleOptions(ref.Sample), + }, ref.Span) + case *ast.BaseTableRef: + path := []any{} + if ref.CatalogName != "" { + path = append(path, ref.CatalogName) + } + if ref.SchemaName != "" { + path = append(path, ref.SchemaName) + } + path = append(path, ref.TableName) + return locate(map[string]any{ + "type": "BASE_TABLE", "alias": ref.Alias, "sample": sampleOptions(ref.Sample), + "schema_name": ref.SchemaName, "table_name": ref.TableName, + "column_name_alias": stringList(ref.ColumnNameAlias), + "catalog_name": ref.CatalogName, + "at_clause": atClause(ref.At), + "qualified_name": map[string]any{"path": path}, + }, ref.Span) + case *ast.JoinRef: + m := locate(map[string]any{ + "type": "JOIN", "alias": ref.Alias, "sample": sampleOptions(ref.Sample), + "left": tableRef(ref.Left), "right": tableRef(ref.Right), + "condition": exprOrNil(ref.Condition), + "join_type": string(ref.JoinType), "ref_type": string(ref.RefType), + "using_columns": stringList(ref.UsingColumns), + "delim_flipped": false, + "duplicate_eliminated_columns": []any{}, + "is_implicit": ref.IsImplicit, + "ranking_expression": exprOrNil(ref.RankingExpression), + "nearest_count": ref.NearestCount, + "nearest_order_type": string(ref.NearestOrderType), + "nearest_approx": ref.NearestApprox, + }, ref.Span) + // upstream writes the join's column aliases only for aliased joins + if ref.Alias != "" || len(ref.ColumnNameAlias) > 0 { + m["column_name_alias"] = stringList(ref.ColumnNameAlias) + } + return m + case *ast.SubqueryRef: + return locate(map[string]any{ + "type": "SUBQUERY", "alias": ref.Alias, "sample": sampleOptions(ref.Sample), + "subquery": selectStatement(ref.Subquery), + "column_name_alias": stringList(ref.ColumnNameAlias), + }, ref.Span) + case *ast.TableFunctionRef: + ordinality := "WITHOUT_ORDINALITY" + if ref.WithOrdinality { + ordinality = "WITH_ORDINALITY" + } + return locate(map[string]any{ + "type": "TABLE_FUNCTION", "alias": ref.Alias, "sample": sampleOptions(ref.Sample), + "function": expr(ref.Function), + "column_name_alias": stringList(ref.ColumnNameAlias), + "with_ordinality": ordinality, + }, ref.Span) + case *ast.ExpressionListRef: + values := make([]any, 0, len(ref.Values)) + for _, row := range ref.Values { + values = append(values, exprList(row)) + } + return locate(map[string]any{ + "type": "EXPRESSION_LIST", "alias": ref.Alias, "sample": sampleOptions(ref.Sample), + "expected_names": stringList(ref.ExpectedNames), + "expected_types": []any{}, + "values": values, + }, ref.Span) + case *ast.PivotRef: + pivots := make([]any, 0, len(ref.Pivots)) + for _, p := range ref.Pivots { + pivots = append(pivots, pivotColumn(p)) + } + return locate(map[string]any{ + "type": "PIVOT", "alias": ref.Alias, "sample": sampleOptions(ref.Sample), + "source": tableRef(ref.Source), + "aggregates": exprList(ref.Aggregates), + "unpivot_names": stringList(ref.UnpivotNames), + "pivots": pivots, + "groups": stringList(ref.GroupBy), + "column_name_alias": stringList(ref.ColumnNameAlias), + "include_nulls": ref.IncludeNulls, + }, ref.Span) + case *ast.ShowRef: + return locate(map[string]any{ + "type": "SHOW_REF", "alias": ref.Alias, "sample": sampleOptions(ref.Sample), + "table_name": ref.TableName, + "query": queryNode(ref.Query), + "show_type": string(ref.ShowType), + "catalog_name": ref.CatalogName, + "schema_name": ref.SchemaName, + }, ref.Span) + } + panic(fmt.Sprintf("serialize: unknown table ref %T", r)) +} + +// qualifiedColumnName renders a dotted column path the way upstream +// serializes QualifiedColumnName: all four fields, empty when absent. +func qualifiedColumnName(q ast.QualifiedColumnName) map[string]any { + parts := q.Path + out := map[string]any{"catalog": "", "schema": "", "table": "", "column": ""} + fields := []string{"column", "table", "schema", "catalog"} + for i := 0; i < len(parts) && i < 4; i++ { + out[fields[i]] = parts[len(parts)-1-i] + } + return out +} + +// blobText renders raw blob bytes the way DuckDB prints them: printable +// ASCII stays literal (except backslash), everything else is \xHH. +func blobText(raw string) string { + var sb []byte + for i := 0; i < len(raw); i++ { + c := raw[i] + if c >= 32 && c <= 126 && c != '\\' { + sb = append(sb, c) + continue + } + const hex = "0123456789ABCDEF" + sb = append(sb, '\\', 'x', hex[c>>4], hex[c&0xf]) + } + return string(sb) +} + +// Fingerprint renders an expression's serialized form with locations +// stripped — the transformer uses it for GROUP BY deduplication. +func Fingerprint(e ast.Expr) string { + m := expr(e) + stripLocations(m) + b, err := json.Marshal(m) + if err != nil { + return "" + } + return string(b) +} + +func stripLocations(v any) { + switch t := v.(type) { + case map[string]any: + delete(t, "query_location") + delete(t, "query_location_length") + for _, child := range t { + stripLocations(child) + } + case []any: + for _, child := range t { + stripLocations(child) + } + } +} + +func pivotColumn(p ast.PivotColumn) map[string]any { + entries := make([]any, 0, len(p.Entries)) + for _, e := range p.Entries { + values := make([]any, 0, len(e.Values)) + for _, v := range e.Values { + values = append(values, value(v)) + } + entries = append(entries, map[string]any{ + "values": values, + "star_expr": exprOrNil(e.StarExpr), + "alias": e.Alias, + }) + } + out := map[string]any{ + "pivot_expressions": exprList(p.PivotExpressions), + "unpivot_names": stringList(p.UnpivotNames), + "entries": entries, + "pivot_enum": p.PivotEnum, + } + if p.Subquery != nil { + out["subquery"] = selectStatement(p.Subquery) + } + return out +} + +func atClause(a *ast.AtClause) any { + if a == nil { + return nil + } + return map[string]any{"unit": string(a.Unit), "expr": expr(a.Expr)} +} + +func sampleOptions(s *ast.SampleOptions) any { + if s == nil { + return nil + } + return map[string]any{ + "sample_size": value(s.SampleSize), + "is_percentage": s.IsPercentage, + "method": string(s.Method), + "seed": s.Seed, + "repeatable": s.Repeatable, + "sample_rate": -1.0, + } +} + +// ---- expressions ------------------------------------------------------- + +func exprList(list []ast.Expr) []any { + out := make([]any, 0, len(list)) + for _, e := range list { + out = append(out, expr(e)) + } + return out +} + +func exprOrNil(e ast.Expr) any { + if e == nil { + return nil + } + return expr(e) +} + +func stringList(list []string) []any { + out := make([]any, 0, len(list)) + for _, s := range list { + out = append(out, s) + } + return out +} + +func functionArguments(args []ast.FunctionArgument) []any { + out := make([]any, 0, len(args)) + for _, a := range args { + out = append(out, map[string]any{"name": a.Name, "expression": expr(a.Expr)}) + } + return out +} + +func expr(e ast.Expr) map[string]any { + if e == nil { + return nil + } + base := map[string]any{"alias": e.GetAlias()} + switch x := e.(type) { + case *ast.ColumnRefExpression: + base["class"] = "COLUMN_REF" + base["type"] = "COLUMN_REF" + base["column_names"] = stringList(x.ColumnNames) + locate(base, x.Span) + case *ast.ConstantExpression: + base["class"] = "CONSTANT" + base["type"] = "VALUE_CONSTANT" + base["value"] = value(x.Value) + locate(base, x.Span) + case *ast.ParameterExpression: + base["class"] = "PARAMETER" + base["type"] = "VALUE_PARAMETER" + base["identifier"] = x.Identifier() + locate(base, x.Span) + case *ast.FunctionExpression: + base["class"] = "FUNCTION" + base["type"] = "FUNCTION" + base["function_name"] = x.FunctionName + base["schema"] = x.Schema + base["catalog"] = x.Catalog + base["filter"] = exprOrNil(x.Filter) + base["order_bys"] = orderModifier(x.OrderBys) + base["distinct"] = x.Distinct + base["is_operator"] = x.IsOperator + base["export_state"] = x.ExportState + base["arguments"] = functionArguments(x.Arguments) + locate(base, x.Span) + case *ast.OperatorExpression: + base["class"] = "OPERATOR" + base["type"] = string(x.Type) + base["children"] = exprList(x.Operands) + locate(base, x.Span) + case *ast.ComparisonExpression: + base["class"] = "COMPARISON" + base["type"] = string(x.Type) + base["left"] = expr(x.Left) + base["right"] = expr(x.Right) + locate(base, x.Span) + case *ast.ConjunctionExpression: + base["class"] = "CONJUNCTION" + base["type"] = string(x.Type) + base["children"] = exprList(x.Operands) + locate(base, x.Span) + case *ast.CastExpression: + base["class"] = "CAST" + base["type"] = "OPERATOR_CAST" + base["child"] = expr(x.Child) + base["cast_type"] = castType(x) + base["try_cast"] = x.TryCast + locate(base, x.Span) + case *ast.CaseExpression: + checks := make([]any, 0, len(x.CaseChecks)) + for _, c := range x.CaseChecks { + checks = append(checks, map[string]any{ + "when_expr": expr(c.When), + "then_expr": expr(c.Then), + }) + } + base["class"] = "CASE" + base["type"] = "CASE_EXPR" + base["case_checks"] = checks + base["else_expr"] = exprOrNil(x.ElseExpr) + locate(base, x.Span) + case *ast.SubqueryExpression: + base["class"] = "SUBQUERY" + base["type"] = "SUBQUERY" + base["subquery_type"] = string(x.SubqueryType) + base["subquery"] = selectStatement(x.Subquery) + base["child"] = exprOrNil(x.Child) + base["comparison_type"] = string(x.ComparisonType) + locate(base, x.Span) + case *ast.StarExpression: + excl := make([]any, 0, len(x.QualifiedExcludeList)) + for _, q := range x.QualifiedExcludeList { + excl = append(excl, qualifiedColumnName(q)) + } + repl := make([]any, 0, len(x.ReplaceList)) + for _, r := range x.ReplaceList { + repl = append(repl, map[string]any{"key": r.Key, "value": expr(r.Expr)}) + } + ren := make([]any, 0, len(x.RenameList)) + for _, r := range x.RenameList { + ren = append(ren, map[string]any{ + "key": qualifiedColumnName(r.Key), + "value": r.Name, + }) + } + base["class"] = "STAR" + base["type"] = "STAR" + base["relation_name"] = x.RelationName + base["exclude_list"] = stringList(x.ExcludeList) + base["qualified_exclude_list"] = excl + base["replace_list"] = repl + base["rename_list"] = ren + base["columns"] = x.Columns + base["expr"] = exprOrNil(x.Expr) + locate(base, x.Span) + case *ast.LambdaExpression: + base["class"] = "LAMBDA" + base["type"] = "LAMBDA" + base["lhs"] = expr(x.LHS) + base["expr"] = expr(x.Expr) + base["syntax_type"] = string(x.SyntaxType) + locate(base, x.Span) + case *ast.BetweenExpression: + base["class"] = "BETWEEN" + base["type"] = "COMPARE_BETWEEN" + base["input"] = expr(x.Input) + base["lower"] = expr(x.Lower) + base["upper"] = expr(x.Upper) + locate(base, x.Span) + case *ast.CollateExpression: + base["class"] = "COLLATE" + base["type"] = "COLLATE" + base["child"] = expr(x.Child) + base["collation"] = x.Collation + locate(base, x.Span) + case *ast.PositionalReferenceExpression: + base["class"] = "POSITIONAL_REFERENCE" + base["type"] = "POSITIONAL_REFERENCE" + base["index"] = x.Index + locate(base, x.Span) + case *ast.DefaultExpression: + base["class"] = "DEFAULT" + base["type"] = "VALUE_DEFAULT" + locate(base, x.Span) + case *ast.TypeExpression: + base["class"] = "TYPE" + base["type"] = "TYPE" + base["catalog"] = x.Catalog + base["schema"] = x.Schema + base["type_name"] = x.TypeName + base["children"] = exprList(x.Args) + locate(base, x.Span) + case *ast.WindowExpression: + base["class"] = "WINDOW" + base["type"] = string(x.Type) + base["function_name"] = x.FunctionName + base["schema"] = x.Schema + base["catalog"] = x.Catalog + base["partitions"] = exprList(x.Partitions) + base["orders"] = orderList(x.Orders) + base["start"] = string(x.FrameStart) + base["end"] = string(x.FrameEnd) + base["start_expr"] = exprOrNil(x.StartExpr) + base["end_expr"] = exprOrNil(x.EndExpr) + base["offset_expr"] = exprOrNil(x.OffsetExpr) + base["default_expr"] = exprOrNil(x.DefaultExpr) + base["ignore_nulls"] = x.IgnoreNulls + base["has_ignore_nulls"] = x.HasIgnoreNulls + base["filter_expr"] = exprOrNil(x.FilterExpr) + base["exclude_clause"] = string(x.ExcludeClause) + base["distinct"] = x.Distinct + base["arg_orders"] = orderList(x.ArgOrders) + base["arguments"] = functionArguments(x.Arguments) + locate(base, x.Span) + default: + panic(fmt.Sprintf("serialize: unknown expression %T", e)) + } + return base +} + +// castType renders a CastExpression's target: a resolved logical type id +// or an UNBOUND type wrapping the type expression. +func castType(x *ast.CastExpression) map[string]any { + if x.ResolvedType != "" { + return map[string]any{"id": x.ResolvedType, "type_info": nil} + } + return map[string]any{ + "id": "UNBOUND", + "type_info": map[string]any{ + "type": "UNBOUND_TYPE_INFO", + "alias": "", + "extension_info": nil, + "expr": expr(x.CastType), + }, + } +} + +// ---- values ------------------------------------------------------------ + +func logicalType(t ast.LogicalType) map[string]any { + out := map[string]any{"id": t.ID} + switch t.ID { + case "DECIMAL": + out["type_info"] = map[string]any{ + "type": "DECIMAL_TYPE_INFO", + "alias": "", + "extension_info": nil, + "width": t.Width, + "scale": t.Scale, + } + case "LIST": + var child map[string]any + if t.Child != nil { + child = logicalType(*t.Child) + } + out["type_info"] = map[string]any{ + "type": "LIST_TYPE_INFO", + "alias": "", + "extension_info": nil, + "child_type": child, + } + default: + out["type_info"] = nil + } + return out +} + +func value(v ast.Value) map[string]any { + out := map[string]any{ + "type": logicalType(v.Type), + "is_null": v.IsNull, + } + if v.IsNull { + return out + } + switch v.Kind { + case ast.ValueBool: + out["value"] = v.Bool + case ast.ValueInt64: + out["value"] = v.Int64 + case ast.ValueHugeint: + if v.Type.ID == "UHUGEINT" { + out["value"] = map[string]any{"upper": uint64(v.Hugeint.Upper), "lower": v.Hugeint.Lower} + } else { + out["value"] = map[string]any{"upper": v.Hugeint.Upper, "lower": v.Hugeint.Lower} + } + case ast.ValueDouble: + out["value"] = v.Float64 + case ast.ValueString: + if v.Type.ID == "BLOB" { + out["value"] = blobText(v.Str) + } else { + out["value"] = v.Str + } + case ast.ValueEmptyList: + out["value"] = map[string]any{"children": []any{}} + case ast.ValueNull: + // no payload + } + return out +} diff --git a/lexer/lexer.go b/lexer/lexer.go index b850666..a7f4be4 100644 --- a/lexer/lexer.go +++ b/lexer/lexer.go @@ -73,6 +73,34 @@ func charIsSpace(c byte) bool { return c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r' } +// unicodeSpaceLen reports the byte length of a Unicode space character at +// sql[i] (0 when there is none). Upstream's tokenizer skips these like +// ASCII whitespace. +func unicodeSpaceLen(sql string, i int) int { + c := sql[i] + if c < 0x80 { + return 0 + } + rest := sql[i:] + two := []string{"\u0085", "\u00a0"} + for _, sp := range two { + if len(rest) >= len(sp) && rest[:len(sp)] == sp { + return len(sp) + } + } + three := []string{ + "\u1680", "\u2000", "\u2001", "\u2002", "\u2003", "\u2004", + "\u2005", "\u2006", "\u2007", "\u2008", "\u2009", "\u200a", + "\u2028", "\u2029", "\u202f", "\u205f", "\u3000", + } + for _, sp := range three { + if len(rest) >= len(sp) && rest[:len(sp)] == sp { + return len(sp) + } + } + return 0 +} + func charIsDigit(c byte) bool { return c >= '0' && c <= '9' } @@ -341,6 +369,11 @@ func (l *lexer) run() error { lastPos = i + 1 break } + if ul := unicodeSpaceLen(sql, i); ul > 0 { + i += ul - 1 + lastPos = i + 1 + break + } if opLen, ok := specialOperator(sql, i); ok { // special operator - pushed with lastPos as its offset, // exactly as upstream does @@ -444,7 +477,7 @@ func (l *lexer) run() error { case stateKeyword: // '$' is valid as a non-initial identifier character - if c != '$' && !charIsKeyword(c) { + if (c != '$' && !charIsKeyword(c)) || unicodeSpaceLen(sql, i) > 0 { word := sql[lastPos:i] kind := token.Identifier if token.IsKeyword(word) { diff --git a/parser/parser.go b/parser/parser.go new file mode 100644 index 0000000..16a869d --- /dev/null +++ b/parser/parser.go @@ -0,0 +1,234 @@ +// Package parser is darkwing's public API: Parse SQL text into the typed +// AST of package ast. The engine (grammar + matcher) accepts or rejects; +// the transformer in this package shapes the generic parse tree into AST +// nodes, mirroring DuckDB's transformer/*.cpp. +package parser + +import ( + "context" + "errors" + "fmt" + "io" + "strings" + + "github.com/sqlc-dev/darkwing/ast" + "github.com/sqlc-dev/darkwing/internal/matcher" + "github.com/sqlc-dev/darkwing/lexer" + "github.com/sqlc-dev/darkwing/token" +) + +// Error is a parse error, rendered like the pinned DuckDB build's parser +// errors. +type Error struct { + // Msg is the bare message ("syntax error at or near ..."). + Msg string + // Offset is the byte offset of the error in the input, or -1. + Offset int + // Line and Column are 1-based, derived from Offset. + Line, Column int +} + +func (e *Error) Error() string { + return "Parser Error: " + e.Msg +} + +// ErrUnsupported marks statements the transformer does not cover yet +// (milestone 5 territory: COPY, SET, PRAGMA, ...). The engine accepted +// the statement; only the AST is missing. +var ErrUnsupported = errors.New("darkwing: statement not supported yet") + +type unsupportedError struct { + rule string +} + +func (e *unsupportedError) Error() string { + return fmt.Sprintf("darkwing: statement not supported yet (%s)", e.rule) +} + +func (e *unsupportedError) Unwrap() error { return ErrUnsupported } + +// Parse reads SQL from r and returns its statements. Statement spans tile +// the input: statement i covers [prev end, own end), the first starts at +// 0 and the last ends at len(input), so slicing the source by span +// recovers each statement's text with its leading comments. +func Parse(ctx context.Context, r io.Reader) ([]ast.Stmt, error) { + src, err := io.ReadAll(r) + if err != nil { + return nil, err + } + return parseString(ctx, string(src)) +} + +// ParseStatement parses exactly one statement. +func ParseStatement(ctx context.Context, sql string) (ast.Stmt, error) { + stmts, err := parseString(ctx, sql) + if err != nil { + return nil, err + } + if len(stmts) != 1 { + return nil, fmt.Errorf("darkwing: expected exactly one statement, got %d", len(stmts)) + } + return stmts[0], nil +} + +// ParseExpr parses a single scalar expression. +func ParseExpr(ctx context.Context, sql string) (expr ast.Expr, err error) { + engine, err := matcher.Default() + if err != nil { + return nil, err + } + tokens, err := lexer.Tokenize(sql) + if err != nil { + return nil, newError(sql, err) + } + result, pos, err := engine.MatchExpression(tokens) + if err != nil { + return nil, newError(sql, err) + } + // the expression must consume everything up to end of input + if pos < len(tokens) && tokens[pos].Kind != token.EndOfInput { + return nil, newError(sql, &matcher.SyntaxError{Token: tokens[pos]}) + } + defer catchInternal(&err) + tc := newTransformContext(sql) + return tc.transformExpression(tnode{result}), nil +} + +func parseString(ctx context.Context, src string) (stmts []ast.Stmt, err error) { + if err := ctx.Err(); err != nil { + return nil, err + } + engine, err := matcher.Default() + if err != nil { + return nil, err + } + tokens, err := lexer.Tokenize(src) + if err != nil { + return nil, newError(src, err) + } + defer catchInternal(&err) + prevEnd := 0 + pos := 0 + for pos < len(tokens) { + if err := ctx.Err(); err != nil { + return nil, err + } + result, newPos, err := engine.MatchTopLevel(tokens, pos) + if err != nil { + return nil, newError(src, err) + } + if newPos == pos { + return nil, &internalError{msg: "matcher made no progress"} + } + // TopLevelStatement <- Statement? (';'+ / EndOfInput) + stmtOpt, ok := tnode{result}.child(0).opt() + end := consumedEnd(tokens, pos, newPos, len(src)) + pos = newPos + if !ok { + // empty statement: fold its extent into the next span + continue + } + tc := newTransformContext(src) + stmt := tc.transformStatement(stmtOpt) + if stmt == nil { + continue + } + setStmtSpan(stmt, ast.Span{Start: prevEnd, End: end}) + tc.finishStatement(stmt) + stmts = append(stmts, stmt) + prevEnd = end + } + // the last span stretches to the end of the input so the spans tile + if len(stmts) > 0 { + last := stmts[len(stmts)-1] + sp := spanOfStmt(last) + if sp.End < len(src) { + setStmtSpan(last, ast.Span{Start: sp.Start, End: len(src)}) + } + } + return stmts, nil +} + +// consumedEnd returns the byte offset just past the tokens consumed by +// the match from pos to newPos (excluding the end-of-input sentinel). +func consumedEnd(tokens []token.Token, pos, newPos, srcLen int) int { + for i := newPos - 1; i >= pos; i-- { + if tokens[i].Kind == token.EndOfInput { + continue + } + return tokens[i].Span.End + } + return srcLen +} + +type spanSetter interface { + SetSpan(ast.Span) + Pos() int + End() int +} + +func setStmtSpan(stmt ast.Stmt, sp ast.Span) { + if s, ok := stmt.(spanSetter); ok { + s.SetSpan(sp) + } +} + +func spanOfStmt(stmt ast.Stmt) ast.Span { + return ast.Span{Start: stmt.Pos(), End: stmt.End()} +} + +// catchInternal converts transformer shape panics into errors. +func catchInternal(err *error) { + if r := recover(); r != nil { + switch e := r.(type) { + case *internalError: + *err = e + case *Error: + *err = e + case *internalErrorUnsupported: + *err = &unsupportedError{rule: e.rule} + default: + panic(r) + } + } +} + +// newError renders a lexer or matcher error as *Error with position info. +func newError(src string, err error) error { + var msg string + offset := -1 + switch e := err.(type) { + case *matcher.SyntaxError: + msg = e.Error() + offset = e.Token.Span.Start + case *matcher.MatchError: + msg = e.Msg + case *lexer.Error: + msg = e.Msg + offset = e.Offset + default: + msg = err.Error() + } + pe := &Error{Msg: msg, Offset: offset, Line: 1, Column: 1} + if offset >= 0 { + line, col := 1, 1 + for i := 0; i < offset && i < len(src); i++ { + if src[i] == '\n' { + line++ + col = 1 + } else { + col++ + } + } + pe.Line, pe.Column = line, col + } + return pe +} + +// raise reports a transformer-level parse error (upstream's +// ParserException raised from transform functions). +func raise(format string, args ...any) { + panic(&Error{Msg: fmt.Sprintf(format, args...), Offset: -1, Line: 1, Column: 1}) +} + +var _ = strings.TrimSpace diff --git a/parser/serialize_test.go b/parser/serialize_test.go new file mode 100644 index 0000000..45b647f --- /dev/null +++ b/parser/serialize_test.go @@ -0,0 +1,70 @@ +// serialize_test.go: the milestone-3 tree-shape gate. The vendored +// goldens under testdata/serialize hold json_serialize_sql output from +// the pinned DuckDB binary for a sample of the corpus's SELECT subset; +// darkwing's internal/serialize output must match structurally. +// +// The goldens are written by cmd/serialize-diff (-corpus -write-goldens), +// never by hand; the same tool sweeps the full corpus against a live +// oracle binary. The comparator's normalizations are documented on +// serialize.Equal. +package parser + +import ( + "bufio" + "context" + "encoding/json" + "os" + "path/filepath" + "strings" + "testing" + + "github.com/sqlc-dev/darkwing/internal/serialize" +) + +type serializeGolden struct { + SQL string `json:"sql"` + JSON json.RawMessage `json:"json"` +} + +func TestSerializeGoldens(t *testing.T) { + path := filepath.Join("testdata", "serialize", "goldens.jsonl") + f, err := os.Open(path) + if err != nil { + t.Skipf("no serialize goldens at %s (run cmd/serialize-diff -corpus -write-goldens)", path) + } + defer f.Close() + + scanner := bufio.NewScanner(f) + scanner.Buffer(make([]byte, 1024*1024), 64*1024*1024) + line := 0 + for scanner.Scan() { + line++ + var g serializeGolden + if err := json.Unmarshal(scanner.Bytes(), &g); err != nil { + t.Fatalf("%s:%d: %v", path, line, err) + } + stmts, err := Parse(context.Background(), strings.NewReader(g.SQL)) + if err != nil { + t.Errorf("%s:%d: parse failed: %v\nSQL: %s", path, line, err, g.SQL) + continue + } + got, err := serialize.Script(stmts) + if err != nil { + t.Errorf("%s:%d: serialize failed: %v\nSQL: %s", path, line, err, g.SQL) + continue + } + equal, diff, err := serialize.Equal(g.JSON, got) + if err != nil { + t.Fatalf("%s:%d: %v", path, line, err) + } + if !equal { + t.Errorf("%s:%d: tree mismatch at %s\nSQL: %s", path, line, diff, g.SQL) + } + } + if err := scanner.Err(); err != nil { + t.Fatal(err) + } + if line == 0 { + t.Fatalf("%s is empty", path) + } +} diff --git a/parser/testdata/serialize/README.md b/parser/testdata/serialize/README.md new file mode 100644 index 0000000..b30ef68 --- /dev/null +++ b/parser/testdata/serialize/README.md @@ -0,0 +1,31 @@ +# Serialize goldens (tree-shape oracle) + +`goldens.jsonl` holds one JSON object per line: a corpus SQL statement and +the exact `json_serialize_sql` output the pinned DuckDB binary produced +for it. `parser/serialize_test.go` re-serializes each statement through +`internal/serialize` and compares structurally (see the documented +normalizations on `serialize.Equal`). + +Never edit this file by hand. It is a deterministic sample of the +corpus's SELECT subset, written by: + +``` +DARKWING_DUCKDB=/path/to/duckdb-cli \ + go run ./cmd/serialize-diff -corpus -quiet \ + -write-goldens parser/testdata/serialize/goldens.jsonl -sample-every 12 +``` + +Only statements where darkwing already matches the oracle are sampled, so +regenerate goldens *after* the full sweep is clean: + +``` +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 time of writing the full sweep covers 25,414 SELECT-subset +statements: 25,301 match, 0 mismatch, 113 skipped (statements the pinned +binary itself refuses to serialize, e.g. PIVOT-with-enum-discovery forms +that upstream turns into multi-statement plans). diff --git a/parser/testdata/serialize/goldens.jsonl b/parser/testdata/serialize/goldens.jsonl new file mode 100644 index 0000000..5a26aee --- /dev/null +++ b/parser/testdata/serialize/goldens.jsonl @@ -0,0 +1,2108 @@ +{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},"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 x x WHERE x = 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":7,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"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":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c50 FROM array_tbl GROUP BY ALL USING SAMPLE 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":["c50"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":9,"schema_name":"","table_name":"array_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["array_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"select bitstring_agg(4741, 1706, -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":31,"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":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4741}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1706}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-128}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 integers AS t1 RIGHT JOIN integers AS t2 ON (NULL) WHERE EXISTS(SELECT NULL FROM integers AS t3 INNER JOIN integers ON ((t3.i + t1.i)) , (SELECT t2.i AS 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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":35,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":17,"query_location_length":14,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":43,"query_location_length":14,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":74,"query_location_length":100,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":93,"query_location_length":80,"left":{"type":"JOIN","alias":"","sample":null,"query_location":113,"query_location_length":38,"left":{"type":"BASE_TABLE","alias":"t3","sample":null,"query_location":98,"query_location_length":14,"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":124,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"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":138,"query_location_length":4,"column_names":["t3","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":4,"column_names":["t1","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},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":154,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":162,"query_location_length":4,"column_names":["t2","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":[]},"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":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"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'))","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":3595,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":3557,"child":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":22,"query_location_length":47,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":10,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2918}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":32,"function_name":"shobj_description","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":59,"query_location_length":8,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6203}}]}}]}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":3494,"catalog":"","schema":"","type_name":"ENUM","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_6"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_7"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_8"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_11"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_12"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":212,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_13"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_14"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_15"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":245,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_16"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_17"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":278,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_19"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":289,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_20"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":300,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_21"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":311,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_22"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":322,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_23"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":333,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_24"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":344,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_25"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":355,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_26"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":366,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_27"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":377,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_28"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":388,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_29"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":399,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_30"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":410,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_31"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":421,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_32"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":432,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_33"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":443,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_34"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":454,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_35"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":465,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_36"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":476,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_37"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":487,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":498,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_39"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":509,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_40"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":520,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_41"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":531,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":542,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_43"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":553,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_44"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":564,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_45"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":575,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_46"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":586,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_47"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":597,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_48"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":608,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_49"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":619,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_50"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":630,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_51"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":641,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_52"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":652,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_53"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":663,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_54"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":674,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_55"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":685,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_56"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":696,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_57"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":707,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_58"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":718,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_59"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":729,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_60"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":740,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_61"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":751,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_62"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":762,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_63"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":773,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_64"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":784,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_65"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":795,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_66"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":806,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_67"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":817,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_68"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":828,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_69"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":839,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_70"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":850,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_71"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":861,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_72"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":872,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_73"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":883,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_74"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":894,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_75"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":905,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_76"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":916,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_77"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":927,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_78"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":938,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_79"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":949,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_80"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":960,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_81"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":971,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_82"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":982,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_83"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":993,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_84"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1004,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_85"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1015,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_86"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1026,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_87"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1037,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_88"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1048,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_89"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1059,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_90"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1070,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_91"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1081,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_92"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1092,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_93"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1103,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_94"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1114,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_95"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1125,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_96"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1136,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_97"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1147,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_98"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1158,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_99"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1169,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_100"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1181,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_101"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1193,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_102"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1205,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_103"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1217,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_104"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1229,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_105"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1241,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_106"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1253,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_107"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1265,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_108"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1277,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_109"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1289,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_110"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1301,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_111"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1313,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_112"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1325,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_113"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1337,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_114"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1349,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_115"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1361,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_116"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1373,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_117"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1385,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_118"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1397,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_119"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1409,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_120"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1421,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_121"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1433,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_122"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1445,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_123"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1457,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_124"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1469,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_125"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1481,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_126"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1493,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_127"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1505,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_128"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1517,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_129"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1529,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_130"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1541,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_131"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1553,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_132"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1565,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_133"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1577,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_134"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1589,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_135"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1601,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_136"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1613,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_137"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1625,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_138"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1637,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_139"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1649,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_140"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1661,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_141"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1673,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_142"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1685,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_143"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1697,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_144"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1709,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_145"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1721,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_146"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1733,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_147"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1745,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_148"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1757,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_149"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1769,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_150"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1781,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_151"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1793,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_152"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1805,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_153"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1817,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_154"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1829,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_155"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1841,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_156"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1853,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_157"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1865,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_158"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1877,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_159"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1889,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_160"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1901,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_161"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1913,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_162"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1925,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_163"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1937,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_164"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1949,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_165"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1961,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_166"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1973,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_167"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1985,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_168"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1997,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_169"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2009,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_170"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2021,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_171"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2033,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_172"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2045,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_173"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2057,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_174"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2069,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_175"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2081,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_176"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2093,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_177"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2105,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_178"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2117,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_179"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2129,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_180"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2141,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_181"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2153,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_182"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2165,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_183"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2177,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_184"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2189,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_185"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2201,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_186"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2213,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_187"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2225,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_188"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2237,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_189"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2249,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_190"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2261,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_191"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2273,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_192"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2285,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_193"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2297,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_194"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2309,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_195"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2321,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_196"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2333,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_197"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2345,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_198"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2357,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_199"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2369,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_200"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2381,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_201"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2393,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_202"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2405,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_203"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2417,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_204"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2429,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_205"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2441,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_206"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2453,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_207"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2465,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_208"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2477,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_209"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2489,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_210"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2501,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_211"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2513,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_212"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2525,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_213"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2537,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_214"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2549,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_215"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2561,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_216"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2573,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_217"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2585,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_218"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2597,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_219"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2609,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_220"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2621,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_221"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2633,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_222"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2645,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_223"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2657,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_224"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2669,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_225"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2681,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_226"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2693,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_227"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2705,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_228"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2717,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_229"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2729,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_230"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2741,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_231"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2753,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_232"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2765,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_233"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2777,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_234"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2789,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_235"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2801,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_236"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2813,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_237"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2825,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_238"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2837,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_239"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2849,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_240"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2861,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_241"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2873,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_242"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2885,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_243"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2897,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_244"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2909,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_245"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2921,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_246"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2933,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_247"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2945,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_248"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2957,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_249"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2969,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_250"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2981,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_251"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2993,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_252"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3005,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_253"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3017,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_254"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3029,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_255"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3041,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_256"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3053,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_257"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3065,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_258"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3077,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_259"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3089,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_260"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3101,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_261"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3113,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_262"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3125,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_263"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3137,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_264"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3149,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_265"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3161,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_266"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3173,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_267"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3185,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_268"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3197,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_269"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3209,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_270"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3221,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_271"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3233,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_272"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3245,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_273"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3257,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_274"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3269,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_275"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3281,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_276"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3293,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_277"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3305,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_278"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3317,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_279"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3329,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_280"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3341,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_281"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3353,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_282"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3365,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_283"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3377,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_284"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3389,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_285"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3401,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_286"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3413,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_287"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3425,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_288"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3437,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_289"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3449,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_290"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3461,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_291"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3473,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_292"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3485,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_293"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3497,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_294"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3509,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_295"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3521,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_296"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3533,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_297"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3545,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_298"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3557,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_299"}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":3573,"query_location_length":28,"catalog":"","schema":"","type_name":"ENUM","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3578,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3588,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_69999"}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1, 64, 157);","json":{"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":64}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":157}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT julian(c1) \nFROM test_vector_types(CAST(NULL AS DATE)) 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":10,"function_name":"julian","schema":"","filter":null,"order_bys":{"type":"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":["c1"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"test_vector_types","sample":null,"query_location":24,"query_location_length":62,"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":42,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":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 map_concat(map { 'a': 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":33,"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":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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 regexp_extract('foobarbaz', 'B..', 0, 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"B.."}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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\nFROM all_types\n \tINNER JOIN (SELECT NULL)\n RIGHT JOIN all_types AS ref_2\n LEFT JOIN all_types AS ref_7\n INNER JOIN all_types AS ref_8\n ON (( ref_7.int_array = ref_8.int_array ))\n ON ( NULL )\n INNER JOIN all_types AS ref_9\n ON ( ref_2.\"varchar\" )\n ON (( \"Version\"() IS NULL ))\n ON ( EXISTS(SELECT ref_7.\"bit\" AS c0\n FROM all_types AS ref_10\n WHERE 0\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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":507,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":9,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":75,"query_location_length":353,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":48,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":[]},"column_name_alias":[]},"right":{"type":"JOIN","alias":"","sample":null,"query_location":312,"query_location_length":72,"left":{"type":"JOIN","alias":"","sample":null,"query_location":122,"query_location_length":170,"left":{"type":"BASE_TABLE","alias":"ref_2","sample":null,"query_location":86,"query_location_length":18,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":170,"query_location_length":91,"left":{"type":"BASE_TABLE","alias":"ref_7","sample":null,"query_location":132,"query_location_length":18,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"right":{"type":"BASE_TABLE","alias":"ref_8","sample":null,"query_location":181,"query_location_length":18,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":225,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":15,"column_names":["ref_7","int_array"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":243,"query_location_length":15,"column_names":["ref_8","int_array"]}},"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":286,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":"ref_9","sample":null,"query_location":323,"query_location_length":18,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"condition":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":367,"query_location_length":15,"column_names":["ref_2","varchar"]},"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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":418,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":406,"query_location_length":11,"function_name":"version","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}]},"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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":441,"query_location_length":102,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":455,"query_location_length":11,"column_names":["ref_7","bit"]}],"from_table":{"type":"BASE_TABLE","alias":"ref_10","sample":null,"query_location":491,"query_location_length":19,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":529,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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 vector_type(COLUMNS(*)) 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":23,"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":"STAR","type":"STAR","alias":"","query_location":27,"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":36,"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 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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 1 FROM (SELECT 1) t1(c0) GROUP BY ALL HAVING EXISTS (SELECT 1 FROM (SELECT 1) t0(c2) HAVING 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":52,"query_location_length":50,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":74,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["c2"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":2,"column_names":["c0"]},"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 FROM (SELECT 2) t0, (SELECT 3) t1 WHERE INTERVAL '1' DAYS USING SAMPLE (1 ROWS) REPEATABLE (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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":33,"left":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"t1","sample":null,"query_location":29,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":58,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},"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":1,"repeatable":true,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 0 FROM (SELECT 8 c0) WHERE (SELECT 1 LIMIT 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],"from_table":{"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":"c0","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":34,"query_location_length":19,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["c0"]},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT trim('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":13,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"SELECT BLOB 't\\xF0\\xC0\\xD3\\x86\\xF1p?\\xCE;\\xC6~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":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":41,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t\\xF0\\xC0\\xD3\\x86\\xF1p?\\xCE;\\xC6~H"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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() c0 FROM (SELECT 1) t1(c2) HAVING c0 = 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c0","query_location":7,"query_location_length":7,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":23,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["c2"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT 1 INTERSECT SELECT 1 HAVING false) FROM t0;","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":42,"subquery_type":"SCALAR","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},"sample":null,"qualify":null}]},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"p"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-543572-1-1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\\xC2\\xA3'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\xC2\\xA3"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\\xc0\\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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\xc0\\x81"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('c01')\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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c01"}},"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":"SELECT (SELECT 42 FROM (SELECT c01) POSITIONAL JOIN (SELECT c02))\nFROM v00;","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":58,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":28,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":23,"query_location_length":12,"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":["c01"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":52,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":3,"column_names":["c02"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":"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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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 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}"]}}]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":107,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}}]}],"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(approx_quantile(i, 0.5) EXPORT_STATE) = approx_quantile(i, 0.5) FROM range(1, 10001) t(i);","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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}]},"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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":85,"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":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10001}}}]},"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 approx_top_k(x, 3) EXPORT_STATE FROM (SELECT 'a' AS x 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":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":20,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":44,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":52,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 g, finalize(approx_top_k(v, 2) 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":"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":32,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"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 finalize(arg_min_null(a, b) EXPORT_STATE) FROM (VALUES (NULL, 5), (2, 10)) 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":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":"arg_min_null","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":29,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["b"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":54,"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":63,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]]},"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 finalize(to_aggregate_state({'arg': 42, 'by': 1}::STRUCT(arg INTEGER, \"by\" INTEGER), 'arg_min', ['INTEGER', '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":120,"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":110,"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":55,"query_location_length":35,"child":{"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":"arg","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"arg","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"by","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"by","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":33,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"arg","query_location":68,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"by","query_location":82,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"arg_min"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"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":104,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 finalize(bool_and(v) EXPORT_STATE) FROM (VALUES (true), (false)) 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":"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":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":25,"query_location_length":1,"column_names":["v"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":47,"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":56,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 first(i) EXPORT_STATE FROM (SELECT 1 AS i 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":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":13,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":34,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":55,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 finalize(first(s) EXPORT_STATE), finalize(last(s) EXPORT_STATE)\nFROM (VALUES ({'a': 1, 'b': 'x'}), (NULL), ({'a': 2, 'b': 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":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":["s"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":49,"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":54,"query_location_length":1,"column_names":["s"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":76,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"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":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":99,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"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":121,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":129,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}]]},"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 finalize(to_aggregate_state({'value': 42}::STRUCT(value INTEGER), 'first', ['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":"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":78,"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":48,"query_location_length":23,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":"value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"value","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":21,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"value","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"first"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"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":83,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 finalize(list(l) EXPORT_STATE) FROM (VALUES ([1, 2]), ([]), (NULL), ([3])) 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":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":["l"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":43,"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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"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":[]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}]]},"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 finalize(combine(l, l)) FROM (SELECT list(i) EXPORT_STATE l FROM (SELECT NULL::INTEGER AS i WHERE false) 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":23,"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":13,"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":24,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["l"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":36,"query_location_length":78,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":44,"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":49,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":72,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"i","query_location":84,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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":105,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 min(v) EXPORT_STATE FROM (VALUES ('long-string-banana'), ('long-string-apple'), ('long-string-cherry')) 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":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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":32,"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":"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":41,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"long-string-banana"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"long-string-apple"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"long-string-cherry"}}]]},"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 l_shipdate, finalize(list(l_orderkey ORDER BY l_quantity) EXPORT_STATE)\nFROM lineitem GROUP BY l_shipdate ORDER BY l_shipdate;","json":{"error":false,"statements":[{"node":{"type":"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":10,"column_names":["l_shipdate"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["l_shipdate"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":59,"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":28,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":10,"column_names":["l_quantity"]}}]},"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":10,"column_names":["l_orderkey"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":10,"column_names":["l_shipdate"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, finalize(first(v ORDER BY v) EXPORT_STATE), finalize(last(v ORDER BY v) EXPORT_STATE),\n finalize(any_value(v ORDER BY v DESC) EXPORT_STATE)\nFROM (VALUES (0, 30), (0, 10), (0, 20), (1, 5), (1, 9)) t(g, v) 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":240,"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":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":19,"query_location_length":32,"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":36,"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":25,"query_location_length":1,"column_names":["v"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"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":63,"query_location_length":31,"function_name":"last","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":79,"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":68,"query_location_length":1,"column_names":["v"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":51,"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":113,"query_location_length":41,"function_name":"any_value","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":134,"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":123,"query_location_length":1,"column_names":["v"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":161,"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":170,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}]]},"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":229,"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(*) FROM ordered_state os JOIN (\n SELECT g, list(v ORDER BY v) AS direct FROM narrow GROUP BY g\n) d USING (g)\nWHERE finalize(os.l) 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":38,"query_location_length":86,"left":{"type":"BASE_TABLE","alias":"os","sample":null,"query_location":21,"query_location_length":16,"schema_name":"","table_name":"ordered_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ordered_state"]}},"right":{"type":"SUBQUERY","alias":"d","sample":null,"query_location":43,"query_location_length":69,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"direct","query_location":59,"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":75,"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":64,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"query_location_length":6,"schema_name":"","table_name":"narrow","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["narrow"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"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":131,"query_location_length":40,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":4,"column_names":["os","l"]}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"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 product(v) EXPORT_STATE FROM (VALUES (2.0), (3.0), (4.0)) 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":"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":15,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":36,"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":45,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":20}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":30}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":40}}]]},"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 typeof(sum(true) 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":30,"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":22,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 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"]}}]}}]}],"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},"group_expressions":[],"group_sets":[],"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"]}}]}}]}}]}],"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"]}}]}}]}],"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(skewness(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":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":"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":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":33,"query_location_length":1,"column_names":["d"]}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"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 COMBINE(skewness(42) EXPORT_STATE, 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":38,"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":25,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 quantile_disc(d, -0.25) 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":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":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":-25}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"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(combine(\n\t(SELECT quantile_disc(d, 0.5) EXPORT_STATE FROM dummy WHERE d \u003c 50),\n\t(SELECT quantile_disc(d, 0.5) EXPORT_STATE 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":157,"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":147,"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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":26,"query_location_length":67,"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":34,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":86,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}},"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":96,"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":104,"query_location_length":34,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":144,"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":156,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_disc(s, [0.1, 0.5, 0.9]) FROM 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":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":21,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":25,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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":[]}]}} +{"sql":"SELECT finalize(combine(\n\t(SELECT string_agg(d, '|') EXPORT_STATE FROM dummy WHERE d \u003c 3),\n\t(SELECT string_agg(d, '|') EXPORT_STATE 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":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":"combine","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":26,"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":34,"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":45,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":83,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"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":92,"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":100,"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":111,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":137,"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":149,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(sum(d) EXPORT_STATE), finalize(avg(d) EXPORT_STATE)::integer, finalize(count(d) EXPORT_STATE), finalize(min(d) EXPORT_STATE), finalize(max(d) EXPORT_STATE), finalize(first(d) EXPORT_STATE), finalize(last(d) EXPORT_STATE), finalize(kurtosis(d) EXPORT_STATE), finalize(kurtosis_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":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":"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":20,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":47,"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":51,"query_location_length":1,"column_names":["d"]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"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":87,"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":93,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"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":120,"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":124,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":142,"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":151,"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":155,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":173,"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":182,"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":188,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":206,"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":215,"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":220,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":238,"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":247,"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":256,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":274,"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":283,"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":296,"query_location_length":1,"column_names":["d"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":318,"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_avgy(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":17,"function_name":"regr_avgy","schema":"","filter":null,"order_bys":{"type":"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"]}},{"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":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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_sxy(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":16,"function_name":"regr_sxy","schema":"","filter":null,"order_bys":{"type":"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":"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":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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(combine(sum(d) EXPORT_STATE, sum_state)) combined_sum from dummy join state using (g) group by g, sum_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":136,"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":"combined_sum","query_location":10,"query_location_length":49,"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":39,"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":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":31,"query_location_length":1,"column_names":["d"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":9,"column_names":["sum_state"]}}]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":84,"query_location_length":20,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":5,"schema_name":"","table_name":"state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["state"]}},"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":9,"column_names":["sum_state"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select FINALIZE(argmin(a,b) EXPORT_STATE), FINALIZE(argmax(a,b) EXPORT_STATE) from (values (1,1), (2,2), (8,8), (10,10)) s(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":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":16,"query_location_length":24,"function_name":"argmin","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":23,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["b"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":52,"query_location_length":24,"function_name":"argmax","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":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["b"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":83,"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":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]]},"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 kurtosis_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":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":20,"query_location_length":1,"column_names":["d"]}}]}],"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 finalize(finalize(avg(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":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":"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":29,"query_location_length":1,"column_names":["d"]}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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 \n g,\n finalize(combined_state) as finalized_combined\nFROM combined_big_string_state\nORDER 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":106,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"finalized_combined","query_location":19,"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":28,"query_location_length":14,"column_names":["combined_state"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"query_location_length":25,"schema_name":"","table_name":"combined_big_string_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["combined_big_string_state"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT finalize(min(v) EXPORT_STATE) FROM (SELECT NULL::struct(a int, b 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":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":"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":20,"query_location_length":1,"column_names":["v"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":42,"query_location_length":56,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":54,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":65,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":72,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":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":92,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 finalize(combine_aggr(s)) FROM (\n SELECT max({'a': v}) EXPORT_STATE AS s FROM (VALUES (3), (4)) t(v)\n UNION ALL\n SELECT max({'a': v}) EXPORT_STATE AS s FROM (VALUES (5), (1)) 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":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"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":38,"query_location_length":159,"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":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":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":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":61,"query_location_length":1,"column_names":["v"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":88,"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":97,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]]},"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":136,"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":140,"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":146,"query_location_length":1,"column_names":["v"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":173,"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":182,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"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(i, NULL) 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":21,"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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":34,"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":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"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 compute_top_k(lineitem, l_returnflag, l_orderkey, 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":52,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"compute_top_k","schema":"","filter":null,"order_bys":{"type":"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":8,"column_names":["lineitem"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":12,"column_names":["l_returnflag"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":10,"column_names":["l_orderkey"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT grp, arg_min_nulls_last(arg, val) FROM tbl 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":72,"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":28,"function_name":"arg_min_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":31,"query_location_length":3,"column_names":["arg"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":3,"column_names":["val"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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":59,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1734}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":90}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":3}},"is_null":false,"value":3974}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 01:23:37.999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 01:53:21.3"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 equi_width_bins(0.0, 1.0, 99999999, 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":41,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":8,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":99999999}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 histogram_exact(n, [10, 10, 20]) 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":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":["n"]}},{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"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 * FROM histogram_values(integers, (i%2)::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":42,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":42,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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, 2 ORDER BY x)\nFROM (SELECT i AS x, i::DOUBLE AS 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":40,"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":45,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":53,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":61,"query_location_length":1,"column_names":["i"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"y","query_location":70,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":89,"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":95,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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":"WITH data AS (\n SELECT i,\n (CASE WHEN i = 37 THEN 1000 ELSE i % 7 END)::DOUBLE AS y,\n make_timestamp_ns(1577836800000000000 + i) AS ts\n FROM range(100) t(i)\n),\nnum AS (\n SELECT UNNEST(lttb(i::DOUBLE, y, 10 ORDER BY i)) AS p\n FROM data\n),\nns AS (\n SELECT UNNEST(lttb(ts, y, 10 ORDER BY ts)) AS p\n FROM data\n)\nSELECT (SELECT list(p.x ORDER BY p.x) FROM num)\n = (SELECT list((epoch_ns(p.x) - 1577836800000000000)::DOUBLE ORDER BY epoch_ns(p.x)) FROM ns)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"data","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"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"y","query_location":83,"query_location_length":8,"child":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":41,"query_location_length":41,"case_checks":[{"when_expr":{"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":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}],"else_expr":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":85,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"ts","query_location":109,"query_location_length":42,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":147,"query_location_length":0,"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":127,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1577836800000000000}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":1,"column_names":["i"]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":167,"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":173,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"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":"num","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":"p","query_location":206,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":213,"query_location_length":33,"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":244,"query_location_length":1,"column_names":["i"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":219,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":221,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":229,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":232,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":262,"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}}},{"key":"ns","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":"p","query_location":289,"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":296,"query_location_length":27,"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":320,"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":301,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":305,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":308,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":339,"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}}}]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":353,"query_location_length":141,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":353,"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":361,"query_location_length":22,"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":379,"query_location_length":3,"column_names":["p","x"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":366,"query_location_length":3,"column_names":["p","x"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":389,"query_location_length":3,"schema_name":"","table_name":"num","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["num"]}},"where_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":403,"query_location_length":91,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":411,"query_location_length":74,"function_name":"list","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":471,"query_location_length":13,"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":480,"query_location_length":3,"column_names":["p","x"]}}]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":453,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":431,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":417,"query_location_length":13,"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":426,"query_location_length":3,"column_names":["p","x"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":433,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1577836800000000000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":455,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":491,"query_location_length":2,"schema_name":"","table_name":"ns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ns"]}},"where_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 * FROM (SELECT * FROM window_table ORDER BY rowid) EXCEPT SELECT * FROM (SELECT * FROM agg_table ORDER BY rowid);","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":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":43,"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":51,"query_location_length":5,"column_names":["rowid"]}}]}],"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":12,"schema_name":"","table_name":"window_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["window_table"]}},"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":72,"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":79,"query_location_length":40,"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":113,"query_location_length":5,"column_names":["rowid"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":87,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"query_location_length":9,"schema_name":"","table_name":"agg_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["agg_table"]}},"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_mode(values)::VARCHAR, round(list_entropy(values), 6)::VARCHAR\nFROM (VALUES (['nan'::DOUBLE, 'nan'::DOUBLE, 'nan'::DOUBLE, 1.0, 1.0])) t(values);","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":"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":6,"column_names":["values"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":30,"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":41,"query_location_length":20,"function_name":"list_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":54,"query_location_length":6,"column_names":["values"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":80,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"query_location_length":55,"function_name":"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":95,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nan"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":110,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nan"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":125,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nan"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":127,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}}]}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["values"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT currval('mode_rewrite_order_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":33,"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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mode_rewrite_order_seq"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(s), MAX(s) FROM test_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":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"]}}]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":12,"schema_name":"","table_name":"test_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_strings"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, COUNT(*), COUNT(b), MIN(b), MAX(b) FROM booleans 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":79,"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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"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":["b"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":34,"query_location_length":1,"column_names":["b"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":42,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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":[{"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 SUM('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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"SELECT FIRST(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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":12,"function_name":"string_agg","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 ORDER BY 5-i), ANY_VALUE(dt ORDER BY 5-i), ANY_VALUE(t ORDER BY 5-i), ANY_VALUE(s ORDER BY 5-i) 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":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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","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":17,"query_location_length":1,"column_names":["d"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":26,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"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":44,"query_location_length":2,"column_names":["dt"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"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":72,"query_location_length":1,"column_names":["t"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":89,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"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":99,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":120,"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(b) 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":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":["b"]}}]}],"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":{"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":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"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(42, 0.5) as approx_quantile ,quantile(42, 0.5) as true_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":140,"query_location_length":90,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"approx_quantile","query_location":148,"query_location_length":24,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"true_quantile","query_location":194,"query_location_length":17,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":203,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":207,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT approx_quantile(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":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":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":11}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"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 reservoir_quantile(r, 0.9) 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":26,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}],"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 RESERVOIR_QUANTILE(0., 0.9, 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":"reservoir_quantile","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":1,"scale":0}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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( 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"]}}]},{"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"]}}]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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"]}}]},{"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"]}}]}],"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 histogram(n, []) 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":16,"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":["n"]}},{"name":"","expression":{"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":[]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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, [10, 20, NULL]) 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":28,"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":["n"]}},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"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_OR(3), BIT_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":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":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"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":25,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 BIT_XOR(i), BIT_XOR(1), BIT_XOR(DISTINCT i), BIT_XOR(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":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":15,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":19,"function_name":"bit_xor","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":48,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":13,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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_count(BITSTRING_AGG(i)) FROM smallints WHERE i = 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":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"]}}]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","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":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(DISTINCT i) 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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 BITSTRING_AGG(column0) FROM '{TEST_DIR}/bitstring_agg.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":22,"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":7,"column_names":["column0"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":30,"schema_name":"","table_name":"{TEST_DIR}/bitstring_agg.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bitstring_agg.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select bool_or(*)","json":{"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":"bool_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select corr(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":9,"function_name":"corr","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i, COUNT() 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":52,"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":7,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"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 COVAR_POP(x,y), COVAR_SAMP(x,y) FROM integers 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":14,"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":17,"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":15,"function_name":"covar_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":34,"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"]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":59,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select entropy(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":13,"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":4,"column_names":["name"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"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 ANY_VALUE(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":41,"function_name":"any_value","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":28,"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":17,"query_location_length":1,"column_names":["i"]}}]}],"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 j * 2 FROM integer GROUP BY j * 2 ORDER BY j * 2;","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":50,"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":50,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":7,"schema_name":"","table_name":"integer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integer"]}},"where_clause":null,"group_expressions":[{"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":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT histogram('、')","json":{"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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 histogram(CAST('2021-08-20' 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":45,"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":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"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":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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 FAVG(n) - '2251799813685248.5'::DOUBLE FROM doubles;","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":7,"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":12,"query_location_length":1,"column_names":["n"]}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2251799813685248.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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_pop(k), kurtosis_pop(v), kurtosis_pop(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":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":20,"query_location_length":1,"column_names":["k"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":37,"query_location_length":1,"column_names":["v"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":16,"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":54,"query_location_length":2,"column_names":["v2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"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":24,"query_location_length":1,"column_names":["d"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","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":46,"query_location_length":2,"column_names":["dt"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"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":69,"query_location_length":1,"column_names":["t"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"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":91,"query_location_length":1,"column_names":["s"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}],[{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 median(r::hugeint)::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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"hugeint","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"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 min(l) from lists where l[1]\u003e2;","json":{"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":["l"]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":31,"query_location_length":6,"left":{"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":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"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 aggr\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":70,"query_location_length":1,"column_names":["k"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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 k, mode(v) from intervals 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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"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 DESC, i ASC) 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":31,"function_name":"first","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":24,"query_location_length":1,"column_names":["i"]}},{"type":"ASCENDING","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":false,"catalog":"","arguments":[{"name":"","expression":{"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":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 percentile_disc(0.25) within group(order by i desc) from generate_series(0,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":51,"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":51,"query_location_length":1,"column_names":["i"]}}]},"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":64,"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":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"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 percentile_disc(strftime(DATE '1-11-25',NULL)) WITHIN GROUP (ORDER BY 1 DESC);","json":{"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":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1-11-25"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 product()","json":{"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":"product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::decimal(10,2), 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":36,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["r"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"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(interval (r/100) second, 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":43,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":23,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":31,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"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 (120::TINYINT), (122::TINYINT)) 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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":34,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":120}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":122}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}]]},"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('1990-01-01'::DATE + interval (r/100) day, [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":75,"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":"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":33,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1990-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":"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":"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":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"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":65,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":75}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"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_cont(r, [\"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":41,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":6,"column_names":["0.25"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["0.5"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":6,"column_names":["0.75"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"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(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_disc","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 quantile_disc(interval (r) second, 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":39,"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":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":31,"query_location_length":1,"column_names":["r"]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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(case when r is null then null else [r] end, [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":74,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"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"]}}]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"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":66,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"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(('2021-01-01'::TIMESTAMP + interval (r) hour)::TIMESTAMPTZ, [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":90,"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":66,"query_location_length":13,"child":{"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["r"]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"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":82,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"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":12,"function_name":"regr_avgx","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(*)","json":{"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_slope","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_sxy(*)","json":{"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_sxy","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, regr_slope(v, v2) from aggr 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":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["v2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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":47,"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 regr_syy(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":15,"function_name":"regr_syy","schema":"","filter":null,"order_bys":{"type":"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["v2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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(1), MIN(1), FIRST(1), LAST(1),MAX(1), SUM(1), 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":24,"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":70,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 sem(v),sem(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":6,"function_name":"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":12,"query_location_length":1,"column_names":["v"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":7,"function_name":"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":19,"query_location_length":2,"column_names":["v2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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 skewness(*)","json":{"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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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"]}}]},{"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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"]}}]}],"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(x,','), STRING_AGG(x,y) 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":"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":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":15,"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":37,"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"]}}]}],"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 g, STRING_AGG(x, y ORDER BY x DESC) FROM strings GROUP BY g 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":32,"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":35,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["y"]}}]}],"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":[{"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 g, STRING_AGG(x,',' ORDER BY x DESC) FROM strings GROUP BY g 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":"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":36,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]}],"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":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"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 name, weighted_avg(grade, etcs) FROM students GROUP BY name 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":76,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":25,"function_name":"weighted_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":26,"query_location_length":5,"column_names":["grade"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":4,"column_names":["etcs"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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":62,"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 DISTINCT ON (grp) grp, val FROM t2 ORDER BY grp, val DESC LIMIT 3","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":["grp"]}]},{"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":["grp"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["val"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":3,"column_names":["grp"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":3,"column_names":["val"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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 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 DISTINCT ON (person_id)\n *\nFROM\n example\nORDER BY\n person_id,\n effective_date DESC\n;","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":9,"column_names":["person_id"]}]},{"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":9,"column_names":["person_id"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":14,"column_names":["effective_date"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":35,"query_location_length":1,"relation_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":7,"schema_name":"","table_name":"example","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["example"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT type, COUNT(*), avg(value), sum(distinct value), avg(distinct value), FROM students GROUP BY CUBE(value, type) ORDER BY GROUPING(value), GROUPING(type), 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":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":127,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":5,"column_names":["value"]}]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":144,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":4,"column_names":["type"]}]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["type"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":10,"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":27,"query_location_length":5,"column_names":["value"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":48,"query_location_length":5,"column_names":["value"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":19,"function_name":"avg","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":69,"query_location_length":5,"column_names":["value"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"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":105,"query_location_length":5,"column_names":["value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"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 count(*), avg(distinct value) FILTER (where value \u003c 5), avg(distinct value), course, avg(value), type\n from students\n group by grouping sets (grouping sets(course, ()), grouping sets(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":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":44,"function_name":"avg","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":51,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":5,"column_names":["value"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":19,"function_name":"avg","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":76,"query_location_length":5,"column_names":["value"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":6,"column_names":["course"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":10,"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":96,"query_location_length":5,"column_names":["value"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":122,"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":177,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"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 t1\nFROM T\nORDER BY t1, t2;","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":35,"query_location_length":2,"column_names":["t1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["t2"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["t1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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(DISTINCT s), string_agg(DISTINCT s, ',' ORDER BY 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":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":["s"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":43,"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":62,"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":46,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"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 string_agg(DISTINCT value, ',' ORDER BY value::INTEGER) FILTER (WHERE keep)\nFROM distinct_rewrite_filter_errors;","json":{"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":"string_agg","schema":"","filter":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":4,"column_names":["keep"]},"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":5,"column_names":["value"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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":5,"column_names":["value"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"query_location_length":30,"schema_name":"","table_name":"distinct_rewrite_filter_errors","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_rewrite_filter_errors"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, count(DISTINCT nextval('distinct_rewrite_seq_grouping_sets')), GROUPING(g)\nFROM (VALUES (1), (2), (1)) tbl(g)\nGROUP BY CUBE(g)\nORDER BY GROUPING(g), g;","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":146,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":1,"column_names":["g"]}]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"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":61,"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":25,"query_location_length":45,"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":33,"query_location_length":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"distinct_rewrite_seq_grouping_sets"}}}]}}]},{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":73,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["g"]}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":90,"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":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]]},"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"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 DISTINCT ON (j, i) i, j FROM integers WHERE i \u003c\u003e 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":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["j"]}],"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":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"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 k","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":["k"]}}]}],"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 (a.ak, b.bk) * FROM a JOIN b ON a.ak = b.bk ORDER BY a.ak, b.bk","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":4,"column_names":["a","ak"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":4,"column_names":["b","bk"]}]},{"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":4,"column_names":["a","ak"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["b","bk"]}}]}],"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":"JOIN","alias":"","sample":null,"query_location":41,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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":46,"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":51,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":4,"column_names":["a","ak"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["b","bk"]}},"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 DISTINCT ON (COLUMNS('key')) * FROM (\n SELECT * FROM (VALUES (1,1,2),(1,1,3)) AS t(key1,key2,v)\n) subq 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":20,"query_location_length":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key"}},"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":122,"query_location_length":4,"column_names":["key1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":4,"column_names":["key2"]}}]}],"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":"subq","sample":null,"query_location":43,"query_location_length":64,"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":"t","sample":null,"query_location":63,"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":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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\tsum(j),\n\tsum(distinct i),\n\tcount(j),\n\tsum(distinct j)\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":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":12,"query_location_length":1,"column_names":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":30,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":41,"query_location_length":1,"column_names":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":59,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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 SUM(i), g FROM integers GROUP BY ALL 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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["g"]}],"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, g%2, SUM(i), SUM(g) FROM integers GROUP BY 1, 2, 3 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":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],"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":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"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":13,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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":["i"]}}]},{"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":["g"]}}]}],"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":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],"group_sets":[[0,1,2]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(SUM(41)), 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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":15,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":41}}}]}}]},{"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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 % 2 AS f, COUNT(SUM(a)) FROM test GROUP BY f;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"f","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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":"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":["a"]}}]}}]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["f"]}],"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 k\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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"]}}]}],"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":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl GROUP BY SUM(41)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":41}}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k, SUM(v) FROM r2l3r4l5i4i2l3v\nGROUP BY k\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":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"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":47,"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 LOWER(NULL) FROM t0 GROUP BY 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":"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":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},{"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(*)\ngroup by 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 as a from t1 group by a having a=42;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["a"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT b, SUM(a) FROM test GROUP BY b HAVING SUM(a)\u003e(SELECT SUM(t.a)*0.5 FROM test 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":["b"]},{"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":["a"]}}]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":45,"query_location_length":40,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":49,"query_location_length":1,"column_names":["a"]}}]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":52,"query_location_length":33,"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":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":60,"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":64,"query_location_length":3,"column_names":["t","a"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":78,"query_location_length":6,"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":[]},"child":null,"comparison_type":"INVALID"}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 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":"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_EQUAL","alias":"","query_location":25,"query_location_length":4,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":37,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":41,"query_location_length":1,"column_names":["a"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM exam QUALIFY first_value(mark) OVER (PARTITION BY student ORDER BY mark) \u003e= 60 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":102,"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":65,"left":{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":27,"query_location_length":59,"function_name":"first_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"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":81,"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":39,"query_location_length":4,"column_names":["mark"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":60}}}},"named_param_map":[]}]}} +{"sql":"SELECT * FROM exam WINDOW w AS (ORDER BY mark) QUALIFY row_number() OVER w = 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":"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_EQUAL","alias":"","query_location":55,"query_location_length":23,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":55,"query_location_length":19,"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":41,"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},"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 t WHERE j = 8888","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":8,"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":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8888}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 entry","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"entry","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["entry"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM v2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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 * FROM t_default;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"t_default","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_default"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"happy"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 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":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 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"]}}]}],"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 other.dont_export_me;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"other","table_name":"dont_export_me","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["other","dont_export_me"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from table1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"table1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * EXCLUDE (new_col) FROM (SELECT * RENAME (db1.s1.t.c AS new_col) 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":19,"relation_name":"","exclude_list":["new_col"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":32,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":40,"query_location_length":32,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[{"key":{"catalog":"db1","schema":"s1","table":"t","column":"c"},"value":"new_col"}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":73,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"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":88,"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":[]},"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 schema.table 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":12,"column_names":["schema","table"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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(*) FROM glob('{TEST_DIR}/other_no_wal_writes.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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/other_no_wal_writes.db.wal"}}}]},"column_name_alias":[],"with_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 db1.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":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":12,"schema_name":"db1","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db1","integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM table_in_db2","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":"","table_name":"table_in_db2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table_in_db2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM db1.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":6,"schema_name":"db1","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db1","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_database.integers ORDER BY new_database.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":45,"query_location_length":23,"column_names":["new_database","integers","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 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":5,"function_name":"one","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 test_data as (\n select 'foo' as a\n)\nselect test_data.foobar as new_column from test_data where new_column is not null;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"test_data","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":"a","query_location":29,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":"new_column","query_location":49,"query_location_length":16,"column_names":["test_data","foobar"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":9,"schema_name":"","table_name":"test_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_data"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":112,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":10,"column_names":["new_column"]}]},"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\nHAVING alias.c = 2\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":82,"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":[]}],"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":{"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":7,"column_names":["alias","c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c1, row_number() over(partition BY c1 order by c2) as rk FROM VALUES ('a', 1), ('b', 2), ('b', 3), ('c', 4) AS t(c1, c2) qualify rk.add(1) \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":2,"column_names":["c1"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rk","query_location":11,"query_location_length":46,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["c1"]}],"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":["c2"]}}],"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":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":69,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c1","c2"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":136,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"query_location_length":9,"function_name":"add","schema":"rk","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}},"named_param_map":[]}]}} +{"sql":"SELECT a AS x FROM (VALUES (1),(2),(3)) t(a)\nWHERE alias.x \u003e 1\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":72,"query_location_length":1,"column_names":["a"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":51,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":7,"column_names":["alias","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select a as \"user\" from test order by \"user\";","json":{"error":false,"statements":[{"node":{"type":"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":6,"column_names":["user"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"user","query_location":7,"query_location_length":1,"column_names":["a"]}],"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 ['a a ', ' b ', ' cc'].list_transform(lambda x: x.trim().nullif('')) as trimmed_and_nulled;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"trimmed_and_nulled","query_location":30,"query_location_length":45,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a a "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" b "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" cc"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":45,"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":64,"query_location_length":10,"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":55,"query_location_length":8,"function_name":"trim","schema":"x","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * similar to '(a|c)' from foo;","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":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":20,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a|c)"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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 \n1 = 1 AND \nCreatedAt \u003e= '2023-12-01' AND\nCreatedAt \u003c '2023-12-13' \nGROUP BY HasCustomAddress ;","json":{"error":false,"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":["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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"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":72,"query_location_length":65,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":83,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":9,"column_names":["CreatedAt"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-12-01"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":113,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":9,"column_names":["CreatedAt"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-12-13"}}}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"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 s1.tbl, s2.tbl, s3.tbl 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":6,"column_names":["s1","tbl"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["s2","tbl"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":6,"column_names":["s3","tbl"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"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":35,"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":43,"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":51,"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 lineitem_long","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"lineitem_long","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem_long"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 1 IN ('1', '2');","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":10,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 s1.t.c, t.c, c FROM 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":6,"column_names":["s1","t","c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["t","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":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT alias(a), alias(b), alias(a * 2) AS c, alias(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":89,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["a"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["b"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":27,"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":33,"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":33,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"d","query_location":46,"query_location_length":18,"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":52,"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":52,"query_location_length":1,"column_names":["b"]}},{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}],"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 alias(HeLlO) 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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["HeLlO"]}}]}],"from_table":{"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"]}},"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 hello FROM (SELECT 42) tbl(\"HeLlO\")","json":{"error":false,"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":["hello"]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":18,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["HeLlO"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH test AS (\n SELECT 'woot' AS my_column\n)\nFROM test\nSELECT\n\tmy_column.substr(2) AS partial_woot,\n\tpartial_woot.substr(2) AS more_partially_woot\nWHERE\n more_partially_woot = 'ot';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"test","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":"my_column","query_location":26,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"partial_woot","query_location":66,"query_location_length":19,"function_name":"substr","schema":"my_column","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"more_partially_woot","query_location":104,"query_location_length":22,"function_name":"substr","schema":"partial_woot","filter":null,"order_bys":{"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":19,"column_names":["more_partially_woot"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ot"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(i) AS i FROM integers HAVING integers.i=5 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":"FUNCTION","type":"FUNCTION","alias":"i","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"]}}]}],"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":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select main.test from structs, 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":18,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":7,"schema_name":"","table_name":"structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["structs"]}},"right":{"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"]}},"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 NULL UNION ALL SELECT NULL UNION ALL 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":95,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":105,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::INTEGER as a, NULL::INTEGER 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":82,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":102,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i + 1 AS a, a + 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":"a","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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 i AS \"hello world\" FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"hello world","query_location":7,"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT true='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":8,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 'unknownbool'=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":19,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"unknownbool"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::BOOL;","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":6,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"BOOL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::INT[3] 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":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%.17g"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":19,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":18,"scale":17}},"is_null":false,"value":41000000000000003}}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.41000000000000003"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":15,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1e308"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.1'::UTINYINT;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"255.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-2147483648.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.7e1'::HUGEINT, '-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"17014118346046923173168730371588410572.7e1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-17014118346046923173168730371588410572.8e1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.9e1'::SMALLINT;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-3276.9e1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.00000000000170141183460469231731687303715884105727e50'::HUGEINT;","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":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":57,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.00000000000170141183460469231731687303715884105727e50"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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":36,"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":31,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[NULL, NULL , ]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 tripleNested;","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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":13,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":12,"schema_name":"","table_name":"tripleNested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tripleNested"]}},"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":108,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":85,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[ [ \" hello\"] ,[\" world\" ],[ \"! \" ] ]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":103,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,13,14], NULL], [[4]], NULL, [[2, NULL, 1, 0], [99]] ]' 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":81,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":62,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[ [[12,13,14], NULL], [[4]], NULL, [[2, NULL, 1, 0], [99]] ]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":78,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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][[]][][[[][]]]]]' 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":49,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[[[[[]][3][[]][][[[][]]]]]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\":\"\\\"\"}]'::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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"bar\":\"\\\"\"}]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\\,\", test]$$::VARCHAR[];","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\"hello\\,\", test]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\\,\"chars]$$::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":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\"mix\\ of\\ special\\,\"chars]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT $$[\",comma at start and end,\", \",leading and trailing comma,\"]$$::VARCHAR[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":62,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\",comma at start and end,\", \",leading and trailing comma,\"]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":73,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT $$[unterminated string]\"]$$::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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[unterminated string]\"]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\\\" \", def, ghi]$$::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":36,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\" \\\"abc\\\" \", def, ghi]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":61,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":63,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"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 '{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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\"}}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"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":[]},{"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":[]}]},{"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":[]}]},{"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":[]}]}]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":242,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":255,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"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":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{a:\"}\", b: hello universe}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":58,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{key_C: 8, key_A: 2}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"key_B","query_location":55,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]},{"class":"TYPE","type":"TYPE","alias":"key_C","query_location":69,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{a:3}]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{ "}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(row(21)), $$((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":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":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":"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":21}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"((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 {\"123456789\": 42}::MAP(BIGINT, INT);","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":18,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":"123456789","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"123456789","query_location":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":16,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {meta: MAP{'key': 'value'}}::MAP(VARCHAR, 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":34,"query_location_length":37,"child":{"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":"meta","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"meta","query_location":14,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key"}}}]}},{"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":25,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"value"}}}]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":35,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT {\"CamelCase\": 1, \"lowercase\": 2, \"UPPERCASE\": 3}::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":55,"query_location_length":19,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":"CamelCase","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"CamelCase","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"lowercase","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"lowercase","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"UPPERCASE","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"UPPERCASE","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":17,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::BIT::BOOL;","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":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"BOOL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::FLOAT 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":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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;","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":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::BLOB::BIT::BLOB;","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":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":5,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ab"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::INT::BIT;","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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":11,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483648}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1000000000000000000000000000000000000000000000000000000000000000'::BIT::BIGINT;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1000000000000000000000000000000000000000000000000000000000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.4028235e+38)::FLOAT::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":22,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":13,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":3.4028235e38}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('YeS' 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":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"YeS"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 INTEGER) 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1,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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 UHUGEINT) 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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}2'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{prefix}2"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":19,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{prefix}1_"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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}111111111111111111111111111111111111111111111111111111111111111'::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":73,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{prefix}111111111111111111111111111111111111111111111111111111111111111"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::INT","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0X"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '0x100000000'::UINT32","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0x100000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":6,"catalog":"","schema":"","type_name":"UINT32","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' 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":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(TIMESTAMP '2262-04-11 23:47:16.854776' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2262-04-11 23:47:16.854776"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(TIMESTAMP_S 'infinity' 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":36,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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, j 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":35,"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"]},{"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":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) JOIN d 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":58,"query_location_length":20,"left":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":20,"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},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"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":"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 FULL OUTER JOIN 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":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},"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 comment from duckdb_functions() where function_name='test_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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":26,"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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test_macro"}}},"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='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":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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":15,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"j"}}},"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_views AS ddb\nLEFT JOIN pg_description AS pg\n ON pg.classoid=ddb.database_oid AND pg.objoid=ddb.view_oid\nWHERE pg.objsubid=0 AND ddb.view_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":60,"query_location_length":93,"left":{"type":"BASE_TABLE","alias":"ddb","sample":null,"query_location":40,"query_location_length":19,"schema_name":"","table_name":"duckdb_views","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_views"]}},"right":{"type":"BASE_TABLE","alias":"pg","sample":null,"query_location":70,"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":98,"query_location_length":55,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":11,"column_names":["pg","classoid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":16,"column_names":["ddb","database_oid"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":131,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":9,"column_names":["pg","objoid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":12,"column_names":["ddb","view_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":160,"query_location_length":43,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":11,"column_names":["pg","objsubid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":178,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":13,"column_names":["ddb","view_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test_view"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select a, b 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":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":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 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":"BASE_TABLE","alias":"","sample":null,"query_location":14,"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 m('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":6,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 * from m('c', 'd', b := '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":"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":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":31,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"e"}}}]},"column_name_alias":[],"with_ordinality":"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('WITH a(i) AS (SELECT 1) SELECT a1.i AS i1, a2.i AS i2 FROM a AS a1, a AS a2');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":77,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"WITH a(i) AS (SELECT 1) SELECT a1.i AS i1, a2.i AS i2 FROM a AS a1, a AS a2"}}}]},"column_name_alias":[],"with_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"]}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT mod_two(a), SUM(a) FROM integers GROUP BY mod_two(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":"mod_two","schema":"","filter":null,"order_bys":{"type":"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"]}}]},{"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":["a"]}}]}],"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":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":10,"function_name":"mod_two","schema":"","filter":null,"order_bys":{"type":"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"]}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT in_with_cte(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":14,"function_name":"in_with_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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 f(x := (SELECT 41));","json":{"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":"f","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"x","query_location":14,"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":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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 multi_add(),\n multi_add(42),\n multi_add(42, 1),\n multi_add(42, 1, 1),\n multi_add(42, 1, 1, 1),\n multi_add(42, 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":11,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":13,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":16,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":19,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":22,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":25,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 parameter_types[1]\nfrom duckdb_functions()\nwhere function_name = 'm'\nand function_type = 'macro'\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":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":22,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":15,"column_names":["parameter_types"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}],"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_functions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":56,"query_location_length":47,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":13,"column_names":["function_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"m"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":13,"column_names":["function_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"macro"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from table_integral_default()","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":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"table_integral_default","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_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 m('duck')","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":9,"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":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT having_macro(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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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":18,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 my_macro(a := 42, 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":26,"function_name":"my_macro","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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\t* FROM xt(200,'andrew');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":16,"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":18,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"andrew"}}}]},"column_name_alias":[],"with_ordinality":"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(suit) FROM card_select() GROUP BY 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":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":13,"query_location_length":4,"column_names":["suit"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":13,"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":[]},"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 * FROM fibonacci(1, 2, 5, 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":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"fibonacci","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"column_name_alias":[],"with_ordinality":"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_count(DISTINCT i % 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":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":32,"function_name":"my_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":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":45,"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":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 duckdb_schemas()\nWHERE database_name = 'memory' AND schema_name IN ('s1','child','grandchild','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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":44,"query_location_length":81,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"memory"}}},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":88,"query_location_length":37,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"child"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"grandchild"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"sibling"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM s1.s2.v2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"s2","table_name":"v2","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","v2"]}},"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.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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"happy"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":17,"catalog":"parent","schema":"child","type_name":"mood","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":"SHOW TABLES FROM s1.nope;","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":"s1","schema_name":"nope"},"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 ('s1','child');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":44,"query_location_length":58,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"memory"}}},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":88,"query_location_length":14,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"child"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s1.tbl.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":8,"column_names":["s1","tbl","i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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 l.i, l.s, r.v FROM s1.child.t1 l JOIN s1.child.t2 r USING (i) ORDER BY l.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":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":12,"query_location_length":3,"column_names":["l","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["r","v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":26,"query_location_length":13,"schema_name":"child","table_name":"t1","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","child","t1"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":45,"query_location_length":13,"schema_name":"child","table_name":"t2","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","child","t2"]}},"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 count(*) FROM duckdb_tables() WHERE table_name IN ('t2','wal_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":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":57,"query_location_length":18,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":10,"column_names":["table_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"wal_table"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_triggers();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"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('xx')","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xx"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('myseq');","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"myseq"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('myseq', 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"myseq"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 nextval('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":"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"persisted_seq"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"seq\""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select \"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\" 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":67,"column_names":["AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"]}],"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":[]}]}} +{"sql":"SELECT i0, j, i1 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":2,"column_names":["i0"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["i1"]}],"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 \"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 out_of_path.oop_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":21,"schema_name":"out_of_path","table_name":"oop_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["out_of_path","oop_table"]}},"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_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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"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 test.test_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":21,"function_name":"test_macro","schema":"test","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 MAIN.CURRENT_SCHEMAS(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":27,"function_name":"current_schemas","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":28,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_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":18,"function_name":"current_database","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, name FROM sqlite_master WHERE name='👤' 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":64,"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":["type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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":43,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"👤"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select trim(sql, chr(10)) from duckdb_views() where internal = 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":"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":12,"query_location_length":3,"column_names":["sql"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":8,"column_names":["internal"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'A' COLLATE NOCASE 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":26,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"A"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":31,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%A"}},"collation":"NOCASE"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(x) from (select 1::INT as x group by 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":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":["x"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":22,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":31,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]}],"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 icu_sort_key('æ', '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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"æ"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"en"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('côte', 'fr_ca')","json":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"côte"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"fr_ca"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select rtrim(b collate de, '\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":25,"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":"COLLATE","type":"COLLATE","alias":"","query_location":13,"query_location_length":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["b"]},"collation":"de"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\u003c\u003e"}}}]}],"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 collate_test.s, collate_join_table.s, i FROM collate_test JOIN collate_join_table ON (collate_test.s=collate_join_table.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":139,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["collate_test","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":20,"column_names":["collate_join_table","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":65,"query_location_length":64,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":18,"schema_name":"","table_name":"collate_join_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_join_table"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":14,"column_names":["collate_test","s"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":20,"column_names":["collate_join_table","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":[]}]}} +{"sql":"SELECT collate_test.s, collate_join_table.s, i FROM collate_test JOIN collate_join_table ON (collate_test.s=collate_join_table.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":139,"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":14,"column_names":["collate_test","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":20,"column_names":["collate_join_table","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":65,"query_location_length":64,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":18,"schema_name":"","table_name":"collate_join_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_join_table"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":14,"column_names":["collate_test","s"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":20,"column_names":["collate_join_table","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":[]}]}} +{"sql":"SELECT list_position(['hello', 'world'], 'WORLD' 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":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":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":22,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"world"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"WORLD"}},"collation":"NOCASE"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([needle], 'BANANA'), list_position([needle], 'BANANA') FROM t 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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BANANA"}}}]},{"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BANANA"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"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":89,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' AS c1 ORDER BY 1 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":26,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"collation":"NOCASE"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c1","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 concat('a', (SELECT s)) FROM collate_test ORDER BY 1 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":58,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"collation":"NOCASE"}}]}],"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":19,"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":27,"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":36,"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 reverse(a collate noaccent) 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":27,"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":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]},"collation":"noaccent"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"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 strings WHERE 'goethe' \u003e s COLLATE NOACCENT.de 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":28,"query_location_length":32,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goethe"}},"right":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":39,"query_location_length":21,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["s"]},"collation":"NOACCENT.de"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from (select chr(2*16*256+1*256+2*16+11) union select chr(12*16+5)) as t(s) group by s collate nfc;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":62,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":27,"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":"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":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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":256}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":256}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":70,"query_location_length":12,"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":"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":74,"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":74,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["s"]},"where_clause":null,"group_expressions":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":101,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["s"]},"collation":"nfc"}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT position('EL' IN ('hello' 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":42,"function_name":"position","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":25,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"EL"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', '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":21,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"HELLO"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"EL"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FOREIGN KEY"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM album;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 count(*) \u003e 1 FROM glob('{TEST_DIR}/async_lifecycle_rotate/*.parquet');","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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":51,"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":30,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/async_lifecycle_rotate/*.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":"FROM read_csv('{DATA_DIR}/csv/14512.csv', 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":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":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/14512.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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_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":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":34,"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/test_2.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/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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BLA"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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',columns={'col1': '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":[]}],"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test/blob.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":24,"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":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":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":78,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 typeof(column0), typeof(column1), typeof(column2) 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":"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"]}}]},{"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"]}}]},{"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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":62,"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":77,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_file.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":104,"query_location_length":41,"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":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":126,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT linenr, mixed_string, mixed_double FROM test WHERE linenr \u003e 27000 LIMIT 3;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":6,"column_names":["linenr"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":12,"column_names":["mixed_string"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":12,"column_names":["mixed_double"]}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":["linenr"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":27000}}},"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', 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":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":28,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]},"column_name_alias":[],"with_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 = ',', 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":185,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":97,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"col3","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col3","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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/invalid_utf_list.csv', header=0, auto_detect=false, quote = '\"',columns = {'col1': '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":127,"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":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test/invalid_utf_list.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":8,"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":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}},{"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":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"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":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"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":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":127,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER[]"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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}/copy_to_overwrite.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":34,"schema_name":"","table_name":"{TEST_DIR}/copy_to_overwrite.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/copy_to_overwrite.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select typeof(Year), typeof(Quarter) from read_csv_auto('{DATA_DIR}/csv/real/ontime_sample.csv', dtypes={'Quarter': 'TINYINT'}) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["Year"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":28,"query_location_length":7,"column_names":["Quarter"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":42,"query_location_length":85,"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":56,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/real/ontime_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":6,"column_names":["dtypes"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"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":"Quarter","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"Quarter","query_location":116,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"TINYINT"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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', columns={'i':'varchar', 'b':'varchar'}, types=['VARCHAR', '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":113,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/auto/int_bol.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":38,"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":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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":71,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":86,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":5,"column_names":["types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"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":105,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}}]},"column_name_alias":[],"with_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/response.csv', types={'column0': 'bla'}, nullstr = 'Null', header = 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":100,"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":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/response.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":5,"column_names":["types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":"column0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column0","query_location":68,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bla"}}}]}}},{"name":"","expression":{"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":7,"column_names":["nullstr"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Null"}}}},{"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":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]},"column_name_alias":[],"with_ordinality":"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, part, date from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv', HIVE_PARTITIONING=1) 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":134,"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":["value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":4,"column_names":["part"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":4,"column_names":["date"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"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":48,"query_location_length":54,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":104,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"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=CAST('2012-01-01' as DATE) AND concat(date_cast::VARCHAR, part_cast::VARCHAR) == 'foobar') OR (part_cast=9000) 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":314,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":183,"query_location_length":121,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":184,"query_location_length":99,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":9,"column_names":["date_cast"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":194,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2012-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":215,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":225,"query_location_length":58,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":225,"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":241,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":9,"column_names":["date_cast"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":243,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":261,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":9,"column_names":["part_cast"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":263,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":275,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobar"}}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":289,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":289,"query_location_length":9,"column_names":["part_cast"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":299,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9000}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select part, filename.replace('\\', '/').split('/')[-2], a, b from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/mismatching_types/*/*.csv', HIVE_PARTITIONING=1, FILENAME=1, UNION_BY_NAME=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":202,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["part"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":50,"query_location_length":4,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":13,"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":30,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":66,"query_location_length":125,"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":80,"query_location_length":60,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/hive-partitioning/mismatching_types/*/*.csv"}}},{"name":"","expression":{"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":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":163,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"select column00, column01, column02, column03 from '{DATA_DIR}/csv/real/lineitem_sample.csv' 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":41,"schema_name":"","table_name":"{DATA_DIR}/csv/real/lineitem_sample.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/real/lineitem_sample.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/header.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":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":14,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/nullbyte_header.csv', columns={'col1': 'VARCHAR', 'col2': 'VARCHAR'}, delim='|', 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":119,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/nullbyte_header.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":46,"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":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":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":78,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":97,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}},{"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":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_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 = 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":166,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"height","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"height","query_location":187,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":166,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"height","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"height","query_location":187,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"none"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"null"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dont_exist"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":142,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":160,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":179,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-05-12"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":205,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}},{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":224,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9be2bc9d-d49f-4564-bfa4-6336b211a874"}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/glob/a1/a1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/glob/a2/a2.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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}//csv///glob///*//////*.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([]::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\|"}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":55}}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":112,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":128,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":144,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}}]},"column_name_alias":[],"with_ordinality":"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Total Time"}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/auto/test_multiple_columns.csv"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/aws_locations.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/error/quotednewlines.csv', parallel=true, sep=',', 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":141,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":107,"query_location_length":34,"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":115,"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":122,"query_location_length":3,"column_names":["int"]}},{"name":"h2","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"h2","query_location":133,"query_location_length":7,"column_names":["varchar"]}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":143,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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 SELECT i, row_number() OVER () AS rn\n FROM read_csv(['{TEST_DIR}/csv_ra_0.csv.gz', '{TEST_DIR}/csv_ra_1.csv.gz', '{TEST_DIR}/csv_ra_2.csv.gz'])\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":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":154,"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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":73,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":90,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_ra_0.csv.gz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_ra_1.csv.gz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_ra_2.csv.gz"}}}]}}]},"column_name_alias":[],"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":182,"query_location_length":11,"left":{"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":"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":186,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":191,"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 *\nFROM read_csv_auto('a.csv', delim=',', 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":37,"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a.csv"}}},{"name":"","expression":{"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":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"column_name_alias":[],"with_ordinality":"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","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":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(\n '{DATA_DIR}/csv/error/mismatch/bad.csv',\n columns = {'col0': 'INTEGER', 'col1': 'INTEGER', 'col2': 'VARCHAR'},\n store_rejects = true, 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":171,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":111,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":168,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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, file_id) FROM reject_errors 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":28,"relation_name":"","exclude_list":["scan_id","file_id"],"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":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 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_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":"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"]}}]}}]},{"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"]}}]}}]},{"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":[]},{"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"]}}]},{"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"]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":120,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rejects_scan_2"}}}}]},"column_name_alias":[],"with_ordinality":"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 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"]}}]}}]},{"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"]}}]}}]},{"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":[]},{"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"]}}]},{"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"]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":194,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rejects_errors_3"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":269,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":269,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":285,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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 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":214,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":111,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"csv_rejects_table"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":209,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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;","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":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":"FROM read_csv('{DATA_DIR}/csv/rejects/multiple_errors/unquoted_maxline.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, 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":260,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/rejects/multiple_errors/unquoted_maxline.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":118,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"current_day","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"current_day","query_location":144,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"barks","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"barks","query_location":161,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":248,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":260,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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/unescaped_quote.csv', strict_mode=false, escape = '', quote = '\"', 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":121,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/unescaped_quotes/unescaped_quote.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":114,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/inconsistencies/line_with_spaces.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/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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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 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":[]}],"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('{DATA_DIR}/csv/test/no_newline_unicode.csv', delim= '🦆') limit 5;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":69,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test/no_newline_unicode.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"🦆"}}}}]},"column_name_alias":[],"with_ordinality":"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('{TEMP_DIR}/timetz.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":34,"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/timetz.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/bad_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":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"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":30,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/bad_date.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 new_timestamps 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":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":14,"schema_name":"","table_name":"new_timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["new_timestamps"]}},"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(18,15)', '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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"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":40,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/decimal.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":58,"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":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":97,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NULL"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DECIMAL(18,15)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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 long_escaped_value_unicode","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":26,"schema_name":"","table_name":"long_escaped_value_unicode","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["long_escaped_value_unicode"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(bar) FROM read_csv(['{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/2.csv','{DATA_DIR}/csv/17451/extra/3.csv'], files_to_sniff = 5) limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":445,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"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":["bar"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":414,"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":33,"query_location_length":384,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":266,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":295,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":324,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":353,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":382,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/extra/3.csv"}}}]}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":419,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":419,"query_location_length":14,"column_names":["files_to_sniff"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":436,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}}]},"column_name_alias":[],"with_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 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":"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":"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM nullable_type","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"nullable_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nullable_type"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from proj 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":4,"schema_name":"","table_name":"proj","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["proj"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SHOW 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":"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":"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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/mixed_new_line.csv', columns = {'a':'integer', 'b':'integer', 'c':'integer'}, new_line = '\\r\\n', header = false, strict_mode=true, delim = ',', 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":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":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/mixed_new_line.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":55,"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":61,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":66,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integer"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":81,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integer"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":96,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integer"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":8,"column_names":["new_line"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\r\\n"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":127,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":143,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":161,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":174,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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 s COLLATE NFC = 'ü'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":20,"left":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":38,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["s"]},"collation":"NFC"},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ü"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select filename from read_csv('{DATA_DIR}/csv/nullpadding.csv',null_padding=true, columns={\n'a': 'INTEGER','b': 'INTEGER','c': 'INTEGER','d': 'INTEGER'}, auto_detect =\u003e false, ignore_errors =\u003e true, filename =\u003e true, strict_mode=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":8,"column_names":["filename"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":213,"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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/nullpadding.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":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":70,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"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":97,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":112,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":127,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":142,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}},{"name":"auto_detect","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"auto_detect","query_location":169,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},{"name":"ignore_errors","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"ignore_errors","query_location":193,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":211,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":217,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":217,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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 v where c 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":[]}],"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":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":31,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["c"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv_auto('{TEST_DIR}/data.csv.d2/*/*/*.csv.zst') 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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":53,"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":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/data.csv.d2/*/*/*.csv.zst"}}}]},"column_name_alias":[],"with_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/quoted_values_delimited.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":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":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/quoted_values_delimited.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/fuzzing/{i}.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/fuzzing/{i}.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/fuzzing/{i}.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":69,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/error/mismatch/big_bad.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":13,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"FROM sniff_csv('{DATA_DIR}/csv/auto/backslash_escape.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":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":15,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/auto/backslash_escape.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', header=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":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":15,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"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":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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', types=['INTEGER','BIGINT','BIGINT','BIGINT','BIGINT', 'DOUBLE','DOUBLE','DOUBLE','VARCHAR', 'VARCHAR','DATE', 'DATE', 'DATE', 'VARCHAR', 'VARCHAR', '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":214,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":160,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":5,"column_names":["types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":154,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/test_apple_financial.csv.gz', skip=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":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"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":30,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test_apple_financial.csv.gz"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}}]},"column_name_alias":[],"with_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 = '', delim = 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":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":14,"query_location_length":47,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/thousands_separator/simple.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":14,"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":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}},{"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":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}}]},"column_name_alias":[],"with_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/multi_column.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":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":14,"query_location_length":53,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/thousands_separator/multi_column.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":9,"column_names":["thousands"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}}]},"column_name_alias":[],"with_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_tz.csv', dtypes = [TIMESTAMPTZ], timestampformat = '%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":97,"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":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/timestamp_tz.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":6,"column_names":["dtypes"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":59,"query_location_length":11,"column_names":["TIMESTAMPTZ"]}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":15,"column_names":["timestampformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%d/%m/%Y"}}}}]},"column_name_alias":[],"with_ordinality":"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/union-by-name/part=[ab]/*',HIVE_PARTITIONING=TRUE, null_padding=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":96,"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":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/union-by-name/part=[ab]/*"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":14,"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":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]},"column_name_alias":[],"with_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/quoted_new_value.csv', columns = {'band': 'varchar', 'album': 'varchar', 'release': 'varchar'}, quote = '''', delim = ';', header = 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":169,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/validator/quoted_new_value.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":71,"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":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":"band","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"band","query_location":82,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}},{"name":"album","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"album","query_location":102,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}},{"name":"release","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"release","query_location":124,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":136,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"'"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":163,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]},"column_name_alias":[],"with_ordinality":"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 tbl_tz","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"tbl_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n hamming(replace(string_agg(w, '|' ORDER BY y), E'\\r\\n', E'\\n'), E'\\\\|,|\"|\\n'),\n hamming(string_agg(z, '|' ORDER BY y), '\"|\"a\"|\"b|c\"'),\n bool_and(x = concat(w, '\"', w))::int\nFROM read_csv('{DATA_DIR}/csv/unquoted_escape/mixed.csv', quote = '\"', escape = '\\', sep = ',', strict_mode = false);","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":77,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":29,"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":54,"query_location_length":1,"column_names":["y"]}}]},"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":["w"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\r\n"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\n"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\|,|\"|\n"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":53,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":29,"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":129,"query_location_length":1,"column_names":["y"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["z"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"|\"a\"|\"b|c\""}}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":184,"query_location_length":5,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":153,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":162,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":1,"column_names":["x"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":166,"query_location_length":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":1,"column_names":["w"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":1,"column_names":["w"]}}]}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":186,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":195,"query_location_length":111,"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":204,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/unquoted_escape/mixed.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":248,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":261,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":270,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":275,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":275,"query_location_length":3,"column_names":["sep"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":281,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":286,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":286,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":300,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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='encrypted_v0'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":28,"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"encrypted_v0"}}},"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}/file_size_bytes_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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/file_size_bytes_parquet/*.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 test2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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 * FROM '{TEST_DIR}/uuid_v7/a=5/a_name_with_????????-????-7???-????-????????????.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":81,"schema_name":"","table_name":"{TEST_DIR}/uuid_v7/a=5/a_name_with_????????-????-7???-????-????????????.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/uuid_v7/a=5/a_name_with_????????-????-7???-????-????????????.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 read_parquet(['{TEST_DIR}/allow_empty_missing.parquet'], allow_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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":76,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":40,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/allow_empty_missing.parquet"}}}]}},{"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":11,"column_names":["allow_empty"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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}-v1.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":175,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":93,"query_location_length":53,"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":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/dict-{type}-v1.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"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 BOOL_AND(NOT bloom_filter_excludes)\nFROM parquet_bloom_probe('{TEST_DIR}/bloom_decimal.parquet', 'dec_int64', 0.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":35,"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_NOT","alias":"","query_location":16,"query_location_length":25,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":21,"column_names":["bloom_filter_excludes"]}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"query_location_length":89,"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":68,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_decimal.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dec_int64"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":121,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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}/bloom_interval_equivalent.parquet')\nWHERE iv_struct.iv = INTERVAL '101 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_interval_equivalent.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"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":12,"column_names":["iv_struct","iv"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":103,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"101 days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}},"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_value[1] IN (101, 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_list.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":90,"query_location_length":11,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":83,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":10,"column_names":["list_value"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":101}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]},"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', 'r2', '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":65,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"r2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"200"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bloom_filter_excludes\nFROM parquet_bloom_probe('{TEST_DIR}/bloom_blob.parquet', 'b', from_hex('FF')::BLOB);","json":{"error":false,"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":["bloom_filter_excludes"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":79,"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":54,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_blob.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"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":101,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FF"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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_or(bloom_filter_excludes)\nFROM parquet_bloom_probe('{TEST_DIR}/bloom_temporal.parquet', 'tm_tz', TIMETZ '12:00:00+02');","json":{"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":"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":15,"query_location_length":21,"column_names":["bloom_filter_excludes"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":43,"query_location_length":87,"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":63,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_temporal.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tm_tz"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":109,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:00:00+02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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_length from parquet_metadata('{TEST_DIR}/bloom7.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":101,"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":19,"column_names":["bloom_filter_length"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":46,"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":63,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom7.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 parquet_scan('test/sql/copy/parquet/broken/twomarkers.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":[]}],"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_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":49,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test/sql/copy/parquet/broken/twomarkers.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 row_group_num_rows\nFROM parquet_metadata('{TEST_DIR}/cte_batch_exchange.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":98,"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":18,"column_names":["row_group_num_rows"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"query_location_length":57,"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":48,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/cte_batch_exchange.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('{DATA_DIR}/parquet-testing/encryption/arrow_uniform_encryption_ten_row_groups.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":162,"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":87,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/encryption/arrow_uniform_encryption_ten_row_groups.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":116,"query_location_length":59,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":17,"column_names":["encryption_config"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"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":147,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"arrow_key_generated_files"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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 timeseries\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":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":15,"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{DATA_DIR}/parquet-testing/broken/broken_utinyint.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":59,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/broken/broken_utinyint.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/broken/broken_utinyint.parquet"]}},"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 (SELECT unnest(parquet_kv_metadata, recursive:=True) FROM parquet_full_metadata('{TEST_DIR}/kv_metadata_test.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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":41,"query_location_length":119,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":19,"column_names":["parquet_kv_metadata"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":88,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":99,"query_location_length":60,"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":121,"query_location_length":37,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/kv_metadata_test.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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name, type, duckdb_type FROM (SELECT unnest(parquet_schema, recursive:=True) FROM parquet_full_metadata('data/parquet-testing/lineitem-top10000.gzip.parquet')) WHERE type 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":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":11,"column_names":["duckdb_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":36,"query_location_length":130,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"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":51,"query_location_length":14,"column_names":["parquet_schema"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":78,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":89,"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":111,"query_location_length":53,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/parquet-testing/lineitem-top10000.gzip.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":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":178,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":4,"column_names":["type"]}]},"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_mismatch_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":138,"query_location_length":9,"column_names":["timestamp"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"AdaptiveFilter"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":70,"query_location_length":58,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INIT"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"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":"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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%af_mismatch_2.parquet"}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT f, i\nFROM integer_file_first\nWHERE i 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":["f"]},{"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":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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":44,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"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 count(*) from parquet_scan('{DATA_DIR}/parquet-testing/glob/*.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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":43,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob/*.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 '{DATA_DIR}/parquet-testing/issue10279_delta_encoding.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":62,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/issue10279_delta_encoding.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/issue10279_delta_encoding.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 parquet_scan('{DATA_DIR}/parquet-testing/bug1588.parquet') WHERE has_image_link = '1'::bool","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/bug1588.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":14,"column_names":["has_image_link"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":4,"catalog":"","schema":"","type_name":"bool","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x FROM read_parquet(['{TEST_DIR}/ubn22147_struct.parquet', '{TEST_DIR}/ubn22147_int.parquet', '{TEST_DIR}/ubn22147_null.parquet'], union_by_name=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":["x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":143,"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":109,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ubn22147_struct.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ubn22147_int.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ubn22147_null.parquet"}}}]}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":138,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select \"repositoryTopics.edges\" from \"{DATA_DIR}/parquet-testing/bug4859.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":24,"column_names":["repositoryTopics.edges"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":44,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/bug4859.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/bug4859.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, n FROM '{TEST_DIR}/all_null.parquet' WHERE i IN (0, 5000, 9999) 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":83,"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":["n"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/all_null.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/all_null.parquet"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":58,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5000}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9999}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(#1) FROM parquet_scan('{DATA_DIR}/parquet-testing/binary_string.parquet',binary_as_string=False) limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":87,"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":50,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/binary_string.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":16,"column_names":["binary_as_string"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT num_values, row_group_num_rows, stats_null_count\nFROM parquet_metadata('{DATA_DIR}/parquet-testing/parquet_column_num_values_mismatch.parquet')\nWHERE path_in_schema = '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":10,"column_names":["num_values"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":18,"column_names":["row_group_num_rows"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":16,"column_names":["stats_null_count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"query_location_length":89,"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":78,"query_location_length":71,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/parquet_column_num_values_mismatch.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":157,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":14,"column_names":["path_in_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet('{TEST_DIR}/encrypted{key_len}.parquet', encryption_config={footer_key: 'key{key_len}'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":101,"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":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/encrypted{key_len}.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":46,"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":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":"footer_key","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"footer_key","query_location":99,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key{key_len}"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":255}}}]}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zz"}}}]}]},"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/arrow/lineitem-arrow.parquet', '{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":132,"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":27,"query_location_length":118,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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":57,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":57,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.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, value as f, date from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet', HIVE_PARTITIONING=1) where filename='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":"f","query_location":11,"query_location_length":5,"column_names":["value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["date"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"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":46,"query_location_length":79,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":127,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":154,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"value1"}}},"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 = 'value2';","json":{"error":false,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%mismatching_count%"}}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"value2"}}}]},"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 = '2013-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2013-01-01"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select id, value, part, CAST(date AS DATE) as date_cast from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet', HIVE_PARTITIONING=1) where concat(date_cast::VARCHAR, part) == '2012-01-01a';","json":{"error":false,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":4,"column_names":["part"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"date_cast","query_location":24,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":4,"column_names":["date"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"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":74,"query_location_length":79,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":155,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":182,"query_location_length":49,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":182,"query_location_length":32,"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":198,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":9,"column_names":["date_cast"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":200,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":4,"column_names":["part"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":218,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2012-01-01a"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * \nfrom parquet_scan('{TEST_DIR}/null-parquet/**/*.parquet', hive_partitioning=1, hive_types={'a': INT})\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":15,"query_location_length":96,"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":28,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/null-parquet/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":10,"column_names":["hive_types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"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":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":106,"query_location_length":3,"column_names":["INT"]}}]}}}]},"column_name_alias":[],"with_ordinality":"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(part), part FROM read_parquet('{TEST_DIR}/hive_override_u/part=42/*.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":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":["part"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":4,"column_names":["part"]}],"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":"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":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/hive_override_u/part=42/*.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 j FROM test WHERE j \u003e 3 ORDER 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":40,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["j"]}],"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":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from parquet_scan([]::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":[]}],"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":"parquet_scan","schema":"","filter":null,"order_bys":{"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":11,"child":{"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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]},"column_name_alias":[],"with_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 per_file AS (\n SELECT file_name, COUNT(*) AS rows_per_file\n FROM parquet_schema('data/parquet-testing/glob3/**/*.parquet')\n GROUP BY file_name\n)\nSELECT\n SUM(rows_per_file) AS total_rows,\n MAX(rows_per_file) AS max_rows_per_filename,\n (SELECT COUNT(DISTINCT column_id) FROM parquet_schema('data/parquet-testing/glob3/**/*.parquet')) AS distinct_column_ids\nFROM per_file;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"per_file","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":9,"column_names":["file_name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"rows_per_file","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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":76,"query_location_length":57,"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":91,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/parquet-testing/glob3/**/*.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":9,"column_names":["file_name"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"total_rows","query_location":170,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":13,"column_names":["rows_per_file"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"max_rows_per_filename","query_location":208,"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":212,"query_location_length":13,"column_names":["rows_per_file"]}}]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"distinct_column_ids","query_location":257,"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":265,"query_location_length":25,"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":280,"query_location_length":9,"column_names":["column_id"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":296,"query_location_length":57,"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":311,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/parquet-testing/glob3/**/*.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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":383,"query_location_length":8,"schema_name":"","table_name":"per_file","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["per_file"]}},"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/glob2/t1.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":59,"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":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob2/t1.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 accepted_column_gap\nFROM duckdb_logs_parsed('ParquetPrefetch')\nWHERE file_path LIKE '%cost_model_gap.parquet' AND row_group_id = 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":19,"column_names":["accepted_column_gap"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"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":51,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ParquetPrefetch"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":76,"query_location_length":61,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%cost_model_gap.parquet"}}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":12,"column_names":["row_group_id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 '%rgo_proj.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":156,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ParquetPrefetch"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"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":112,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%rgo_proj.parquet"}}}]},"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}/rgo3.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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["c"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["g"]}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/rgo3.parquet"}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":500}}},"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}/prefetch_tracked_big.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":[]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":41,"schema_name":"","table_name":"{TEST_DIR}/prefetch_tracked_big.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/prefetch_tracked_big.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a FROM parquet_scan(['{TEST_DIR}/evolution_2.parquet', '{TEST_DIR}/evolution_1.parquet', '{TEST_DIR}/evolution_*.parquet']) 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":140,"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":102,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/evolution_2.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/evolution_1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/evolution_*.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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/empty-group/empty_group_test.parquet"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"inner"}}},"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/signed_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":67,"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":49,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/signed_stats.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 '{DATA_DIR}/parquet-testing/arrow/int32_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":56,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/arrow/int32_decimal.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/arrow/int32_decimal.parquet"]}},"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(l_comment) s from 'data/parquet-testing/lineitem-top10000.gzip.parquet') LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":86,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":33,"query_location_length":16,"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":39,"query_location_length":9,"column_names":["l_comment"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":53,"schema_name":"","table_name":"data/parquet-testing/lineitem-top10000.gzip.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/lineitem-top10000.gzip.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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob/t1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob/t2.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob2/t1.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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4096}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/{codec}.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(*), sum(i) FROM '{TEST_DIR}/starved.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":[]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":28,"schema_name":"","table_name":"{TEST_DIR}/starved.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/starved.parquet"]}},"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.has_null, s.has_no_null from (select stats(col) s from '{TEST_DIR}/not_fully_shredded_list.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":10,"column_names":["s","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":13,"column_names":["s","has_no_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":57,"query_location_length":79,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":65,"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":71,"query_location_length":3,"column_names":["col"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":83,"query_location_length":44,"schema_name":"","table_name":"{TEST_DIR}/not_fully_shredded_list.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/not_fully_shredded_list.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 my_map['A'], * FROM parquet_scan('{DATA_DIR}/parquet-testing/struct_skip_test.parquet') where filter == '0'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":13,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["my_map"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"A"}}]},{"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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":67,"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":40,"query_location_length":53,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/struct_skip_test.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"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":6,"column_names":["filter"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}}},"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/userdata1.parquet') where id \u003e 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/userdata1.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":88,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":500}}},"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/date.parquet') where d \u003c cast('1978-01-01' as 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":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":27,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/date.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":76,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1978-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},"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 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/date.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":85,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"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 * FROM parquet_scan('does_not_exist')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"does_not_exist"}}}]},"column_name_alias":[],"with_ordinality":"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(registration_dttm), MAX(registration_dttm) FROM userdata1","json":{"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":"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":17,"column_names":["registration_dttm"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":22,"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":17,"column_names":["registration_dttm"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"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(ip_address) OVER w, LAST(ip_address) 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":162,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":24,"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":94,"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":10,"column_names":["ip_address"]}}]},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":33,"query_location_length":23,"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":94,"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":38,"query_location_length":10,"column_names":["ip_address"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"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(comments) OVER w, LAST(comments) 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":158,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":22,"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":90,"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":8,"column_names":["comments"]}}]},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":31,"query_location_length":21,"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":90,"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":36,"query_location_length":8,"column_names":["comments"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"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 * 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"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"]}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/x=1"}}}]}},"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-two-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":54,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/dict-two-values.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 CAST(ufield AS UNION(nums INT[], flag BOOLEAN))\nFROM read_parquet('{TEMP_DIR}/u_int.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":110,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":47,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":6,"column_names":["ufield"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":31,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"nums","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]},{"class":"TYPE","type":"TYPE","alias":"flag","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":60,"query_location_length":40,"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":73,"query_location_length":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/u_int.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 typeof(b) FROM '{TEST_DIR}/bools.parquet' LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"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}/enums.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":26,"schema_name":"","table_name":"{TEST_DIR}/enums.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/enums.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 = 'I' and num_children \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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/my.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":67,"query_location_length":31,"children":[{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"I"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":82,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":12,"column_names":["num_children"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM signed EXCEPT SELECT * FROM '{TEST_DIR}/signed.parquet'","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":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":"signed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["signed"]}},"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":35,"query_location_length":1,"relation_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":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 * FROM '{TEST_DIR}/timestamps.parquet' WHERE d='1992-01-01 12:03:27'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":31,"schema_name":"","table_name":"{TEST_DIR}/timestamps.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/timestamps.parquet"]}},"where_clause":{"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":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 12:03:27"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM '{TEST_DIR}/unsigned.parquet' WHERE d\u003e=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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/unsigned.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/unsigned.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","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":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM glob('{TEST_DIR}/empty_file_size_bytes/*.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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":50,"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":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/empty_file_size_bytes/*.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 parquet_scan('{TEMP_DIR}/userdata1-gzip.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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/userdata1-gzip.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 stats_null_count 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":16,"column_names":["stats_null_count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"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":46,"query_location_length":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/stats.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 *\nfrom parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/duplicate_names/**/*.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":"STAR","type":"STAR","alias":"","query_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":89,"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":75,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/hive-partitioning/duplicate_names/**/*.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 read_parquet('{TEST_DIR}/delayed_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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/delayed_ordered/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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}/partitioned7/part_col=1/*.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":96,"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":42,"schema_name":"","table_name":"{TEST_DIR}/partitioned7/part_col=1/*.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/partitioned7/part_col=1/*.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH per_file AS (\n\tSELECT\n\t\tfile_row_number,\n\t\tid,\n\t\tlag(id) OVER (PARTITION BY filename ORDER BY file_row_number) AS prev_id\n\tFROM read_parquet(\n\t\t'{TEST_DIR}/ordered_only_parallel/*.parquet',\n\t\tfilename = true,\n\t\tfile_row_number = true\n\t)\n)\nSELECT count(*)\nFROM per_file\nWHERE file_row_number \u003e 0 AND prev_id \u003c id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"per_file","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":15,"column_names":["file_row_number"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_LAG","alias":"prev_id","query_location":54,"query_location_length":61,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":8,"column_names":["filename"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":15,"column_names":["file_row_number"]}}],"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":2,"column_names":["id"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":133,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ordered_only_parallel/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":197,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":216,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":216,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"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":251,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":265,"query_location_length":8,"schema_name":"","table_name":"per_file","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["per_file"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":280,"query_location_length":36,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":280,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":280,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":298,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":304,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":304,"query_location_length":7,"column_names":["prev_id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":314,"query_location_length":2,"column_names":["id"]}}]},"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":[]},{"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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)\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":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":22,"query_location_length":4,"column_names":["col1"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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":58,"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(*) \u003e 1 FROM glob('{TEST_DIR}/ordered_partitioned/p=0/*.parquet');","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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":52,"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":30,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ordered_partitioned/p=0/*.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 partition1, partition2, LAG(col1) OVER w AS prev\nFROM partitioned_tbl2\nWINDOW w AS (PARTITION BY partition1, partition2 ORDER BY col1)\nQUALIFY (col1 - prev) \u003c\u003e 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":10,"column_names":["partition1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":10,"column_names":["partition2"]},{"class":"WINDOW","type":"WINDOW_LAG","alias":"prev","query_location":31,"query_location_length":16,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":10,"column_names":["partition1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":10,"column_names":["partition2"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"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":35,"query_location_length":4,"column_names":["col1"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"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":150,"query_location_length":18,"left":{"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":["col1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":4,"column_names":["prev"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}},"named_param_map":[]}]}} +{"sql":"SELECT part_col, value_col, value2_col FROM '{TEST_DIR}/no-part-cols8/part_col=0/value_col=*/value2_col=*/*.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":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}/no-part-cols8/part_col=0/value_col=*/value2_col=*/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/no-part-cols8/part_col=0/value_col=*/value2_col=*/*.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 PARQUET_SCAN('{TEST_DIR}/per_thread_output/*.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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/per_thread_output/*.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 '{TEST_DIR}/row_groups_per_file3/*.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":43,"schema_name":"","table_name":"{TEST_DIR}/row_groups_per_file3/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/row_groups_per_file3/*.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_file9/*.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":43,"schema_name":"","table_name":"{TEST_DIR}/row_groups_per_file9/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/row_groups_per_file9/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM db2.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":8,"schema_name":"db2","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db2","tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"tbl5","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl5"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM 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":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 42 AS a) FROM (SUMMARIZE TABLE 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":"a","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":"","sample":null,"query_location":34,"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":"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":"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},"show_type":"SUMMARY","catalog_name":"","schema_name":""},"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 t_aux;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"t_aux","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_aux"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM table2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":"with recursive t as MATERIALIZED (select 1 as x except 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":111,"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":"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":"x","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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":79,"query_location_length":5,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":93,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM cte_order_sorted_copy LIMIT 5;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":21,"schema_name":"","table_name":"cte_order_sorted_copy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_order_sorted_copy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM cte_parallel_sparse current_row\nJOIN cte_parallel_sparse previous_row\n\tON current_row.rowid = previous_row.rowid + 1\nWHERE current_row.i \u003c= previous_row.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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":53,"query_location_length":84,"left":{"type":"BASE_TABLE","alias":"current_row","sample":null,"query_location":21,"query_location_length":31,"schema_name":"","table_name":"cte_parallel_sparse","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_parallel_sparse"]}},"right":{"type":"BASE_TABLE","alias":"previous_row","sample":null,"query_location":58,"query_location_length":32,"schema_name":"","table_name":"cte_parallel_sparse","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_parallel_sparse"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":42,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":17,"column_names":["current_row","rowid"]},"right":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":18,"column_names":["previous_row","rowid"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":144,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":13,"column_names":["current_row","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":14,"column_names":["previous_row","i"]}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 _.x\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":198,"query_location_length":1,"column_names":["x"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"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":176,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":57,"query_location_length":126,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"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},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":3,"column_names":["_","x"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":149,"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":159,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":174,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":181,"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 l JOIN c r USING (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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":82,"query_location_length":18,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":78,"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":87,"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":["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":"WITH l AS MATERIALIZED (SELECT i FROM range(10000) t(i)),\n r AS MATERIALIZED (SELECT i FROM range(10000) t(i))\nSELECT count(*) FROM (\n SELECT l.i FROM l JOIN r USING (i)\n UNION ALL\n SELECT l.i FROM l JOIN r USING (i)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"l","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"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":"r","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":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":96,"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":102,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"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":122,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":136,"query_location_length":89,"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":147,"query_location_length":3,"column_names":["l","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":158,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":156,"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":163,"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":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":196,"query_location_length":3,"column_names":["l","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":207,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":205,"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":212,"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":"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":"with cte1 as MATERIALIZED (Select i as j from a) select * from (with cte2 as MATERIALIZED (select max(j) as j from cte1) select * from cte2) f","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":"SUBQUERY","alias":"f","sample":null,"query_location":63,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte2","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":98,"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":102,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":115,"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}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":128,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":135,"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},"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 cte1 as MATERIALIZED (Select i as j from a) select * from cte1 where j = (select max(j) from cte1 as 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":[]},"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":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":4,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":37,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["j"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":78,"query_location_length":33,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"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":90,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"cte2","sample":null,"query_location":98,"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},"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 t(x) AS MATERIALIZED (SELECT 1) 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":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"STAR","type":"STAR","alias":"","query_location":44,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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 t(x) AS MATERIALIZED (SELECT 1),\n u(x) AS MATERIALIZED (SELECT 2)\n SELECT *\n FROM u FULL OUTER JOIN t ON TRUE;","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":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}},{"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":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"STAR","type":"STAR","alias":"","query_location":84,"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":95,"query_location_length":25,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"query_location_length":1,"schema_name":"","table_name":"u","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["u"]}},"right":{"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"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 * FROM ctenames;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"ctenames","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ctenames"]}},"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 x+1 from t where x \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":116,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":59,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"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":76,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":90,"query_location_length":2,"column_names":["zz"]}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":98,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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, unused) AS (\n\tVALUES (1, 0::BIGINT)\n\tUNION ALL\n\tSELECT i + 1, nextval('recursive_member_pruning_sequence') FROM t WHERE i \u003c 3\n)\nSELECT max(i), currval('recursive_member_pruning_sequence') FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["i","unused"],"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}]]},"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":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":75,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":44,"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":90,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"recursive_member_pruning_sequence"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":132,"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":140,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i","unused"],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":155,"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":159,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":44,"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":171,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"recursive_member_pruning_sequence"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":213,"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 s.s_name, COUNT(*) AS numwait\nFROM supplier AS s, nation AS n, (SELECT *\n FROM orders\n WHERE o_orderstatus = 'F'\n ORDER BY o_orderkey) AS o\nWHERE o.o_orderstatus = 'F'\nAND s.s_nationkey = n.n_nationkey\nAND\n(WITH RECURSIVE \"@loop\" (\"$label\", \"$output\", \"0\", \"1\") AS (\n (SELECT CAST('$' AS VARCHAR) AS \"$label\", CAST(NULL AS BOOLEAN) AS \"$output\", CAST(o.o_orderkey AS BIGINT) AS \"0\", CAST(s.s_suppkey AS BIGINT) AS \"1\")\n UNION ALL\n (WITH \"0\" (suppkey, orderkey) AS (SELECT \"@loop\".\"1\" AS suppkey, \"@loop\".\"0\" AS orderkey FROM \"@loop\" WHERE (\"@loop\".\"$label\" IS NOT DISTINCT FROM '$')),\n \"1\" (orderkey, suppkey, found) AS (SELECT \"0\".orderkey AS orderkey, \"0\".suppkey AS suppkey, CAST(NULL AS BOOLEAN) AS found FROM \"0\" AS \"0\"(suppkey, orderkey)),\n \"2\" (suppkey, orderkey, lis) AS (SELECT \"1\".suppkey AS suppkey, \"1\".orderkey AS orderkey, CAST(NULL AS BIGINT[]) AS lis FROM \"1\" AS \"1\"(orderkey, suppkey, found)),\n \"3\" (orderkey, suppkey, li) AS (SELECT \"2\".orderkey AS orderkey, \"2\".suppkey AS suppkey, CAST(NULL AS BIGINT) AS li FROM \"2\" AS \"2\"(suppkey, orderkey, lis)),\n \"4\" (suppkey, orderkey, blame) AS (SELECT \"3\".suppkey AS suppkey, \"3\".orderkey AS orderkey, CAST('f' AS BOOLEAN) AS blame FROM \"3\" AS \"3\"(orderkey, suppkey, li)),\n \"5\" (orderkey, blame, suppkey, multi) AS (SELECT \"4\".orderkey AS orderkey, \"4\".blame AS blame, \"4\".suppkey AS suppkey, CAST('f' AS BOOLEAN) AS multi FROM \"4\" AS \"4\"(suppkey, orderkey, blame)),\n \"6\" (suppkey, multi, blame, lis) AS (SELECT \"5\".suppkey AS suppkey, \"5\".multi AS multi, \"5\".blame AS blame, (SELECT CAST((SELECT * FROM (SELECT array_agg(l.l_suppkey) FROM lineitem AS l WHERE (l.l_orderkey = \"5\".orderkey)) AS subquery LIMIT 1) AS BIGINT[])) AS lis FROM \"5\" AS \"5\"(orderkey, blame, suppkey, multi)),\n \"7\" (blame, multi) AS (SELECT \"6\".blame AS blame, (SELECT CAST((SELECT (\"6\".multi OR ((\"6\".lis[1]) != \"6\".suppkey))) AS BOOLEAN)) AS multi FROM \"6\" AS \"6\"(suppkey, multi, blame, lis)),\n \"8\" (return_value) AS (SELECT (\"7\".multi AND \"7\".blame) AS return_value FROM \"7\" AS \"7\"(blame, multi)),\n \"9\" (\"$output\") AS (SELECT \"8\".return_value AS \"$output\" FROM \"8\" AS \"8\"(return_value))\n SELECT CAST(NULL AS VARCHAR) AS \"$label\", CAST(\"9\".\"$output\" AS BOOLEAN) AS \"$output\", CAST(NULL AS BIGINT) AS \"0\", CAST(NULL AS BIGINT) AS \"1\" FROM \"9\" AS \"9\"(\"$output\")))\n SELECT \"@loop\".\"$output\" FROM \"@loop\" AS \"@loop\"(\"$label\", \"$output\", \"0\", \"1\") WHERE (\"@loop\".\"$label\" IS NULL)\n)\nGROUP BY s.s_name\nORDER BY numwait DESC, s_name;","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":2643,"query_location_length":7,"column_names":["numwait"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2657,"query_location_length":6,"column_names":["s_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["s","s_name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"numwait","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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":216,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":44,"query_location_length":13,"schema_name":"","table_name":"supplier","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["supplier"]}},"right":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":59,"query_location_length":11,"schema_name":"","table_name":"nation","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nation"]}},"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":"o","sample":null,"query_location":72,"query_location_length":176,"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":237,"query_location_length":10,"column_names":["o_orderkey"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":80,"query_location_length":1,"relation_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":6,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":13,"column_names":["o_orderstatus"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"F"}}},"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":261,"query_location_length":2354,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":261,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":15,"column_names":["o","o_orderstatus"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":279,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"F"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":290,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":290,"query_location_length":13,"column_names":["s","s_nationkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":306,"query_location_length":13,"column_names":["n","n_nationkey"]}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":324,"query_location_length":2291,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"@loop","value":{"aliases":["$label","$output","0","1"],"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":395,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":400,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":407,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"$output","query_location":429,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":434,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":442,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"0","query_location":465,"query_location_length":28,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":470,"query_location_length":12,"column_names":["o","o_orderkey"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":486,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"1","query_location":502,"query_location_length":27,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":507,"query_location_length":11,"column_names":["s","s_suppkey"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":522,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":[{"key":"0","value":{"aliases":["suppkey","orderkey"],"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":"suppkey","query_location":596,"query_location_length":11,"column_names":["@loop","1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"orderkey","query_location":620,"query_location_length":11,"column_names":["@loop","0"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":649,"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":664,"query_location_length":41,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":664,"query_location_length":16,"column_names":["@loop","$label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":702,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"1","value":{"aliases":["orderkey","suppkey","found"],"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":"orderkey","query_location":759,"query_location_length":12,"column_names":["0","orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"suppkey","query_location":785,"query_location_length":11,"column_names":["0","suppkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"found","query_location":809,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":814,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":822,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"0","sample":null,"query_location":845,"query_location_length":29,"schema_name":"","table_name":"0","column_name_alias":["suppkey","orderkey"],"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":["suppkey","orderkey","lis"],"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":"suppkey","query_location":925,"query_location_length":11,"column_names":["1","suppkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"orderkey","query_location":949,"query_location_length":12,"column_names":["1","orderkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"lis","query_location":975,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":980,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":988,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"1","sample":null,"query_location":1010,"query_location_length":36,"schema_name":"","table_name":"1","column_name_alias":["orderkey","suppkey","found"],"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}}},{"key":"3","value":{"aliases":["orderkey","suppkey","li"],"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":"orderkey","query_location":1096,"query_location_length":12,"column_names":["2","orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"suppkey","query_location":1122,"query_location_length":11,"column_names":["2","suppkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"li","query_location":1146,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1151,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1159,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"2","sample":null,"query_location":1178,"query_location_length":34,"schema_name":"","table_name":"2","column_name_alias":["suppkey","orderkey","lis"],"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":["suppkey","orderkey","blame"],"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":"suppkey","query_location":1265,"query_location_length":11,"column_names":["3","suppkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"orderkey","query_location":1289,"query_location_length":12,"column_names":["3","orderkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"blame","query_location":1315,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1320,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"f"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1327,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"3","sample":null,"query_location":1350,"query_location_length":33,"schema_name":"","table_name":"3","column_name_alias":["orderkey","suppkey","li"],"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":["orderkey","blame","suppkey","multi"],"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":"orderkey","query_location":1443,"query_location_length":12,"column_names":["4","orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"blame","query_location":1469,"query_location_length":9,"column_names":["4","blame"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"suppkey","query_location":1489,"query_location_length":11,"column_names":["4","suppkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"multi","query_location":1513,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1518,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"f"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1525,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"4","sample":null,"query_location":1548,"query_location_length":36,"schema_name":"","table_name":"4","column_name_alias":["suppkey","orderkey","blame"],"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":["suppkey","multi","blame","lis"],"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":"suppkey","query_location":1639,"query_location_length":11,"column_names":["5","suppkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"multi","query_location":1663,"query_location_length":9,"column_names":["5","multi"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"blame","query_location":1683,"query_location_length":9,"column_names":["5","blame"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"lis","query_location":1703,"query_location_length":149,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1711,"query_location_length":140,"child":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1716,"query_location_length":122,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1836,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":1724,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"subquery","sample":null,"query_location":1731,"query_location_length":86,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1739,"query_location_length":22,"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":1749,"query_location_length":11,"column_names":["l","l_suppkey"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":1767,"query_location_length":13,"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":1788,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1788,"query_location_length":12,"column_names":["l","l_orderkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1803,"query_location_length":12,"column_names":["5","orderkey"]}},"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"},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":1842,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":"5","sample":null,"query_location":1865,"query_location_length":43,"schema_name":"","table_name":"5","column_name_alias":["orderkey","blame","suppkey","multi"],"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}}},{"key":"7","value":{"aliases":["blame","multi"],"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":"blame","query_location":1949,"query_location_length":9,"column_names":["6","blame"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"multi","query_location":1969,"query_location_length":79,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1977,"query_location_length":70,"child":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1982,"query_location_length":53,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":1991,"query_location_length":42,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1991,"query_location_length":9,"column_names":["6","multi"]},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":2005,"query_location_length":27,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":2013,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2006,"query_location_length":7,"column_names":["6","lis"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2014,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2021,"query_location_length":11,"column_names":["6","suppkey"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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"},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2039,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":"6","sample":null,"query_location":2063,"query_location_length":38,"schema_name":"","table_name":"6","column_name_alias":["suppkey","multi","blame","lis"],"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}}},{"key":"8","value":{"aliases":["return_value"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"return_value","query_location":2143,"query_location_length":23,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2143,"query_location_length":9,"column_names":["7","multi"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2157,"query_location_length":9,"column_names":["7","blame"]}]}],"from_table":{"type":"BASE_TABLE","alias":"7","sample":null,"query_location":2189,"query_location_length":24,"schema_name":"","table_name":"7","column_name_alias":["blame","multi"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["7"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"9","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":"$output","query_location":2251,"query_location_length":16,"column_names":["8","return_value"]}],"from_table":{"type":"BASE_TABLE","alias":"8","sample":null,"query_location":2286,"query_location_length":24,"schema_name":"","table_name":"8","column_name_alias":["return_value"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["8"]}},"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":"$label","query_location":2327,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2332,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2340,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"$output","query_location":2362,"query_location_length":30,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2367,"query_location_length":13,"column_names":["9","$output"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2384,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"0","query_location":2407,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2412,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2420,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"1","query_location":2436,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2441,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2449,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"9","sample":null,"query_location":2469,"query_location_length":21,"schema_name":"","table_name":"9","column_name_alias":["$output"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["9"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["$label","$output","0","1"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2508,"query_location_length":17,"column_names":["@loop","$output"]}],"from_table":{"type":"BASE_TABLE","alias":"@loop","sample":null,"query_location":2531,"query_location_length":49,"schema_name":"","table_name":"@loop","column_name_alias":["$label","$output","0","1"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["@loop"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":2605,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2588,"query_location_length":16,"column_names":["@loop","$label"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2625,"query_location_length":8,"column_names":["s","s_name"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT info.recursive_pipeline_execute_work_ns::UBIGINT \u003e 0,\n info.invariant_build_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":52,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":39,"column_names":["info","recursive_pipeline_execute_work_ns"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":68,"query_location_length":49,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":104,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":36,"column_names":["info","invariant_build_execute_work_ns"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":123,"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":142,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":168,"query_location_length":57,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":168,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalRecursiveCTE"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":203,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"EpochSummary"}}}]},"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 (list(c)) AS (\n\tSELECT 1, 4, NULL\n\t\tUNION\n\tSELECT a, b - 1, b\n\tFROM tbl\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":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":42,"query_location_length":1,"column_names":["c"]}}]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":86,"query_location_length":1,"column_names":["a"]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"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_GREATERTHAN","alias":"","query_location":115,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":5,"column_names":["tbl","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["a","b","c"],"key_targets":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":42,"query_location_length":1,"column_names":["c"]}}]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":133,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":"WITH RECURSIVE tbl(key, iter, c) USING KEY (key, count() AS iter, count(c)) AS (\n\tSELECT 1, 1, 1\n\t\tUNION\n\tSELECT key, iter + 1, 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","c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"iter","query_location":49,"query_location_length":7,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":72,"query_location_length":1,"column_names":["c"]}}]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":113,"query_location_length":3,"column_names":["key"]},{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":4,"column_names":["iter"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":136,"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":147,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":4,"column_names":["iter"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["key","iter","c"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"iter","query_location":49,"query_location_length":7,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":72,"query_location_length":1,"column_names":["c"]}}]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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, avg(b) :: INT) AS (\n\tSELECT 1, 1\n \t\tUNION\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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":43,"query_location_length":1,"column_names":["b"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":93,"query_location_length":1,"column_names":["a"]},{"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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":110,"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":123,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":43,"query_location_length":1,"column_names":["b"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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(key, id, acc) USING KEY (key, approx_count_distinct(acc)) AS (\n\tSELECT 1, id, cname\n\tFROM customers\n\tWHERE id = 1\n\t\tUNION\n\tSELECT key, tbl.id + 1, cname\n\tFROM tbl\n\tJOIN customers AS c ON c.id = tbl.id + 1)\nselect acc from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":["key","id","acc"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":26,"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":71,"query_location_length":3,"column_names":["acc"]}}]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":5,"column_names":["cname"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":109,"query_location_length":9,"schema_name":"","table_name":"customers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","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":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":149,"query_location_length":3,"column_names":["key"]},{"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":154,"query_location_length":6,"column_names":["tbl","id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":5,"column_names":["cname"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":183,"query_location_length":40,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":178,"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":"c","sample":null,"query_location":188,"query_location_length":14,"schema_name":"","table_name":"customers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customers"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":206,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":206,"query_location_length":4,"column_names":["c","id"]},"right":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":6,"column_names":["tbl","id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"aliases":["key","id","acc"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":26,"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":71,"query_location_length":3,"column_names":["acc"]}}]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":3,"column_names":["acc"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":241,"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\tVALUES (1, 0)\n\tUNION ALL\n\tSELECT n.k, r.v + 1\n\tFROM t n JOIN recurring.t r USING (k)\n\tWHERE n.v \u003c 2\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":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":76,"query_location_length":3,"column_names":["n","k"]},{"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":81,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":99,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":95,"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":104,"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":135,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":1,"column_names":["v"]}],"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":[]}]}} +{"sql":"WITH RECURSIVE t(k1, k2, v) USING KEY (k1, k2) AS (\n\tVALUES (1, 0, 0)\n\tUNION ALL\n\tSELECT n.k1, r.k2 + 1, n.v + 1\n\tFROM t n JOIN recurring.t r ON r.k1 = n.k1\n\tWHERE n.v \u003c 2 AND r.k2 \u003c 2\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"]}],"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":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":89,"query_location_length":4,"column_names":["n","k1"]},{"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":95,"query_location_length":4,"column_names":["r","k2"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"column_names":["n","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":123,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":119,"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":128,"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":145,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":4,"column_names":["r","k1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":164,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":164,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":176,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":4,"column_names":["r","k2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"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"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":194,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":201,"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"standard_vector_size"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":140,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":24}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":194,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"standard_vector_size"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":245,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":24}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":260,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":300,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":310,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":361,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":371,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":163,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":215,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":275,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":285,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":324,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":334,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":376,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":386,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"EpochSummary"}}}]},"group_expressions":[],"group_sets":[],"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(8192) r(i)\n\tUNION ALL\n\tSELECT i, level + 1 FROM t WHERE level \u003c 3\n)\nSELECT count(*), sum(i), sum(level) 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":true,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8192}}}]},"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":86,"query_location_length":1,"column_names":["i"]},{"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":89,"query_location_length":5,"column_names":["level"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":112,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":5,"column_names":["level"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"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":131,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":141,"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":145,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":149,"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":153,"query_location_length":5,"column_names":["level"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":165,"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 parents_tab (id , value , parent )\nas (values (1, 1, 2), (2, 2, 4), (3, 1, 4), (4, 2, -1), (5, 1, 2), (6, 2, 7), (7, 1, -1)\n),\nparents_tab2(id , value , parent )\nas (values (1, 1, 2), (2, 2, 4), (3, 1, 4), (4, 2, -1), (5, 1, 2), (6, 2, 7), (7, 1, -1)\n),\nparents as (\n select * from parents_tab\n union all\n select id, value+2, parent from parents_tab2\n)\nselect * from parents order by id, value, parent;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":408,"query_location_length":2,"column_names":["id"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":412,"query_location_length":5,"column_names":["value"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":419,"query_location_length":6,"column_names":["parent"]}}]}],"cte_map":{"map":[{"key":"parents_tab","value":{"aliases":["id","value","parent"],"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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"parents_tab2","value":{"aliases":["id","value","parent"],"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":189,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":203,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":214,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":240,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":245,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":248,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":251,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":262,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"parents","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"parents","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":293,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":300,"query_location_length":11,"schema_name":"","table_name":"parents_tab","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parents_tab"]}},"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":337,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":346,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":341,"query_location_length":5,"column_names":["value"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":347,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":350,"query_location_length":6,"column_names":["parent"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":362,"query_location_length":12,"schema_name":"","table_name":"parents_tab2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parents_tab2"]}},"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":384,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":391,"query_location_length":7,"schema_name":"","table_name":"parents","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parents"]}},"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) select * from cte1 where j = (select max(j) from cte1 as cte2);","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}}}]},"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":4,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":37,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["j"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":65,"query_location_length":33,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"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":77,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"cte2","sample":null,"query_location":85,"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},"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 t(x) AS (SELECT x)\nSELECT *\nFROM range(10) AS _(x), LATERAL (SELECT * FROM t);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["x"],"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":21,"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}}}]},"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":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":50,"left":{"type":"TABLE_FUNCTION","alias":"_","sample":null,"query_location":39,"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":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":66,"query_location_length":17,"subquery":{"node":{"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":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":"SELECT COUNT(*), MIN(i), MAX(i), AVG(i) FROM union_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":[]},{"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"]}}]},{"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":37,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":10,"schema_name":"","table_name":"union_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["union_view"]}},"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 (\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_DEFAULT","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":41,"query_location_length":5,"column_names":["empno"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":5,"column_names":["ename"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"level","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"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":106,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":5,"column_names":["empno"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":145,"query_location_length":9,"column_names":["emp","empno"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":9,"column_names":["emp","ename"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":194,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":13,"column_names":["ctename","level"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":222,"query_location_length":39,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":209,"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":227,"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":238,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":238,"query_location_length":7,"column_names":["emp","mgr"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"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":271,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":278,"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 (select 1 as x union all select * from (select 1) tbl2(i) join (select x from t where x \u003c 5) tbl(i) using (i)) select * from t limit 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"offset":null,"limit_type":"ROW_COUNT"}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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":"JOIN","alias":"","sample":null,"query_location":78,"query_location_length":51,"left":{"type":"SUBQUERY","alias":"tbl2","sample":null,"query_location":59,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["i"]},"right":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":83,"query_location_length":29,"subquery":{"node":{"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":["x"]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"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},"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 (select 1 as x union all select sum(x+1) AS x from t where x \u003c 3 group by x) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":52,"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":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":56,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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":79,"query_location_length":5,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["x"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":104,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":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;","json":{"error":false,"statements":[{"node":{"type":"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"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 COUNT(*) 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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 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":[]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}}]},"column_name_alias":[],"with_ordinality":"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"]}}]},{"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"]}}]}],"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":"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 s1.table01 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":34,"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":10,"schema_name":"s1","table_name":"table01","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1","table01"]}},"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 COUNT(*) FROM (SELECT * FROM (SELECT * FROM integers WHERE (a \u003c\u003e 3 AND a\u003c50) OR (a \u003e 9995)) WHERE a\u003e1 AND a\u003c20) tbl(a) WHERE a\u003c5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":21,"query_location_length":97,"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":"SUBQUERY","alias":"","sample":null,"query_location":36,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":44,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":66,"query_location_length":31,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":67,"query_location_length":15,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","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":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":78,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}}]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":88,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9995}}}]},"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":105,"query_location_length":12,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":105,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":113,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":132,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i % 2 AS k FROM integers WHERE integers.i\u003c\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":38,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE SUM(a)\u003e10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":9,"left":{"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":["a"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE a\u003e2 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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE a\u003e=4 AND a\u003c\u003e4 AND a\u003c\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":22,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":47,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"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\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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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='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":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":20,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","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":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]},"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 \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":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_GREATERTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}/nested_structs.parquet') WHERE s.a.b \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":"","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/nested_structs.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":70,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":5,"column_names":["s","a","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}]}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":"CASE","type":"CASE_EXPR","alias":"","query_location":62,"query_location_length":22,"case_checks":[{"when_expr":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}],"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 [MAP([2], [{'key1': MAP([ARRAY_VALUE('1', NULL), ARRAY_VALUE(NULL, '2')], [1, 2]), 'key2': 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":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":8,"query_location_length":94,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":84,"function_name":"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":82,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"key1","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"key1","query_location":27,"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":31,"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":32,"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":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":68,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"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":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"key2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"key2","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_length(array_value(array_value(1, 2, 2), array_value(3, 4, 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":72,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":55,"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":32,"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":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"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":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_position(array_value(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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 suggestion, suggestion_start FROM sql_auto_complete('CREATE MA') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE MA"}}}]},"column_name_alias":[],"with_ordinality":"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 CYC') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE SEQUENCE seq CYC"}}}]},"column_name_alias":[],"with_ordinality":"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 UNIQ') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":52,"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":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"create table tbl(i INTEGER UNIQ"}}}]},"column_name_alias":[],"with_ordinality":"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 ENU') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":47,"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":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE TYPE my_type AS ENU"}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT CAST(a AS INTE"}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT col[1:2] FR"}}}]},"column_name_alias":[],"with_ordinality":"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('PRAGMA show_t') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":34,"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PRAGMA show_t"}}}]},"column_name_alias":[],"with_ordinality":"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 OR') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":59,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM tbl OR"}}}]},"column_name_alias":[],"with_ordinality":"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 LEF') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM tbl LEF"}}}]},"column_name_alias":[],"with_ordinality":"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('FROM tbl SEL') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FROM tbl SEL"}}}]},"column_name_alias":[],"with_ordinality":"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 ''ORDER'' \"WHERE\" FR') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 'ORDER' \"WHERE\" FR"}}}]},"column_name_alias":[],"with_ordinality":"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('DESCR') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":26,"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DESCR"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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 case when x \u003e 0 then ''pos'' else ''neg'' end as sign from t') = $$SELECT CASE WHEN x \u003e 0 THEN 'pos' ELSE 'neg' END AS sign\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":160,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"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":69,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"select case when x \u003e 0 then 'pos' else 'neg' end as sign from t"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":69,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT CASE WHEN x \u003e 0 THEN 'pos' ELSE 'neg' END AS sign\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 1', MAP {'keyword_case': 'mixed'})","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"select 1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":42,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"keyword_case"}}}]}},{"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":58,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mixed"}}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 VIEW analytics.monthly_summary AS SELECT region, sum(amount) AS total FROM orders GROUP BY region') = $$CREATE OR REPLACE VIEW analytics.monthly_summary AS\nSELECT region, sum(amount) AS total\nFROM orders\nGROUP BY region$$","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":136,"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":117,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE OR REPLACE VIEW analytics.monthly_summary AS SELECT region, sum(amount) AS total FROM orders GROUP BY region"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":117,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE OR REPLACE VIEW analytics.monthly_summary AS\nSELECT region, sum(amount) AS total\nFROM orders\nGROUP BY region"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('ALTER TABLE t DROP COLUMN old_col') = $$ALTER TABLE t\nDROP COLUMN old_col$$","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ALTER TABLE t DROP COLUMN old_col"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ALTER TABLE t\nDROP COLUMN old_col"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 FROM very_long_table_name WHERE x = 1') = $$SELECT a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q\nFROM very_long_table_name\nWHERE 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":214,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":115,"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":96,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q FROM very_long_table_name WHERE x = 1"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":96,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q\nFROM very_long_table_name\nWHERE 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('SELECT ''hello\nworld''.upper()') = $$SELECT 'hello\nworld'.upper()$$","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":86,"left":{"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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 'hello\nworld'.upper()"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 'hello\nworld'.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 duckdb_format_sql('CREATE FUNCTION V29(x) AS LAST_VALUE(x IGNORE NULLS) OVER (ORDER BY x NULLS LAST); FORCE CHECKPOINT') = $$CREATE FUNCTION V29(x) AS LAST_VALUE(x IGNORE NULLS) OVER (\n ORDER BY x NULLS LAST\n );\nFORCE CHECKPOINT$$","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":238,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE FUNCTION V29(x) AS LAST_VALUE(x IGNORE NULLS) OVER (ORDER BY x NULLS LAST); FORCE CHECKPOINT"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":115,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE FUNCTION V29(x) AS LAST_VALUE(x IGNORE NULLS) OVER (\n ORDER BY x NULLS LAST\n );\nFORCE CHECKPOINT"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":254,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE OR REPLACE TABLE lineitem_sf100_random AS (SELECT * FROM lineitem ORDER BY hash(rowid + 42))"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":131,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 suggestion, suggestion_start FROM sql_auto_complete('call unnes') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"call unnes"}}}]},"column_name_alias":[],"with_ordinality":"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 (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":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":47,"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":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM (FROM lineit"}}}]},"column_name_alias":[],"with_ordinality":"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 (RANGE BETWE') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT row_number() OVER (RANGE BETWE"}}}]},"column_name_alias":[],"with_ordinality":"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('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":21,"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":13,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 from_base64('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":17,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 l FROM int_list ORDER BY create_sort_key(l, '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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS FIRST"}}}]}}]}],"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 * FROM blobs ORDER BY create_sort_key(b, 'ASC NULLS LAST', c, 'ASC 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":29,"query_location_length":57,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS LAST"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS LAST"}}}]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 count(*) FROM strings\nWHERE octet_length(create_sort_key(s, 'ASC NULLS LAST')) \u003c\u003e octet_length(encode(s)) + 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":[]}],"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_NOTEQUAL","alias":"","query_location":35,"query_location_length":81,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":50,"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":48,"query_location_length":36,"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":64,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS LAST"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_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":23,"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":102,"query_location_length":9,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["s"]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select array_slice(blob '\\x00\\x01\\x02\\x03\\x04\\x05', 4, 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":51,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x00\\x01\\x02\\x03\\x04\\x05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"blob","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('week', DATE '-5877641-06-25', DATE '5881580-07-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":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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"week"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-5877641-06-25"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5881580-07-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(millennium 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MILLENNIUM"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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 YEARWEEK(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":"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":16,"query_location_length":1,"column_names":["d"]}}]}],"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 date_part(NULL::VARCHAR, NULL::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":41,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"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(NULL, 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":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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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":23,"query_location_length":1,"column_names":["d"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 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"]}}]}],"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(['era', 'millennium', 'century', 'decade', 'quarter'], 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":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":67,"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":53,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"era"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"millennium"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"century"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"decade"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"quarter"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"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(s, 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":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"offset":null,"limit_type":"ROW_COUNT"}],"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":25,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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('quarter', TIMESTAMP '2020-12-02 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":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"quarter"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-02 04:03:02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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('duck', 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":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-01-06 04:03:02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"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(decade 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DECADE"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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(milliseconds 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MILLISECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 EXTRACT(week FROM cast('2007-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) + 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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":56}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) + 140);","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":140}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) + 224);","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":224}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', '%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":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 strftime(NULL::TIMESTAMP, '%%%%%% %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":45,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%%%%%% %Y %%%%%%"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":58,"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":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"column_name_alias":[],"with_ordinality":"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, '%w') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%w"}}}]}],"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, '%Y') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y"}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%z"}}}]}],"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":35,"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":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-99999-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 d, time_bucket('3 months'::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":56,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"6 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"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 time_bucket('-3 hours'::interval, '2019-04-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":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":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-3 hours"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-04-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-05-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000000000 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-22 (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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 day"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '2022-12-22'::date, 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-12-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"rainbow","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(true, ['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":28,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 * FROM tbl\nWHERE\nCASE WHEN i%2=0 THEN 1 ELSE 0 END\nAND\nCASE WHEN i\u003c5 THEN 1 ELSE 0 END","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":24,"query_location_length":69,"children":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":24,"query_location_length":33,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":62,"query_location_length":31,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":72,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT constant_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":18,"function_name":"constant_or_null","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(m) FROM map_as_list","json":{"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":"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":12,"query_location_length":1,"column_names":["m"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":11,"schema_name":"","table_name":"map_as_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["map_as_list"]}},"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"]}}]},"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["z"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 invoke(lambda x: alias(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":29,"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":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":24,"query_location_length":8,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 replace_type({duck: 3.141592653589793::DOUBLE, goose: 2.718281828459045::DOUBLE}, NULL::DOUBLE, NULL::DECIMAL(15,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":116,"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":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":"duck","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"duck","query_location":44,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":17,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":16,"scale":15}},"is_null":false,"value":3141592653589793}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"goose","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"goose","query_location":78,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":17,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":16,"scale":15}},"is_null":false,"value":2718281828459045}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},"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":[]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},"cast_type":{"id":"BOOLEAN","type_info":null},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":[]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1994-02-02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1991-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}}]}},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":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 * FROM range(3) UNION ALL SELECT NULL 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":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"STAR","type":"STAR","alias":"","query_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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"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":40,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 id, sleep_ms(1) FROM test_sleep_table 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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT pg_sleep(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":"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":16,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 s.min, s.max, s.has_null, s.has_no_null FROM (SELECT STATS(i + 2) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"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({'schema': 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":74,"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":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":"schema","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"schema","query_location":32,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":52,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl1"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 index_key({'catalog': current_catalog(), 'schema': 'main', 'table': 'tbl3'}, 'tbl3_idx', key1, key2, key3)\nFROM tbl3\nWHERE key1 BETWEEN 1 AND 3\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":160,"query_location_length":4,"column_names":["key1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":106,"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":65,"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":"FUNCTION","type":"FUNCTION","alias":"catalog","query_location":29,"query_location_length":17,"function_name":"current_catalog","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":58,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":75,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl3"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl3_idx"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":4,"column_names":["key1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":4,"column_names":["key2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":4,"column_names":["key3"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":119,"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":135,"query_location_length":15,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":4,"column_names":["key1"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT index_key({'schema': 'main', 'schema': 'main', '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":85,"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":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":"schema","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"schema","query_location":28,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"schema","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"schema","query_location":46,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":63,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl1"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 index_key({'schema': 'nonexistent_schema', '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":81,"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":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":"schema","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"schema","query_location":28,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nonexistent_schema"}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":59,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl1"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"minute"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"second"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"QUARTER"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14 months ago"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":82}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hour"}}},{"name":"","expression":{"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]}}]}],"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"]}}]},{"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"]}}]}],"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":[]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"column_name_alias":[],"with_ordinality":"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"]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{func_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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"regr_r2"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_last(dt), list_last(t) FROM five_dates_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":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":17,"query_location_length":2,"column_names":["dt"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":32,"query_location_length":1,"column_names":["t"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":13,"schema_name":"","table_name":"five_dates_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_mad([INTERVAL 1 YEAR])","json":{"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_mad","schema":"","filter":null,"order_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":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":17,"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":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_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":10,"function_name":"list_min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(s), MAX(s) FROM struct_with_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":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"]}}]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":17,"schema_name":"","table_name":"struct_with_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_with_lists"]}},"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 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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 * from (SELECT list_aggr(NULL, '{func_name}'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":30,"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":32,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{func_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":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_skewness([5, 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":24,"function_name":"list_skewness","schema":"","filter":null,"order_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_string_agg([1, 2]::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":"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":11,"child":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":"VARCHAR","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_no_overflow(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":"sum_no_overflow","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_sum(val), round(list_var_samp(val), 1), list_min(val) 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":13,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["val"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":3,"column_names":["val"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":13,"function_name":"list_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":61,"query_location_length":3,"column_names":["val"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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 array_length(ARRAY[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":31,"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":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":20,"query_location_length":14,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"sep","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"sep","query_location":51,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 flatten([[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":29,"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":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":16,"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":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":[]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 flatten(flatten([[[]], [[]]]))","json":{"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":"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":21,"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":25,"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":[]}}]}},{"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":"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":[]}}]}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) FROM range(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":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"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(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":14,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 range(3, 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":14,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 range(timestamp '2020-01-01', timestamp '2020-07-01', interval '3' 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":73,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-07-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"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":70,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('-infinity'::TIMESTAMP, '290309-12-22 (BC) 00:00:00'::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":98,"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":34,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC) 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(timestamptz '2020-06-01', timestamptz '2020-01-01', interval '3' 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":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":23,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-06-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"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":84,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([10], x -\u003e sum(1) \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":34,"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":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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":30,"query_location_length":10,"left":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"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 list_filter([TIMESTAMP '1992-03-22', TIMESTAMP '209-03-22', TIMESTAMP '1700-03-22'], x -\u003e century(x) \u003e 16)","json":{"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":"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":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":20,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"209-03-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1700-03-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":92,"query_location_length":20,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":97,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":97,"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":105,"query_location_length":1,"column_names":["x"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}},"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 list_filter(['duck', 'a', 'ö'], duck -\u003e contains(concat(duck, 'DB'), 'duck'))","json":{"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_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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ö"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":40,"query_location_length":44,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":4,"column_names":["duck"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":18,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":4,"column_names":["duck"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DB"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"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 list_filter(l, x -\u003e x \u003e 0) FROM empty_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":26,"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":19,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["x"]},"expr":{"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":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"syntax_type":"SINGLE_ARROW"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":11,"schema_name":"","table_name":"empty_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["empty_lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select [[y] for y in range(5)] as c, [x for x in c if x IS NOT NULL];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":7,"query_location_length":23,"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":21,"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":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"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":8,"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":9,"query_location_length":1,"column_names":["y"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":31,"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":49,"query_location_length":1,"column_names":["c"]}},{"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":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":56,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["x"]}]}},{"name":"result","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"filter"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"result"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_intersect([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":45,"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":24,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_transform([1, 2, 3], \"x.y\" -\u003e \"x.y\" + x.y) AS l FROM (VALUES (42), (84)) x(y);","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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":20,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["x.y"]},"expr":{"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":42,"query_location_length":5,"column_names":["x.y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":3,"column_names":["x","y"]}}]},"syntax_type":"SINGLE_ARROW"}}]}],"from_table":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":65,"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":74,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}]]},"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":[]}]}} +{"sql":"SELECT reduce_macro([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":29,"function_name":"reduce_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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 [len(x) for x in ['goodbye', 'cruel', '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":47,"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":24,"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":25,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goodbye"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"cruel"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"world"}}}]}},{"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":8,"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":12,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([NULL], (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":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":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":22,"lhs":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]}}]},"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":"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}}]},"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 list_reduce([[10, 20], [30, 40], [50, 60]], (x, y) -\u003e list_pack(list_reduce(x, (l, m) -\u003e l + m) + list_reduce(y, (n, o) -\u003e n + o)));","json":{"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":"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":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":20,"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":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":41,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":60}}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":51,"query_location_length":86,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":52,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["y"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":76,"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":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":71,"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":83,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":86,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"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":87,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["m"]}}]},"expr":{"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":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["m"]}}]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"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":117,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":120,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"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":121,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":1,"column_names":["o"]}}]},"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":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["o"]}}]},"syntax_type":"SINGLE_ARROW"}}]}}]}}]},"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 FROM where_clause WHERE list_reduce(a, (x, y) -\u003e x - y) \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":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"where_clause","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["where_clause"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":33,"query_location_length":35,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":45,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":48,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["y"]}}]},"expr":{"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":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["y"]}}]},"syntax_type":"SINGLE_ARROW"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reduce([], (x, y) -\u003e x + y, 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":37,"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":2,"function_name":"list_value","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":23,"query_location_length":15,"lhs":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["y"]}}]},"expr":{"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":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["y"]}}]},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT list_reduce([[1,2,3], [4,5,6], [7,8,9]], (x, y) -\u003e list_pack(list_reduce(x, (l, m) -\u003e l + m) + list_reduce(y, (n, o) -\u003e n + o)), [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":135,"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":48,"query_location_length":86,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["y"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":76,"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"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":80,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":83,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"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":84,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["m"]}}]},"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["m"]}}]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"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":114,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":117,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"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":118,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["o"]}}]},"expr":{"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":127,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":1,"column_names":["o"]}}]},"syntax_type":"SINGLE_ARROW"}}]}}]}}]},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"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":137,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT list_apply([1,2], x -\u003e list_apply([3,4], y -\u003e {'x': x, 'y': y})) AS bug;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"bug","query_location":7,"query_location_length":64,"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":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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"query_location_length":45,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":40,"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":41,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":48,"query_location_length":21,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["y"]},"expr":{"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":"x","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":59,"query_location_length":1,"column_names":["x"]}},{"name":"y","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"y","query_location":67,"query_location_length":1,"column_names":["y"]}}]},"syntax_type":"SINGLE_ARROW"}}]},"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 v.split(' ') strings,\n strings.apply(x -\u003e x.lower()).filter(x -\u003e x[1] == 't') lower,\n strings.apply(x -\u003e x.upper()).filter(x -\u003e x[1] == 'T') upper,\n lower + upper AS mix_case_srings\nFROM varchars","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"lower","query_location":68,"query_location_length":24,"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":38,"query_location_length":29,"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":52,"query_location_length":14,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"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":[]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":75,"query_location_length":16,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":11,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":81,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}},"syntax_type":"SINGLE_ARROW"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"upper","query_location":138,"query_location_length":24,"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":108,"query_location_length":29,"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":122,"query_location_length":14,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"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":[]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":145,"query_location_length":16,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":150,"query_location_length":11,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":151,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"T"}}},"syntax_type":"SINGLE_ARROW"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"mix_case_srings","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":5,"column_names":["lower"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":186,"query_location_length":5,"column_names":["upper"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":216,"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 list_transform([[1], [2, 3], [NULL], NULL], 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":79,"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"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":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":51,"query_location_length":34,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":71,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":74,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["y"]},"expr":{"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":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"syntax_type":"SINGLE_ARROW"}}]},"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 list_apply(i, x -\u003e (6 + 2 * 12) // x) 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":37,"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":22,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"SINGLE_ARROW"}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":50,"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":59,"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":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 (SELECT (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":62,"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":53,"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":44,"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":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":46,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":49,"query_location_length":16,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":4,"column_names":["elem"]},"expr":{"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":57,"query_location_length":4,"column_names":["elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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":75,"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, NULL, 3, 4, 5, 6], (x, i) -\u003e 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":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":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":45,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":46,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["i"]}}]},"expr":{"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":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"]}}]},"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 [split('01:08:22', ':'), x -\u003e CAST (x AS 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":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":22,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01:08:22"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":":"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":32,"query_location_length":24,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["x"]},"expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":19,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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 list_transform([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":57,"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":43,"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":53,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(NULL, lambda x: 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":34,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"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":35,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"syntax_type":"LAMBDA_KEYWORD"}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enjoy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"life"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"to"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"the"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"fullest"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%e%"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}}]}},{"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"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_transform([1, 2], lambda x: list_transform([3, 4], 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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":45,"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":40,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":63,"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":73,"query_location_length":1,"column_names":["x"]},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(list_filter([2, 4, 3, 1, 20, 10, 3, 30], lambda x: x % 2 == 0), lambda y: y % 5 == 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":97,"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":62,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":60,"query_location_length":20,"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":70,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":70,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":83,"query_location_length":20,"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":93,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"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":93,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], lambda x, y, i: 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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"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"]}}]},"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":"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":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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: list_reduce([], lambda a, b: x + y + 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":56,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":55,"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":[]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":59,"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":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","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":"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":"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":72,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["a"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_reduce([[[10, 20], [100, 200]], [[30, 40], [300, 400]], [[50, 60], [500, 600]]], lambda x, y: list_pack(\n\t\tlist_reduce(x, lambda l, m: list_pack(\n\t\t\tlist_reduce(l, lambda a, b: a + b) +\n\t\t\tlist_reduce(m, lambda c, d: c + d))) +\n\t\tlist_reduce(y, lambda n, o: list_pack(\n\t\t\tlist_reduce(n, lambda a, b: a + b) +\n\t\t\tlist_reduce(o, 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":8,"query_location_length":355,"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":20,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":22,"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":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":57,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":300}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":400}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"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":70,"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":71,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":60}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"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":81,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":500}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":600}}}]}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":94,"query_location_length":268,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":255,"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":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":120,"query_location_length":118,"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":132,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":135,"query_location_length":102,"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":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["m"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":148,"query_location_length":89,"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":197,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":162,"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":174,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":177,"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":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":192,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":194,"query_location_length":1,"column_names":["b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":202,"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":214,"query_location_length":1,"column_names":["m"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":217,"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":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["d"]}}]},"expr":{"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":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":234,"query_location_length":1,"column_names":["d"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":243,"query_location_length":118,"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":255,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":258,"query_location_length":102,"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":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["o"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":271,"query_location_length":89,"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":320,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":285,"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":297,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":300,"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":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":315,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":313,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":317,"query_location_length":1,"column_names":["b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":325,"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":337,"query_location_length":1,"column_names":["o"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":340,"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":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["d"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":355,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":353,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":357,"query_location_length":1,"column_names":["d"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], lambda x, y, i: x - y - i, 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":58,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"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"]}}]},"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":"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":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":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"]}}]},"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"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":7,"column_names":["initial"]}}]}],"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":[],"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"]}}]},"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"]}}]},"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["x_i"]}}]},"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["a_i"]}}]}},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":7,"column_names":["initial"]}}]}],"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], lambda acc, x: struct_pack(a:=acc.a + x, b:=acc.b), struct_pack(a:=0, b:='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":98,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":50,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","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":57,"query_location_length":5,"column_names":["acc","a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["x"]}}]}},{"name":"b","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":71,"query_location_length":5,"column_names":["acc","b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"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":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":100,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_reduce([BLOB 'hello'], lambda x, y: x, 'text');","json":{"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_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":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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":12,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":35,"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":["x"]}},{"name":"","expression":{"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":48,"query_location_length":1,"column_names":["x"]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 SUM(list_i[1]) FROM lambda_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":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":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":17,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":6,"column_names":["list_i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":11,"schema_name":"","table_name":"lambda_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lambda_view"]}},"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, lambda x: 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":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":22,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"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_LESSTHAN","alias":"","query_location":35,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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, NULL, 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":57,"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":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":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":45,"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"]}}]},"expr":{"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":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 for x in c if x IS NULL] FROM test_vector_types(NULL::INT[]) t(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":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":19,"query_location_length":1,"column_names":["c"]}},{"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":"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"]}]}},{"name":"result","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"filter"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"result"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":40,"query_location_length":35,"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":62,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":64,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}}]},"column_name_alias":["c"],"with_ordinality":"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_concat([], [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":31,"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":2,"function_name":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_concat(NULL, [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":33,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_append(NULL, 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":"list_append","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":[]}},{"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":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(list_distinct([1, 1, NULL, 2, 2, 2, 3, NULL, NULL])) AS l ORDER BY l","json":{"error":false,"statements":[{"node":{"type":"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":["l"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":7,"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":14,"query_location_length":51,"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":28,"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":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_distinct(['2021-08-20'::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":42,"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":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":34,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"def"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 4, 3, 5, 5, 2, 2], [5, 5, 5, 1, 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":71,"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":60,"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":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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_sort(list_intersect([1::SMALLINT, 2::SMALLINT, 3::SMALLINT], [2::INT, 3::INT, 4::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":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":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":34,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"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":75,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":83,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":85,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":91,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,NULL) 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":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":"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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([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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_position([NULL, 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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_position([[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_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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_position([MAP([1], [2]), 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":42,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_resize(a, b) from string_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":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":10,"schema_name":"","table_name":"string_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["string_tbl"]}},"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, 3]}, {'a': 3, 'b': [4, 5]}]}, NULL, {'i': 1, 'j': [{'a': 1, 'b': [2, 3]}, {'a': 3, 'b': [4, 5]}]}], 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":147,"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":131,"function_name":"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":60,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":33,"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":34,"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":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"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":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":71,"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":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":102,"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":103,"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":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":117,"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":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":126,"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":132,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":140,"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":141,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}}]}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_resize(a, b) FROM bool_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":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":10,"schema_name":"","table_name":"bool_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bool_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_reverse([1, 42, 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":30,"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":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":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":14,"function_name":"list_reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([[1], [1, 2], NULL, [NULL], [], [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":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_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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":41,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"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":[]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_unique([1, 1, 2, 2, 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":31,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_unique(['2021-08-20'::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":40,"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":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":32,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], [1.5, 2.5]::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":53,"function_name":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":39,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":25}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":50,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":11,"schema_name":"","table_name":"array_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["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, b], [c]) FROM struct_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":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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"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"]}}]}},{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["c"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":12,"schema_name":"","table_name":"struct_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_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(NULL, {'a': 1, 'b': 'a'}, {'a': 2, '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":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":18,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":38,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":58,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_where([1,2,3], [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":34,"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":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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":28,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(['14:59:37'::TIMETZ], [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":40,"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":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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14:59:37"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":41,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 list_zip([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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_zip([1,2,3], [2,3,4], [3,4,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":45,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"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":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 list_zip(['aa', '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":"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":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":17,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_zip(['{a: 1'::BLOB, '{a: 3'::BLOB]) a, a::VARCHAR::STRUCT(a BLOB)[] b, a == b","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":40,"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":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":24,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{a: 1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{a: 3"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":61,"query_location_length":18,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":63,"query_location_length":14,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":72,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}]}]}}},"try_cast":false},{"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":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"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 list_zip(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":15,"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":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(c,2) FROM TEST_VECTOR_TYPES(CAST(NULL AS INT[])) AS t(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":11,"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":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":24,"query_location_length":46,"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":42,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}}]},"column_name_alias":["c"],"with_ordinality":"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(42, 84))[9999]","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":6,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9999}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 := col.i + 1, b := NULL::VARCHAR) 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":54,"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":"FUNCTION","type":"FUNCTION","alias":"a","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":31,"query_location_length":5,"column_names":["col","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":51,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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({a: 1, b: 2}, d := 3, a := '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":45,"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":21,"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":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":48,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 10000000000000000000000000000000000001::DECIMAL(38,0) % 0.00000000000000000000000000000000004","json":{"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":"%","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":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":542101086242752217,"lower":68739955140067329}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":37,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":36,"scale":35}},"is_null":false,"value":{"upper":0,"lower":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 binom(100, 2), binom(100, 98);","json":{"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":"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":14,"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":28,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":98}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, even(i + 0.9) from generate_series(-4,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":13,"function_name":"even","schema":"","filter":null,"order_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":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":29,"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":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"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 factorial(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":13,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 fmod(3, 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":12,"function_name":"fmod","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 cast(FLOOR(n::bigint) 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":62,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":32,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"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":19,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"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('asdf')","json":{"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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"SELECT gamma(0::DOUBLE), gamma(-1::DOUBLE), lgamma(0::DOUBLE), lgamma(-1::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":16,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":17,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":33,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":17,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":18,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":72,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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);","json":{"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 mod(a, 2) from modme","json":{"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":"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":5,"schema_name":"","table_name":"modme","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["modme"]}},"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, 100.0::FLOAT) \u003e 99","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":41,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":990}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":1}},"is_null":false,"value":1000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 log10(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":12,"function_name":"log10","schema":"","filter":null,"order_bys":{"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":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":1}},"is_null":false,"value":1000}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 pow(a, 0) 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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}],"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(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":12,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 round(42::DOUBLE, 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":20,"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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 roundBankers(45.5, 0), roundBankers(44.5, 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":"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":455}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":43,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":445}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 round(100::INTEGER, int)\nfrom 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":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":16,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":3,"column_names":["int"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"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":[]},"column_name_alias":[],"with_ordinality":"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(COS(n::integer)*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":"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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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(ATAN(n::integer)*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":67,"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":"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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(ACOS(n::integer)*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":"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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(ATAN2(n::smallint, 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":73,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":43,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"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":12,"query_location_length":22,"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":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"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 atanh(-0.5), atanh(0), atanh(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":11,"function_name":"atanh","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":-5}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":8,"function_name":"atanh","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":10,"function_name":"atanh","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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::TINYINT + 1::VARCHAR","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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 + 1::REAL","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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::INT","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]}}]}}]}}]}}]}}]}}]}}]}],"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 -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":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":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"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 i//2=1, 1=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":45,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":6,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":15,"query_location_length":6,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}],"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 1::BIGINT \u003c\u003c -1::BIGINT, 1::BIGINT \u003e\u003e -1::BIGINT, 1::BIGINT \u003c\u003c 1000::BIGINT, 1::BIGINT \u003e\u003e 1000::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":23,"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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"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":22,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":23,"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":33,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":47,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":25,"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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":25,"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":85,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' \u003e 10","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 AND true","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":13,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 2\u003e3 AND 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":35,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":7,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":15,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"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 d, t, t + d\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["t"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["d"]}}]}],"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 * 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":5,"scale":1}},"is_null":false,"value":10240}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":500}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^(.*int|varchar|bignum)$"}},"qualified_exclude_list":[],"rename_list":[]}}]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select md5_number('hello'), md5_number_upper(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":19,"function_name":"md5_number","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":22,"function_name":"md5_number_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":45,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT OVERLAY('abcdef' PLACING 'XX' FROM 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdef"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"XX"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 overlay('33333rce' placing 'resou' from -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":45,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"33333rce"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"resou"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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":[]}]}} +{"sql":"SELECT overlay('abc' placing 'X' from 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"X"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5 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":31,"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5 KB"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 data(value) AS (\n\tVALUES\n\t\t('1 KB'),\n\t\t('2 MB'),\n\t\t('3 GiB'),\n\t\t('4 TB'),\n\t\t(NULL)\n)\nSELECT value, parse_formatted_bytes(value) AS bytes FROM data;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"data","value":{"aliases":["value"],"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":33,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 KB"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 MB"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 GiB"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4 TB"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]]},"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":97,"query_location_length":5,"column_names":["value"]},{"class":"FUNCTION","type":"FUNCTION","alias":"bytes","query_location":104,"query_location_length":28,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":5,"column_names":["value"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"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 try(parse_formatted_bytes('abc'));","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":33,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":28,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 parse_path('/path/to/file.csv', '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":48,"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":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"forward_slash"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('/\\\\/', '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":32,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/\\\\/"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"both_slash"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('path/to/file.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":37,"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":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"backslash"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', true, '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":41,"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/path/to"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"system"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 parse_filename(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":32,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 parse_dirname('file.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":25,"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"file.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":[]}]}} +{"sql":"SELECT path_join('dir/..', '../..');","json":{"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":"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dir/.."}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 path_join('', '');","json":{"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":"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":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 regexp_extract(filename, 'rundate_(\\d+-\\d+-\\d+)_pass_(\\d+)', []) 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":64,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rundate_(\\d+-\\d+-\\d+)_pass_(\\d+)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"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":[]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"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('line1\\nline2');","json":{"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_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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"line1\\nline2"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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..)(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":44,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(b..)(b..)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regexp_extract('foobarbaz', '(zzz)', 1, '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":44,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(zzz)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('1a 2b 14m', '\\\\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1a 2b 14m"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\\\d+"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regexp_extract_all('AbCdEfCg', '([[:lower:]]+)C([[:lower:]]+)', 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"AbCdEfCg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"([[:lower:]]+)C([[:lower:]]+)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regexp_extract_all('aabca', '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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aabca"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('abc', '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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a(b)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 regexp_extract_all('abc', '.{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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".{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 str, \n REGEXP_EXTRACT_ALL(str,'ab+cd') AS matched\nFROM (\n VALUES ('acd'), ('abcd'), ('abcdacd'), ('abbcd'), ('abbbcd'), ('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":"matched","query_location":15,"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":"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ab+cd"}}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":63,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"acd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdacd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abbcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abbbcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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('si1si2', 'si\\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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"si1si2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"si\\d$"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('Aa aA', '(a)', ['lower'], 'i') 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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Aa aA"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":43,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"lower"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('abc', '(x)(y)', ['x','y']) 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":46,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(x)(y)"}}},{"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 REGEXP_EXTRACT_ALL('test', '(.)', ['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":40,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(.)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":42,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('abd', 'a(bc)?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":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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abd"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a(bc)?d"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g1"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('aaaaaaaa', '(a)(a)', ['g1','g2']) 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":53,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaaaaaaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a)(a)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":49,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g2"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)', ['g1','g2']);","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":41,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g2"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' !~* 'a'","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":13,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":7,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ABC"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_replace('ANA ana', 'ana', 'banana', 'gi')","json":{"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":"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ANA ana"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ana"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"banana"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"gi"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('abc', '*', '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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"*"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_replace('abcabc', '(b)', '\\3Y', '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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcabc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(b)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\3Y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(c0, '^sdf$') 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_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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^sdf$"}}}]}],"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('as^/$df', '^/$', '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":37,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"as^/$df"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^/$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"l"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_full_match(s, p, 'c') FROM regex","json":{"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_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":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["p"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":5,"schema_name":"","table_name":"regex","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["regex"]}},"where_clause":null,"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":8,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 sha256()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"sha256","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":20,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}}]}],"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 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":13,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 bar(x * x, 0, 100) from range(0, 11) 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":18,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":11,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["x"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":31,"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":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]},"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 bar(1, 'infinity'::double, 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":30,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 10, 0.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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":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 BIT_LENGTH(b) 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":"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":["b"]}}]}],"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 LOWER(b), LCASE(b) 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":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":["b"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":23,"query_location_length":1,"column_names":["b"]}}]}],"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 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":28,"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":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 CONCAT('hello', ' ', 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]}}]}],"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 CONCAT('1', '2', '3', '4', '5', '6', '7', '8', '9', '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":56,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 CONCAT_WS(',', '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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"select CONCAT_WS(a, NULL, b, '') FROM strings 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":55,"query_location_length":1,"column_names":["a"]}}]}],"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}],"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 contains(NULL,'o') 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"o"}}}]}],"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT damerau_levenshtein('three', 'there')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"three"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"there"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('organ', 'no')","json":{"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"organ"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"no"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '')","json":{"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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 damerau_levenshtein(s, 'test') 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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}}]}],"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 format('{}', NULL), format(NULL, '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":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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":30,"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":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"world"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{:.2}', 0.00023404094995959);","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{:.2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":19,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":18,"scale":17}},"is_null":false,"value":23404094995959}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', 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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%_d"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":9,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":123456789}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('%,.3f', 123456.789::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":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":14,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%,.3f"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":10,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":9,"scale":3}},"is_null":false,"value":123456789}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 'bbb'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bbb"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '[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":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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[0-9]"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '\\\\'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 '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":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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 FROM strings WHERE s GLOB pat","json":{"error":false,"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":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":28,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":3,"column_names":["pat"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'ababac' ILIKE '%abac'","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":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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ababac"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%abac"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 unicode_strings WHERE s ILIKE pat","json":{"error":false,"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":15,"schema_name":"","table_name":"unicode_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unicode_strings"]}},"where_clause":{"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":36,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["pat"]}}]},"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 '%straße%' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%straße%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a ILIKE b, a !~~* b FROM unicode_possible 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":58,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","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":7,"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"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":18,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":16,"schema_name":"","table_name":"unicode_possible","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unicode_possible"]}},"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 '///';","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":25,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a%c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a$%C"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 id FROM t WHERE s ILIKE '%straße%' 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":63,"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":28,"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":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%straße%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}]},"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 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":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":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":21,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT instr(s,'ello') 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":15,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ello"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ñ"}}}]}],"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 jaccard(NULL, '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":22,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"SELECT round(jaccard('ababababababba', 'aaaabbbccddeeffgabcccc'), 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":61,"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":51,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ababababababba"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaaabbbccddeeffgabcccc"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 jaro_winkler_similarity('DwAyNE', 'DuANE')","json":{"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":"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DwAyNE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DuANE"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('hippo', 'elephant')","json":{"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":"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hippo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"elephant"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(jaro_winkler_similarity(s, '00000000')) 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":43,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00000000"}}}]}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT levenshtein('hallo', 'hoi')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hallo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hoi"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["s"]}}]}],"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 levenshtein('hi', 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hi"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["s"]}}]}],"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a_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 'zebra elephant tiger horse' LIKE '%'","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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 '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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra%elephant%tiger%horse%"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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%elephant%tiger%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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra%elephant%tiger%horse"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":11,"query_location_length":19,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 pat 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":3,"column_names":["pat"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"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 mismatches(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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 mismatches(s, 'hallo') 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":"mismatches","schema":"","filter":null,"order_bys":{"type":"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hallo"}}}]}],"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 RPAD('Base', 7, '-|'), RPAD('Base', 6, '-|'), RPAD('Base', 5, '-|'), RPAD('Base', 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":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":12,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-|"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-|"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":58,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-|"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":81,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 RPAD(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":"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 prefix('abcdefgh', 'abcde')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdefgh"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcde"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 PREFIX(t0.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":"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":17,"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":30,"query_location_length":5,"column_names":["t0","c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]},"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 🦆')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two ñ three ₡ four 🦆 end"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two ñ three ₡ four 🦆"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('%hhd %hd %d %lld', 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%hhd %hd %d %lld"}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":33}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":80}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', 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":43,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%x"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":20,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":18446744073709551615}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"ubigint","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%s"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 REPEAT(b, 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":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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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 REPLACE('This is the main test string', 'main', 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":53,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"This is the main test string"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 REVERSE(b) 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":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":["b"]}}]}],"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 'aaa' SIMILAR TO '.*'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 'aaa' !~ 'bbb'","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":14,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":8,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bbb"}}}]}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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',',,',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":28,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a,,b,,c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":",,"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 split_part(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":22,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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(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":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"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, 0, 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":20,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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 array_slice('hello', NULL, NULL+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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}]}],"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([], -1, -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":41,"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":"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":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'[off:length+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":14,"query_location_length":16,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["off"]},{"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":19,"query_location_length":6,"column_names":["length"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":3,"column_names":["off"]}}]}]}],"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 s[1:0] 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}],"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_regex('üüüüü', '◌̈'))","json":{"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":"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":41,"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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"üüüüü"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 UNNEST(string_split(s, 'bb')) FROM documents WHERE s LIKE '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":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bb"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":9,"schema_name":"","table_name":"documents","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["documents"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"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":58,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select string_split(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":31,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"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":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 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":14,"function_name":"string_split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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[2147483646] FROM strings","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":12,"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":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483646}}]}],"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(NULL from NULL 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":36,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":6,"column_names":["length"]}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT substring(s from 15 for 7) 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":"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}],"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 suffix('abcdefgh', 'abcdefgh')","json":{"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":"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdefgh"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdefgh"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 suffix('two ñ three ₡ four 🦆 end', 'two n 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":73,"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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two ñ three ₡ four 🦆 end"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two n three ₡ four 🦆 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 to_base(10, 16)","json":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('abcde', 'aabcc', '14235')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcde"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aabcc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14235"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(b, 'ÄW🦆l', 'ow🐱') 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":"translate","schema":"","filter":null,"order_bys":{"type":"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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ÄW🦆l"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ow🐱"}}}]}],"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 RTRIM(b) 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":8,"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":13,"query_location_length":1,"column_names":["b"]}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select UNICODE(a) 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":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"]}}]}],"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 url_decode(c) FROM t24268","json":{"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":"url_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":18,"query_location_length":1,"column_names":["c"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":6,"schema_name":"","table_name":"t24268","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t24268"]}},"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, TIME '14:28:50.447') 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":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":"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":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14:28:50.447"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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 dayofweek(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":12,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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 date_part('julian', 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"julian"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(milliseconds 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MILLISECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]}],"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(dayofyear 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":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":15,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dayofyear"}}},{"name":"","expression":{"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":38,"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(null::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":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":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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":52,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 seconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"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, '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":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":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-3 hours"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 hour 30 minutes"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '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":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":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":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":39,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-2000000000 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":79,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '10:00:00'::time, null::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":67,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{lspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{rspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-06"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2021}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2021}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2021}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9223372036854775806}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01 00:00:12.456789"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1969-12-31 23:59:05.123456"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":175,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}]]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"weekday"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"isodow"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"doy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"julian"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2008-01-01 00:00:01.894"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"year"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["ts"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOW"}}},{"name":"","expression":{"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]}],"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-9223372022400001000 microseconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-04-09 17:00:00-07"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2400}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-Infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{specifier}', '{lspecial}'::TIMESTAMPTZ_NS, '{rspecial}'::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":83,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{specifier}"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{lspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{rspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\tdate_diff('minute', '2022-10-30 02:17:00.000000000+02'::TIMESTAMPTZ_NS, '2022-10-30 01:59:59.999999999+01'::TIMESTAMPTZ_NS),\n\tdate_diff('minute', '2022-10-30 02:17:00.000000000+02'::TIMESTAMPTZ_NS, '2022-10-30 02:00:00.000000001+01'::TIMESTAMPTZ_NS);","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":123,"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":18,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"minute"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-10-30 02:17:00.000000000+02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":114,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-10-30 01:59:59.999999999+01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":123,"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":144,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"minute"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":188,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-10-30 02:17:00.000000000+02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":190,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":240,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-10-30 02:00:00.000000001+01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":242,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(ts), second(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":"second","schema":"","filter":null,"order_bys":{"type":"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":21,"function_name":"second","schema":"","filter":null,"order_bys":{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 epoch(ts), epoch(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":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":13,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":20,"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":26,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["ts"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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_minute', '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":67,"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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone_minute"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-07-31 00:00:00-07"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, DATE_PART('{partcode}', ts) AS p, DATE_PART(['{partcode}'], ts) AS s\nFROM timestamps\nWHERE p IS DISTINCT FROM s['{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":2,"column_names":["ts"]},{"class":"FUNCTION","type":"FUNCTION","alias":"p","query_location":11,"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":21,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":45,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":56,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":2,"column_names":["ts"]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":102,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":1,"column_names":["p"]},"right":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":122,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(month FROM c0) IS NULL, EXTRACT(quarter FROM c0) IS NULL FROM t1;","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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MONTH"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":2,"column_names":["c0"]}}]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":64,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":24,"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":47,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"QUARTER"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["c0"]}}]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"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('century', '1904-02-29 12:00:00-08'::TIMESTAMPTZ, '2005-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":96,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"century"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1904-02-29 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2005-02-28 13:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 13:00:00-08'::TIMESTAMPTZ, '2004-02-28 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-01-31 13:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-28 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.050-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":104,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"millisecond"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-01-31 12:00:00.050-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-01 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, d), s 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":16,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["s"]}],"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 date_trunc('day', 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":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-01-06 04:03:02-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"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 ts, mts\nFROM (SELECT ts, make_timestamptz(yeartz(ts), NULL, day(ts), hour(ts), minute(ts), microsecond(ts) / 1000000.0) mts\n\tFROM timestamps) t\nWHERE mts 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":["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":128,"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":94,"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"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":71,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":81,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"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":93,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"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":98,"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":110,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":9,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":8,"scale":1}},"is_null":false,"value":10000000}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":137,"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":161,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":3,"column_names":["mts"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM timeparts;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"timeparts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timeparts"]}},"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, '%Z %Y-%m-%d %H:%M:%S.%f') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Z %Y-%m-%d %H:%M:%S.%f"}}}]}],"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-06-01 10:40:43+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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1582-06-01 10:40:43+01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(null::interval, t, '2 seconds'::interval) 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":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":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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":52,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 seconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"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('5 months'::interval, t, 'Europe/Berlin') 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":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":32,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Europe/Berlin"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"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'::interval, '2019-04-05 00:00:00-11'::timestamptz, '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":103,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-04-05 00:00:00-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":99,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 hour 30 minutes"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '290279-12-24 (BC) 19:59:05.224191+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":92,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 microseconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290279-12-24 (BC) 19:59:05.224191+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 ts) FROM timestamps_default","json":{"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":"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":2,"column_names":["ts"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":18,"schema_name":"","table_name":"timestamps_default","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_default"]}},"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') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%y"}}}]}],"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, '%-S') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%-S"}}}]}],"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, '%x') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%x"}}}]}],"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('mon', '%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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mon"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 strptime('2-4', '%V-%u'), strftime('1900-01-11'::DATE, '%V-%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2-4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%V-%u"}}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%V-%u"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-0-5', '%Y-%W-%w'), strftime('2021-01-01'::DATE, '%Y-%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-0-5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%W-%w"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":62,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%W-%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.745232951', '%Y-%m-%d %H:%M:%S.%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":65,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232951"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%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 strptime('2024-11-28 23:59:00.312457', '%Y-%m-%d %H:%M:%S.%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-11-28 23:59:00.312457"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%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 strptime('2020-12-31 21:25:58.745232+000', '%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":68,"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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232+000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%f%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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-10-01 23:59:60"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%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 strptime('juk', '%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"juk"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 strptime('20 19', '%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"20 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%U %W"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 %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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%G %W"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('Mänday', '%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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Mänday"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 t, time_bucket(null::interval, t, '2 seconds'::interval) 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":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":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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":52,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 seconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":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 time_bucket('-3 hours'::interval, '2019-04-05 00:00:00'::timestamp, '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":99,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-3 hours"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-04-05 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 hour 30 minutes"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":97,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-05-05 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-2000000000 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '2022-12-22 10:00:00'::timestamp, null::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":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-12-22 10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, June 2003, 12:03:10 AM', '%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":79,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Mon 30, June 2003, 12:03:10 AM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%a %-d, %B %Y, %-I:%-M:%-S %p"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-4', '%U-%w'), strftime('1900-01-11'::DATE, '%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":28,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1-4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%U-%w"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":58,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%U-%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-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":49,"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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-05-12 19-4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %U-%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('2020-12-31 21:25:58.745232+0000', '%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":73,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232+0000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%f%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 try_strptime('2020-12-31 21:25:58.745232+0', '%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":70,"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":30,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232+0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%f%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 try_strptime('2000-10-01 00:00:00 AM', '%Y-%m-%d %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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-10-01 00:00:00 AM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %I:%M:%S %p"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('moa', '%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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"moa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 try_strptime('60', '%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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"60"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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":[]}]}} +{"sql":"SELECT try_strptime('20 19', '%V %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":30,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"20 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%V %W"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('21/10/2018', '%-q/%m/%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":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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"21/10/2018"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%-q/%m/%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 day(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":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":11,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"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(['epoch', 'second', 'timezone', 'timezone_hour', 'timezone_minute'], 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":123,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":81,"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":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":21,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"second"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone_hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone_minute"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":106,"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 TYPEOF(t) FROM (select t from time_testtz group by t) LIMIT 1","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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["t"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":22,"query_location_length":38,"subquery":{"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":["t"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":11,"schema_name":"","table_name":"time_testtz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["time_testtz"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["t"]}],"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 start, token_type, word from sql_tokenize($$crea tab$$);","json":{"error":false,"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":26,"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"crea tab"}}}]},"column_name_alias":[],"with_ordinality":"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(uuid()::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":33,"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":32,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":6,"function_name":"uuid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"column_name_alias":[],"with_ordinality":"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, 2], \"b\": {\"c\": 12, \"d\": 10}}', '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":67,"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":40,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": [1, 2], \"b\": {\"c\": 12, \"d\": 10}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 variant_array_length(NULL::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":40,"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":32,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 sum(list_sum([l for l in variant_array_length(j, ['duck', 'goose'])])) s\nfrom t2","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":70,"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":65,"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":20,"query_location_length":55,"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":32,"query_location_length":42,"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":53,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":57,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goose"}}}]}}]}},{"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":["l"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["l"]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"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 variant_contains('[{\"a\": 1}, {\"b\": 2}]'::JSON::VARIANT, '{\"a\": 1, \"b\": 2}'::JSON::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":90,"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":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":24,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"a\": 1}, {\"b\": 2}]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1, \"b\": 2}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(NULL::VARIANT, 1::VARIANT),\n variant_contains(1::VARIANT, NULL::VARIANT),\n variant_contains(NULL::VARIANT, NULL::VARIANT),\n variant_contains(NULL, NULL);","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":43,"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":32,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":43,"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":78,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":46,"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":130,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":145,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":147,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"query_location_length":28,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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":24,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"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":[]},"column_name_alias":[],"with_ordinality":"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, [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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 variant_extract(a, 'a[1].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":28,"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a[1].c"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"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":[]},"column_name_alias":[],"with_ordinality":"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_extract_string(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_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":["a"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":[]}}]}],"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":[]},"column_name_alias":[],"with_ordinality":"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_extract_string({'blob': blob}::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":51,"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":44,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":"blob","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"blob","query_location":39,"query_location_length":4,"column_names":["blob"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":64,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":4,"column_names":["bool"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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, '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":57,"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":49,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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":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":"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_group_array(i) from (select NULL::INTEGER i 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":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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":35,"query_location_length":36,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"i","query_location":47,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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":65,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 variant_keys(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":19,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"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":[]},"column_name_alias":[],"with_ordinality":"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(42::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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}::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":39,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":40,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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\n\tlist_variant.my_list::BIGINT[]\nfrom\n\tlist_variant\nlimit\n\t1;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":20,"column_names":["list_variant","my_list"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":12,"schema_name":"","table_name":"list_variant","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_variant"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select variant_type('{}'::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":27,"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":24,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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({'a': 1}::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":37,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 variant_type(v), variant_type(v, 'b')\nFROM fully_shredded_objects\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":82,"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_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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":37,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 total_profit FROM unit, 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":["total_profit"]}],"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":"unit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unit"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":5,"schema_name":"","table_name":"unit2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unit2"]}},"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 column_default from duckdb_columns;","json":{"error":false,"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":["column_default"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"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 profit_total 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":["profit_total"]}],"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 iu, ju, rowid FROM u_7182 WHERE iu = 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":["iu"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ju"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":5,"column_names":["rowid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":6,"schema_name":"","table_name":"u_7182","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["u_7182"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":39,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["iu"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j FROM tbl_6500 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":["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":8,"schema_name":"","table_name":"tbl_6500","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_6500"]}},"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 = 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"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 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","schema":"","filter":null,"order_bys":{"type":"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE i \u003e 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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers ORDER 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":32,"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":"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 integers WHERE i=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":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":4,"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":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(i) FROM tbl1 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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":32,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k FROM byte_edges WHERE k \u003e 254 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":48,"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":10,"schema_name":"","table_name":"byte_edges","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["byte_edges"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":31,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":254}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x FROM test WHERE x \u003e 20;","json":{"error":false,"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":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":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}},"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) 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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":101}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM nulls WHERE (i IS NOT DISTINCT FROM 499997) = 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nulls"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":39,"left":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":34,"query_location_length":29,"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":57,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":499997}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM tbl WHERE i = 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":["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":5,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT table_name, index_count FROM duckdb_tables() 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":61,"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"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":11,"column_names":["index_count"]}],"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_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"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 tbl_deser_scan WHERE id \u003e= 424242;","json":{"error":false,"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":14,"schema_name":"","table_name":"tbl_deser_scan","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_deser_scan"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":36,"query_location_length":12,"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":42,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":424242}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE j+l=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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":5,"left":{"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":["j"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["l"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"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= 1000000000::BIGINT 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":"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":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["l"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM \"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":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 * FROM myschema.t4;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"t4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["myschema","t4"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select lefttable.x, righttable.y\nfrom (select 1 as x) lefttable\nasof join (select 1 as x, 1 as y limit 0) righttable\non lefttable.x \u003e= righttable.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":11,"column_names":["lefttable","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":12,"column_names":["righttable","y"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":64,"query_location_length":83,"left":{"type":"SUBQUERY","alias":"lefttable","sample":null,"query_location":38,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"righttable","sample":null,"query_location":74,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_GREATERTHANOREQUALTO","alias":"","query_location":120,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":11,"column_names":["lefttable","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":12,"column_names":["righttable","x"]}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 t.*, p.price\nFROM trades_list t ASOF JOIN prices_list p \n ON t.symbol = p.symbol 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":39,"query_location_length":70,"left":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":25,"query_location_length":13,"schema_name":"","table_name":"trades_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["trades_list"]}},"right":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":49,"query_location_length":13,"schema_name":"","table_name":"prices_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prices_list"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":69,"query_location_length":40,"children":[{"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":8,"column_names":["t","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":8,"column_names":["p","symbol"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":93,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":6,"column_names":["t","when"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"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":"WITH t1 AS (\n\tFROM VALUES\n\t\t(1::INT, '2020-01-01 00:00:00'::TIMESTAMP), \n\t\t(2, '2020-01-02 00:00:00')\n\tAS t1(a, b)\n), t2 AS (\n\tFROM VALUES\n\t\t(1::INT, '2020-01-01 00:01:00'::TIMESTAMP), \n\t\t(2, '2020-01-02 00:00:00')\n\tt2(c, d)\n)\nSELECT * \nFROM t1 \nASOF JOIN t2 \n ON t1 = (b == t2.d)\n AND t1.b \u003e= t2.d - INTERVAL '1' SECOND;","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":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"t1","sample":null,"query_location":19,"query_location_length":95,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-02 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":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"t2","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":"t2","sample":null,"query_location":132,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":143,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":145,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":171,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01 00:01:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":173,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":189,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-02 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":["c","d"]},"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":234,"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":246,"query_location_length":76,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":242,"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":256,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":265,"query_location_length":57,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":265,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":2,"column_names":["t1"]},"right":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":271,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":271,"query_location_length":1,"column_names":["b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":276,"query_location_length":4,"column_names":["t2","d"]}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":288,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":288,"query_location_length":4,"column_names":["t1","b"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":301,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":4,"column_names":["t2","d"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":303,"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":312,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}}]}}]},"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\nFROM probe0 p ASOF SEMI 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":85,"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"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":20,"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":44,"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":57,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":7,"column_names":["p","begin"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":7,"column_names":["e","begin"]}},"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 range(2000) t1, test 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":28,"left":{"type":"TABLE_FUNCTION","alias":"t1","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":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2000}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":37,"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":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":[]}],"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 i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i=integers2.k\nUNION\nSELECT i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i=integers2.k\nORDER BY i","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":183,"query_location_length":1,"column_names":["i"]}}]}],"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":["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":51,"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_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"]}},"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},{"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":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":122,"query_location_length":51,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":113,"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":138,"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_EQUAL","alias":"","query_location":151,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"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 * FROM (SELECT a2.x FROM (SELECT x FROM test WHERE x \u003e 3) AS a1 FULL OUTER JOIN (SELECT x FROM test WHERE x = 1) AS a2 ON a1.x = a2.x) AS a3 FULL OUTER JOIN (SELECT 1 AS x) AS a4 ON a3.x = a4.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":148,"query_location_length":52,"left":{"type":"SUBQUERY","alias":"a3","sample":null,"query_location":14,"query_location_length":127,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":4,"column_names":["a2","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":71,"query_location_length":69,"left":{"type":"SUBQUERY","alias":"a1","sample":null,"query_location":32,"query_location_length":32,"subquery":{"node":{"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":["x"]}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":58,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"a2","sample":null,"query_location":87,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"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":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":113,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":129,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":4,"column_names":["a1","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":4,"column_names":["a2","x"]}},"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":[]},"right":{"type":"SUBQUERY","alias":"a4","sample":null,"query_location":164,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":189,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":4,"column_names":["a3","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":196,"query_location_length":4,"column_names":["a4","x"]}},"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 CAST(NULL AS VARCHAR) AS ccy, id FROM fact) t JOIN dim_nd d ON t.ccy IS NOT DISTINCT FROM 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":75,"query_location_length":47,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"ccy","query_location":29,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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":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":80,"query_location_length":8,"schema_name":"","table_name":"dim_nd","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim_nd"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":92,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":5,"column_names":["t","ccy"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"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 n.n_name, n.n_region, COUNT(*) AS cnt\nFROM nation n JOIN customer c ON n.nk = c.nk JOIN orders o ON o.ck = c.ck\nGROUP BY n.n_name, n.n_region 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":158,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":10,"column_names":["n","n_region"]},{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","query_location":29,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":90,"query_location_length":28,"left":{"type":"JOIN","alias":"","sample":null,"query_location":59,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":50,"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":64,"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":78,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"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":95,"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":107,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":4,"column_names":["o","ck"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"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":128,"query_location_length":8,"column_names":["n","n_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":10,"column_names":["n","n_region"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(DISTINCT n.n_name)\nFROM nation n JOIN customer c ON n.nk = c.nk JOIN orders o ON o.ck = c.ck","json":{"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":true,"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":["n","n_name"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":77,"query_location_length":28,"left":{"type":"JOIN","alias":"","sample":null,"query_location":46,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":37,"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":51,"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":65,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"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":82,"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":94,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":4,"column_names":["o","ck"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM fact f JOIN dim 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":28,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":21,"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":33,"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":42,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":3,"column_names":["f","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"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 dim WHERE k IN (SELECT k FROM fact WHERE k 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":36,"query_location_length":40,"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":["k"]}],"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":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":64,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["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":31,"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 o.o_orderkey, o.o_custkey, o.o_totalprice, l.l_orderkey, l.l_partkey, l.l_quantity, l.l_extendedprice\nFROM orders o\nRIGHT 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":101,"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":134,"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":148,"query_location_length":76,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":148,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":12,"column_names":["o","o_orderkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":12,"column_names":["l","l_orderkey"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":184,"query_location_length":40,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":199,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":14,"column_names":["o","o_totalprice"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":17,"column_names":["l","l_extendedprice"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":250}}}]},"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 COUNT(*) FROM lineitem l\nINNER JOIN orders o ON l.l_orderkey = o.o_orderkey\n AND l.l_partkey + l.l_suppkey * 10 + o.o_custkey \u003e 200\n AND l.l_discount * 100 + (l.l_commitdate::DATE - o.o_orderdate::DATE) \u003e o.o_shippriority + 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":207,"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":184,"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":50,"left":{"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":"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":11,"column_names":["l","l_partkey"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":11,"column_names":["l","l_suppkey"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":11,"column_names":["o","o_custkey"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":150,"query_location_length":89,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":169,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":150,"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":150,"query_location_length":12,"column_names":["l","l_discount"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":193,"query_location_length":0,"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":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":14,"column_names":["l","l_commitdate"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":188,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":208,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":195,"query_location_length":13,"column_names":["o","o_orderdate"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":210,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":235,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":16,"column_names":["o","o_shippriority"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]},"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\n\trange,\n\tcount(*) as n\nfrom scd2\ninner join calendar\n\t\ton range \u003c= ifnull(range_end,'2099-01-01') and range_start \u003c= range\ngroup by range\norder by range","json":{"error":false,"statements":[{"node":{"type":"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":5,"column_names":["range"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":5,"column_names":["range"]},{"class":"FUNCTION","type":"FUNCTION","alias":"n","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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":89,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":4,"schema_name":"","table_name":"scd2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scd2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":8,"schema_name":"","table_name":"calendar","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["calendar"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":65,"query_location_length":64,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":65,"query_location_length":39,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":5,"column_names":["range"]},"right":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":74,"query_location_length":30,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":9,"column_names":["range_end"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2099-01-01"}}]}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":109,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":11,"column_names":["range_start"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":5,"column_names":["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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":5,"column_names":["range"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH test AS (\n\tSELECT\n\t\ti AS id,\n\t\ti AS begin,\n\t\ti + 10 AS end,\n\t\ti % 2 AS p1,\n\t\ti % 3 AS p2\n\tFROM range(0, 10) tbl(i)\n),\nsub AS (\n\tSELECT lhs.id AS lid, rhs.id AS rid\n\tFROM test lhs, test rhs\n\tWHERE lhs.begin \u003c rhs.end\n\t AND rhs.begin \u003c lhs.end\n\t AND lhs.p1 \u003c\u003e rhs.p1\n\t AND lhs.p2 \u003c\u003e rhs.p2\n\tORDER BY ALL\n)\nSELECT MIN(lid), MAX(rid)\nFROM sub","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"test","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":"id","query_location":25,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"begin","query_location":36,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"end","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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"p1","query_location":67,"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":67,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"p2","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":100,"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":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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":"sub","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":"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":"lid","query_location":140,"query_location_length":6,"column_names":["lhs","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"rid","query_location":155,"query_location_length":6,"column_names":["rhs","id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":170,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":175,"query_location_length":8,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":185,"query_location_length":8,"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":201,"query_location_length":94,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":201,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":9,"column_names":["lhs","begin"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":7,"column_names":["rhs","end"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":228,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":228,"query_location_length":9,"column_names":["rhs","begin"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":240,"query_location_length":7,"column_names":["lhs","end"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":255,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":255,"query_location_length":6,"column_names":["lhs","p1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":6,"column_names":["rhs","p1"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":279,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":279,"query_location_length":6,"column_names":["lhs","p2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":289,"query_location_length":6,"column_names":["rhs","p2"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":319,"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":323,"query_location_length":3,"column_names":["lid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":329,"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":333,"query_location_length":3,"column_names":["rid"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":343,"query_location_length":3,"schema_name":"","table_name":"sub","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sub"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t1.x, t2.x\nFROM 'test/sql/join/iejoin/overlap.left.csv' t1, 'test/sql/join/iejoin/overlap.right.csv' t2\nWHERE t1.y \u003e t2.y AND t1.x \u003c t2.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":["t1","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["t2","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":18,"query_location_length":92,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":23,"query_location_length":42,"schema_name":"","table_name":"test/sql/join/iejoin/overlap.left.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test/sql/join/iejoin/overlap.left.csv"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":67,"query_location_length":43,"schema_name":"","table_name":"test/sql/join/iejoin/overlap.right.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test/sql/join/iejoin/overlap.right.csv"]}},"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":117,"query_location_length":27,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":117,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":4,"column_names":["t1","y"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":4,"column_names":["t2","y"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":133,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":4,"column_names":["t1","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":4,"column_names":["t2","x"]}}]},"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\n AND l.price + r.bid \u003c 400\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":"STAR","type":"STAR","alias":"","query_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":105,"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":72,"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_LESSTHAN","alias":"","query_location":103,"query_location_length":21,"left":{"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":103,"query_location_length":7,"column_names":["l","price"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":5,"column_names":["r","bid"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":400}}}]},"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 INNER JOIN t2 ON ((t1.c0 NOT BETWEEN t2.c0 AND t2.c0) IS 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":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":62,"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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":71,"query_location_length":7,"children":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":36,"query_location_length":33,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":46,"query_location_length":23,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":5,"column_names":["t1","c0"]},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":5,"column_names":["t2","c0"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"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 * FROM test WHERE NOT EXISTS(SELECT * FROM test2 WHERE test.a=test2.a AND test.b\u003ctest2.c) 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":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":25,"query_location_length":71,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":29,"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":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":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":62,"query_location_length":33,"children":[{"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":["test","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["test2","a"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":81,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"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":"WITH c AS (\n\tSELECT flag FROM ordered_probe ORDER BY ord OFFSET 2\n)\nSELECT * FROM c INNER JOIN boolean_keys ON flag = flag_key;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","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":53,"query_location_length":3,"column_names":["ord"]}}]},{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"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":13,"schema_name":"","table_name":"ordered_probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ordered_probe"]}},"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":75,"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":84,"query_location_length":42,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"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":95,"query_location_length":12,"schema_name":"","table_name":"boolean_keys","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["boolean_keys"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":111,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":4,"column_names":["flag"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":8,"column_names":["flag_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 * FROM (VALUES (1)) tbl(i) JOIN (VALUES (1)) tbl2(j) ON (i=j);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":34,"left":{"type":"SUBQUERY","alias":"tbl","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":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]]},"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":"tbl2","sample":null,"query_location":39,"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":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"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},"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 != 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":103,"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":38,"query_location_length":55,"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":36,"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_NOTEQUAL","alias":"","query_location":77,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"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(*) FROM tb1 AS lhs ANTI JOIN tb2 AS rhs ON (lhs.a IS DISTINCT FROM rhs.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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":54,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"tb1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tb1"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":42,"query_location_length":10,"schema_name":"","table_name":"tb2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tb2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":57,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":5,"column_names":["lhs","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":5,"column_names":["rhs","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 x.col1, y.col1 FROM tbl_l_null x JOIN tbl_l_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":127,"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":135,"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":77,"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":56,"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_NOT_DISTINCT_FROM","alias":"","query_location":82,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"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 p.id, p.k, p.g, b.payload\nFROM prf_probe_small p\nJOIN prf_build_small b\n ON p.k = b.k\n AND p.g \u003e= b.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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["p","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["p","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["p","g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":9,"column_names":["b","payload"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":53,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":38,"query_location_length":17,"schema_name":"","table_name":"prf_probe_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prf_probe_small"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":61,"query_location_length":17,"schema_name":"","table_name":"prf_build_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prf_build_small"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":84,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":84,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":3,"column_names":["b","k"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":99,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":3,"column_names":["p","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"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(*) from a,b where i \u003c\u003e 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":8,"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":23,"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":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":31,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"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 t2.a, t2.b, t2.c FROM t1 JOIN t2 USING(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":4,"column_names":["t2","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["t2","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":4,"column_names":["t2","c"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":16,"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":37,"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":["d"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_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 \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":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":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_NOTEQUAL","alias":"","query_location":33,"query_location_length":14,"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":42,"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 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":47,"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":20,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 integers2 RIGHT OUTER JOIN integers ON integers.i=integers2.k 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":"STAR","type":"STAR","alias":"","query_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":24,"query_location_length":51,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"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":41,"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":53,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"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 * FROM integers LEFT OUTER JOIN integers2 ON i+l=21 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":"STAR","type":"STAR","alias":"","query_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":35,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":6,"left":{"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":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["l"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":21}}},"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 big_fact f LEFT JOIN big_dim d ON f.fk = d.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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":34,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"big_fact","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big_fact"]}},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":42,"query_location_length":9,"schema_name":"","table_name":"big_dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big_dim"]}},"condition":{"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":["f","fk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t3 NATURAL JOIN 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":17,"query_location_length":15,"left":{"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"]}},"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},"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"]}}]}],"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"]}}]},"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":[]}],"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"]}}]},"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 (1), (1)) 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":164,"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":106,"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":60,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":94,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":94,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":3,"column_names":["r","b"]}},{"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":3,"column_names":["o","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":130,"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":139,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 = CASE\n\tWHEN l.j \u003e= 20 THEN (SELECT s.i FROM non_inner_s s WHERE s.i = l.i LIMIT 1)\n\tELSE NULL\nEND\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":174,"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":179,"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":129,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":102,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["r","i"]},"right":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":68,"query_location_length":96,"case_checks":[{"when_expr":{"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":3,"column_names":["l","j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}},"then_expr":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":94,"query_location_length":55,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":3,"column_names":["s","i"]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":111,"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":131,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":3,"column_names":["s","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":3,"column_names":["l","i"]}},"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":156,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 l.v, r.v\nFROM (VALUES ('a')) l(v)\nLEFT JOIN (VALUES ('A')) r(v)\nON EXISTS (\n\tSELECT 1\n\tWHERE l.v.lower() = 'a'\n\t AND r.v.lower() = 'a'\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","v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":41,"query_location_length":103,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":21,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":51,"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":60,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":74,"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":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":100,"query_location_length":42,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":11,"function_name":"lower","schema":"v","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"l","arguments":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"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":11,"function_name":"lower","schema":"v","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"r","arguments":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 *\nFROM ((VALUES (1)) a(x) JOIN (VALUES (1)) b(x) USING (x))\nLEFT JOIN ((VALUES (1)) c(x) JOIN (VALUES (1)) d(x) USING (x))\nON EXISTS (\n\tSELECT 1\n\tWHERE x = 1\n\t AND a.x = c.x\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":67,"query_location_length":116,"left":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":32,"left":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":15,"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":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":38,"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":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"right":{"type":"JOIN","alias":"","sample":null,"query_location":96,"query_location_length":32,"left":{"type":"SUBQUERY","alias":"c","sample":null,"query_location":78,"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":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"d","sample":null,"query_location":101,"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":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":133,"query_location_length":50,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":159,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":159,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"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":3,"column_names":["a","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":3,"column_names":["c","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.a, r.b\nFROM pair_nested_l l\nFULL OUTER JOIN pair_nested_r r ON EXISTS (\n\tSELECT 1\n\tFROM pair_nested_local_t t\n\tWHERE EXISTS (\n\t\tSELECT 1\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)\n\t)\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":37,"query_location_length":233,"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":198,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":97,"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":126,"query_location_length":142,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":154,"query_location_length":111,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":183,"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":214,"query_location_length":47,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":214,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":214,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":220,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":233,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":233,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":239,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":252,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":258,"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"},"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\nFROM pair_l_order l\nFULL OUTER JOIN pair_r_order r ON EXISTS (\n\tSELECT 1 FROM pair_s_order s WHERE s.x = l.x 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":["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"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":46,"query_location_length":104,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":31,"query_location_length":14,"schema_name":"","table_name":"pair_l_order","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l_order"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":62,"query_location_length":14,"schema_name":"","table_name":"pair_r_order","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r_order"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":80,"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":97,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":104,"query_location_length":14,"schema_name":"","table_name":"pair_s_order","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s_order"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":125,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":125,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":3,"column_names":["s","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":3,"column_names":["l","x"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":139,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"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, l2.c, r.b\nFROM pair_multi_l l\nJOIN pair_multi_l2 l2 ON true\nFULL OUTER JOIN pair_multi_r r 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 = l2.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":4,"column_names":["l2","c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":72,"query_location_length":127,"left":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":29,"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":"BASE_TABLE","alias":"l2","sample":null,"query_location":47,"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":67,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"BASE_TABLE","alias":"r","sample":null,"query_location":88,"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"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":106,"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":123,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":131,"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":153,"query_location_length":44,"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":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":170,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","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":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":193,"query_location_length":4,"column_names":["l2","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, l.rn, r.b\nFROM (SELECT a, row_number() OVER (ORDER BY a) AS rn FROM pair_multi_l) l\nFULL OUTER JOIN pair_multi_r r ON EXISTS (\n\tSELECT 1\n\tFROM pair_multi_window_s s\n\tWHERE s.a = l.a\n\t AND s.b = r.b\n\t AND s.rn = l.rn\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":4,"column_names":["l","rn"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":96,"query_location_length":135,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":27,"query_location_length":66,"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":["a"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":38,"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":66,"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":12,"schema_name":"","table_name":"pair_multi_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_multi_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":112,"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"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":130,"query_location_length":101,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":155,"query_location_length":21,"schema_name":"","table_name":"pair_multi_window_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_multi_window_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":184,"query_location_length":45,"children":[{"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","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":3,"column_names":["l","a"]}},{"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","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":207,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":218,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":4,"column_names":["s","rn"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":4,"column_names":["l","rn"]}}]},"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 EXISTS (\n\tSELECT 1 FROM pair_s s WHERE s.a = l.a AND 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":131,"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":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":["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":86,"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":64,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":81,"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":96,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"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":[]}]}} +{"sql":"SELECT l.a, r.b, r2.c\nFROM pair_l l\nLEFT JOIN (pair_r r JOIN pair_left_multi_r2 r2 ON true) ON EXISTS (\n\tSELECT 1\n\tFROM pair_left_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 l.a, r.b NULLS LAST, r2.c 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":203,"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":208,"query_location_length":3,"column_names":["r","b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":224,"query_location_length":4,"column_names":["r2","c"]}}]}],"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":36,"query_location_length":157,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":27,"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":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":34,"left":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":47,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"right":{"type":"BASE_TABLE","alias":"r2","sample":null,"query_location":61,"query_location_length":21,"schema_name":"","table_name":"pair_left_multi_r2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_multi_r2"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":95,"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":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":120,"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":147,"query_location_length":44,"children":[{"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","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":164,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":181,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"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":"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 (SELECT a, nextval('pair_exists_effect_seq') AS v FROM pair_left_effect_l) l\n\tSEMI JOIN pair_left_effect_r r ON EXISTS (\n\t\tSELECT 1 WHERE l.v = r.b\n\t)\n)\nSELECT count_value, currval('pair_exists_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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":137,"query_location_length":72,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":59,"query_location_length":74,"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":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":78,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pair_exists_effect_seq"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":114,"query_location_length":18,"schema_name":"","table_name":"pair_left_effect_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_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":147,"query_location_length":20,"schema_name":"","table_name":"pair_left_effect_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_effect_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":171,"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":189,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":197,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":3,"column_names":["l","v"]},"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":"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":219,"query_location_length":11,"column_names":["count_value"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":232,"query_location_length":33,"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":240,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pair_exists_effect_seq"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":271,"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, r.b\nFROM pair_state_l l\nLEFT JOIN pair_state_r r ON EXISTS (\n\t(SELECT l.a)\n\tINTERSECT\n\t(SELECT 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":77,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"pair_state_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_state_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":46,"query_location_length":14,"schema_name":"","table_name":"pair_state_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_state_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":64,"query_location_length":49,"subquery_type":"EXISTS","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":3,"column_names":["l","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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"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":[]},"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 outer_r.b, q.a, q.x, q.b\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 l.a, l.x, cr.b\n\tFROM pair_l l\n\tLEFT JOIN cr 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 = cr.b\n\t)\n) q ON true\nORDER BY outer_r.b, 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":286,"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":297,"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":302,"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":307,"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_r","b"]},{"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":52,"query_location_length":224,"left":{"type":"BASE_TABLE","alias":"outer_r","sample":null,"query_location":37,"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":70,"query_location_length":196,"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":92,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"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":112,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":8,"column_names":["pair_r","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":3,"column_names":["l","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":4,"column_names":["cr","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":173,"query_location_length":91,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":163,"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":"","sample":null,"query_location":183,"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":189,"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":207,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":216,"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":233,"query_location_length":28,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":233,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":233,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":239,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":251,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":251,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":257,"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":"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":272,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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.b\nFROM pair_l outer_l\nLEFT JOIN LATERAL (\n\tSELECT l.a, r.b\n\tFROM pair_l l\n\tLEFT JOIN pair_r r ON l.a = outer_l.a AND r.b IN (\n\t\tSELECT s.b\n\t\tFROM pair_s s\n\t\tWHERE s.a = l.a\n\t)\n\tWHERE l.x = outer_l.x\n) q ON true\nORDER BY outer_l.x, q.a, 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":245,"query_location_length":9,"column_names":["outer_l","x"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":256,"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":261,"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","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","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":188,"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":160,"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":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":100,"query_location_length":100,"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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":122,"query_location_length":78,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":122,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":9,"column_names":["outer_l","a"]}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":149,"query_location_length":51,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":3,"column_names":["s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":171,"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":188,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":194,"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":142,"query_location_length":3,"column_names":["r","b"]},"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":208,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":208,"query_location_length":3,"column_names":["l","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":214,"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":231,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 \n\t(SELECT * FROM two WHERE a % 2 = 0) t1\n\tPOSITIONAL JOIN\n\t(SELECT * FROM three WHERE a % 2 = 1) 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":56,"query_location_length":57,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":16,"query_location_length":35,"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":3,"schema_name":"","table_name":"two","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["two"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":41,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":73,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":81,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"query_location_length":5,"schema_name":"","table_name":"three","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["three"]}},"where_clause":{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*), SUM(CASE WHEN in_result THEN 1 ELSE 0 END) FROM\n(SELECT i IN (SELECT MAX(i) FROM integers) AS in_result 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":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":21,"query_location_length":37,"case_checks":[{"when_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":9,"column_names":["in_result"]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":65,"query_location_length":70,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"in_result","query_location":78,"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":86,"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":90,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"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":73,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":126,"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 * FROM left_table l\nRIGHT 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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}]},"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 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":96,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"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":40,"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_OR","alias":"","query_location":75,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM left_table ANTI JOIN right_table ON left_table.a = right_table.a WHERE a \u003e 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":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":"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":85,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"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 + 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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}}]},"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 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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"WITH lhs(i, j, k) AS (VALUES\n\t(100, 10, 1),\n\t(200, 20, 2)\n),\nrhs(p, q, r) AS (VALUES\n\t(100, 10, 1),\n\t(200, 20, 2)\n)\nSELECT lhs.*, rhs.*\nFROM lhs, rhs\nWHERE i \u003c= p AND j \u003c\u003e q AND k IS DISTINCT FROM r","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"lhs","value":{"aliases":["i","j","k"],"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"rhs","value":{"aliases":["p","q","r"],"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":87,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]]},"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":123,"query_location_length":5,"relation_name":"lhs","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":130,"query_location_length":5,"relation_name":"rhs","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":136,"query_location_length":13,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":141,"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":146,"query_location_length":3,"schema_name":"","table_name":"rhs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rhs"]}},"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":156,"query_location_length":42,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":156,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":1,"column_names":["p"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":167,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":1,"column_names":["q"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":178,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":1,"column_names":["k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":1,"column_names":["r"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT lhs.i, rhs.i\nFROM wide_nulls lhs, wide_nulls rhs\nWHERE lhs.c3 \u003c rhs.c0\n AND lhs.c8 IS DISTINCT FROM rhs.c3\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":124,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":20,"query_location_length":35,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":25,"query_location_length":14,"schema_name":"","table_name":"wide_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_nulls"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":41,"query_location_length":14,"schema_name":"","table_name":"wide_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_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":62,"query_location_length":52,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":62,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":6,"column_names":["lhs","c3"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":6,"column_names":["rhs","c0"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":84,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":6,"column_names":["lhs","c8"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":6,"column_names":["rhs","c3"]}}]},"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 (SELECT * FROM stats_table WHERE tag % 7 = 3) e ON l.val \u003c= e.category;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":80,"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":"SUBQUERY","alias":"e","sample":null,"query_location":37,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":45,"query_location_length":1,"relation_name":"","exclude_list":[],"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":11,"schema_name":"","table_name":"stats_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stats_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":70,"query_location_length":3,"column_names":["tag"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"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_LESSTHANOREQUALTO","alias":"","query_location":88,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":5,"column_names":["l","val"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":10,"column_names":["e","category"]}},"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.k100 as lid, r.k100 as rid\nfrom tleft l \ninner join tleft r \non l.b100 \u003c r.e100\nand l.k100 + r.k100 \u003c 10\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":"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":["l","b100"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":6,"column_names":["r","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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 issue23927.s, sub0.s\nFROM issue23927 \nINNER JOIN issue23927 AS sub0 \nON (issue23927.s \u003c= sub0.s) \nWHERE (issue23927.s \u003c issue23927.s) 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":12,"column_names":["issue23927","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":6,"column_names":["sub0","s"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":45,"query_location_length":58,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":10,"schema_name":"","table_name":"issue23927","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue23927"]}},"right":{"type":"BASE_TABLE","alias":"sub0","sample":null,"query_location":56,"query_location_length":18,"schema_name":"","table_name":"issue23927","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue23927"]}},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":80,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":12,"column_names":["issue23927","s"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":6,"column_names":["sub0","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":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":141,"query_location_length":7,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":112,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":12,"column_names":["issue23927","s"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":12,"column_names":["issue23927","s"]}}]},"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 places2 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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":7,"schema_name":"","table_name":"places2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["places2"]}},"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}/bbox_edges.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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bbox_edges.geojsonl"}}}]},"column_name_alias":[],"with_ordinality":"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(json) FROM '{TEST_DIR}/empty_object.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":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":["json"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":30,"schema_name":"","table_name":"{TEST_DIR}/empty_object.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/empty_object.json"]}},"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'}, ignore_errors=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":101,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"k","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":84,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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_auto(['{TEST_DIR}/t1.json.gz', '{TEST_DIR}/t2.json.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":68,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_ndjson_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":31,"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":32,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/t1.json.gz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/t2.json.gz"}}}]}}]},"column_name_alias":[],"with_ordinality":"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, 2, 3]'-\u003e0","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":14,"lhs":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1, 2, 3]"}},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"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 (1::UHUGEINT \u003c\u003c 100)::DECIMAL(38,0)::JSON","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":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":15,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":9,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(from_hex('aa'));","json":{"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","schema":"","filter":null,"order_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":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":21,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aa"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', NULL, 'two') AS KEEP_NULL_2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"KEEP_NULL_2","query_location":7,"query_location_length":40,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key_1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"one"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{DATA_DIR}/json/internal_3813.json', map_inference_threshold=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":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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/internal_3813.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":26,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}}]},"column_name_alias":[],"with_ordinality":"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(['42'], ['88'])::MAP(JSON, JSON)","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":17,"child":{"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":11,"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":12,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"88"}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":15,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\":42}'::JSON::MAP(VARCHAR, INTEGER)","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":23,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\":42}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,\n tinyint,\n smallint,\n int,\n bigint,\n hugeint,\n\t uhugeint,\n utinyint,\n usmallint,\n uint,\n ubigint,\n date,\n time,\n timestamp,\n timestamp_s,\n timestamp_ms,\n timestamp_ns,\n time_tz,\n timestamp_tz,\n float,\n double,\n dec_4_1,\n dec_9_4,\n dec_18_6::DOUBLE as dec_18_6,\n dec38_10::DOUBLE as dec38_10,\n uuid,\n interval,\n small_enum,\n int_array,\n double_array,\n date_array,\n timestamp_array,\n timestamptz_array,\n varchar_array,\n nested_int_array,\n struct,\n struct_of_arrays,\n array_of_structs,\n map,\nfrom test_all_types()","json":{"error":false,"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":["bool"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["tinyint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":8,"column_names":["smallint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":3,"column_names":["int"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":6,"column_names":["bigint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":7,"column_names":["hugeint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":8,"column_names":["uhugeint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":8,"column_names":["utinyint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":9,"column_names":["usmallint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":4,"column_names":["uint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":7,"column_names":["ubigint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":4,"column_names":["date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":4,"column_names":["time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":9,"column_names":["timestamp"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":11,"column_names":["timestamp_s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":238,"query_location_length":12,"column_names":["timestamp_ms"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":259,"query_location_length":12,"column_names":["timestamp_ns"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":280,"query_location_length":7,"column_names":["time_tz"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":12,"column_names":["timestamp_tz"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":317,"query_location_length":5,"column_names":["float"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":331,"query_location_length":6,"column_names":["double"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":346,"query_location_length":7,"column_names":["dec_4_1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":362,"query_location_length":7,"column_names":["dec_9_4"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"dec_18_6","query_location":386,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":378,"query_location_length":8,"column_names":["dec_18_6"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":388,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"dec38_10","query_location":423,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":415,"query_location_length":8,"column_names":["dec38_10"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":425,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":452,"query_location_length":4,"column_names":["uuid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":465,"query_location_length":8,"column_names":["interval"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":482,"query_location_length":10,"column_names":["small_enum"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":501,"query_location_length":9,"column_names":["int_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":519,"query_location_length":12,"column_names":["double_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":540,"query_location_length":10,"column_names":["date_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":559,"query_location_length":15,"column_names":["timestamp_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":583,"query_location_length":17,"column_names":["timestamptz_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":609,"query_location_length":13,"column_names":["varchar_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":631,"query_location_length":16,"column_names":["nested_int_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":656,"query_location_length":6,"column_names":["struct"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":671,"query_location_length":16,"column_names":["struct_of_arrays"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":696,"query_location_length":16,"column_names":["array_of_structs"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":721,"query_location_length":3,"column_names":["map"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":731,"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":[]},"column_name_alias":[],"with_ordinality":"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_json('POINT(1 2)'::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":31,"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":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(1 2)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_array_length('{\"one\":[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":"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"one\":[1,2,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 json_contains('{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}', '{\"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":61,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"d\": 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 json_array(42::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":23,"function_name":"json_array","schema":"","filter":null,"order_bys":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', [{duck: 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":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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nested"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":30,"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":"duck","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"duck","query_location":37,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 json_object(e::varchar, e) from test where e 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":26,"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":["e"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["e"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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":"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":["e"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select array_to_json([42], [21])","json":{"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":28,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 json_object('a',2,'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":24,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 json_deep_merge('{\"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 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 json_deep_merge('[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":42,"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1, 2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[true, false]"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":27,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 json_deep_merge('{\"a\":{\"b\":{\"c\":{\"d\":1}}}}', '{\"a\":{\"b\":{\"c\":{\"e\":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"b\":{\"c\":{\"d\":1}}}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"b\":{\"c\":{\"e\":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 json_deep_merge('{\"a\":1}', 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":43,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\":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 ('{\"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"my_field"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"my_nested_field"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\": null}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["p"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/my_field/my_nested_field/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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.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 json_extract(j, '$.b[#-2][#-1]') a, a = json_extract(j, '$.b[-2][-1]') FROM t1;","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":32,"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[#-2][#-1]"}}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["a"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":30,"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":60,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[-2][-1]"}}}]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":83,"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[#-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":28,"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":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[#-1x]"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"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 '{\"duck\":null}'-\u003e\u003e'$.duck'","json":{"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":"-\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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\":null}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.duck"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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')","json":{"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_insert('{}', '$.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":37,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.obj"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"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 json_insert('{\"a\\\\\":2}', '$.\"a\\\"b\"', '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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\\\\\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.\"a\\\"b\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_keys('[\"duck\", \"goose\"]');","json":{"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_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":17,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\"duck\", \"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},"named_param_map":[]}]}} +{"sql":"SELECT JSON_MERGE_PATCH('1', '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":29,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_merge_patch('{\"a\":1}', '{\"b\":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":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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 json_merge_patch_diff('{\"tags\":[1,2]}', '{\"tags\":[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":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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"tags\":[1,2]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"tags\":[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 json_merge_patch_diff('{\"a\":1}', '[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":41,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[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 json_merge_patch('{\"a\":1,\"b\":2,\"c\":3}', json_merge_patch_diff('{\"a\":1,\"b\":2,\"c\":3}', '{\"a\":1,\"b\":99,\"d\":4}')) = '{\"a\":1,\"b\":99,\"d\":4}'","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":134,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":109,"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":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":2,\"c\":3}"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":68,"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":69,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":2,\"c\":3}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":99,\"d\":4}"}}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":99,\"d\":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 json_normalize('{\"z\":1,\"a\":2,\"m\":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":"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":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"z\":1,\"a\":2,\"m\":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 json_normalize('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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_normalize('[3,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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[3,2,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('{\"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":30,"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":2,\"\":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_extract(j, '$.my_field.my_nested_field[#]') 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":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":"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":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.my_field.my_nested_field[#]"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"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(j, '$.my_field.my_nested_field[!]') 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":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":"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":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.my_field.my_nested_field[!]"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"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('[{\"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":51,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"duck\":42},{\"duck\":43}]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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":"with tbl as (\n select '{\"duck\":[{\"goose\":42},{\"goose\":43}],\"goose\":null}' j\n)\nselect json_extract(j, '$.duck[*]..goose') 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":51,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\":[{\"goose\":42},{\"goose\":43}],\"goose\":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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":35,"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":101,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.duck[*]..goose"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"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_remove('{\"a\":{\"x\":1}}', '$.a.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":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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"x\":1}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a.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 json_remove(NULL, '$.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":24,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.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 json_remove('[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":32,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1,2,3]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[#-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 json_remove('{\"a/b\":1,\"c\":2}', '/a~1b')","json":{"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_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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a/b\":1,\"c\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/a~1b"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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]', '$[#]', '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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[#]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_replace('{\"a\":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":41,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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[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":33,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a[0]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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_set('{}', '$.n', '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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.n"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_set('{\"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":29,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_set('{\"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":35,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\":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 json_set('{\"a\":1}', '$.a.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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a.b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_set('{}', '$.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":29,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a[#]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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_set('{}', '$.a', '{bad')","json":{"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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":[]}]}} +{"sql":"SELECT json_strip_nulls('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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_structure('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":20,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": [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 json_structure('[{\"a\": [{\"b\": 42}, {\"b\": null}]}, {\"a\": [{\"c\": 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":70,"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":54,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"a\": [{\"b\": 42}, {\"b\": null}]}, {\"a\": [{\"c\": 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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4.2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 42}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":\"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 json_transform('\"42\"', '\"{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":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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"42\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"{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_transform('42', '\"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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_transform('\"42\"', '\"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"42\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"DECIMAL(3,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_transform_strict('42', '\"DECIMAL(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":45,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"DECIMAL(2,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_transform('\"1996-03-27\"', '\"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":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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"1996-03-27\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 json_transform('\"1996-03-27 11:59:59\"', '\"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":54,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"1996-03-27 11:59:59\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 json_type('{\"str\": 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":24,"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":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"str\": 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 json_type('{\"null\": NaN}', '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":"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"null\": NaN}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_type(json, query) 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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["json"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["query"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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_extract('{\"a\":{\"duck\":[1]},\"b\":{\"duck\":[2,3]}}', '$..duck'))","json":{"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":"json_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":17,"query_location_length":64,"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":30,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"duck\":[1]},\"b\":{\"duck\":[2,3]}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$..duck"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_valid('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\G \""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_valid('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\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 json_valid('\" \\uab \"');","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\uab \""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_valid('{\"x\":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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"x\":00}"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{\"a\":2,\"c\":[4,5,{\"f\":7}]}', '$.c[2].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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.c[2].f"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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[#+2]') 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":25,"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[#+2]"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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('POINT M(1 2 3)'::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":40,"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":36,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT M(1 2 3)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\":\"Point\",\"coordinates\":[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":77,"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":66,"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":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"type\":\"Point\",\"coordinates\":[1.0,2.0,3.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 ST_GeomFromGeoJSON('{\"type\":\"Point\",\"coordinates\":[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":56,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"type\":\"Point\",\"coordinates\":[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 * 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array"}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\\\"b\": 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":[]}]}} +{"sql":"SELECT ST_AsText(geometry) FROM read_json('data/json/geojson/malformed.geojsonl', records='false', columns={geometry: '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":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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"query_location_length":98,"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":42,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/json/geojson/malformed.geojsonl"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":99,"query_location_length":30,"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":107,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"geometry","query_location":118,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"GEOMETRY"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/features.geojson', 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":87,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":62,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/json/geojson/features.geojson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":7,"column_names":["geojson"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"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":""},"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) FROM read_json('data/json/geojson/geometries.geojsonl', geojson=false, records='false', columns={geometry: '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":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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"query_location_length":114,"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":42,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/json/geojson/geometries.geojsonl"}}},{"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":7,"column_names":["geojson"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":115,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"geometry","query_location":134,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"GEOMETRY"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/near_miss.ndjson', geojson=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":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":"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":61,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/json/geojson/near_miss.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":7,"column_names":["geojson"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"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":""},"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 features 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":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"]}}]},{"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":8,"schema_name":"","table_name":"features","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["features"]}},"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='unstructured')","json":{"error":false,"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":110,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":91,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":21,"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"unstructured"}}}}]},"column_name_alias":[],"with_ordinality":"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(id), typeof(name) FROM read_json_auto('{DATA_DIR}/json/with_list.json', maximum_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":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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":26,"query_location_length":4,"column_names":["name"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":65,"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":52,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/with_list.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":13,"column_names":["maximum_depth"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"select * from read_json_auto('{TEMP_DIR}/my_file.json', format='array', 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":71,"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":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/my_file.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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/simple_timestamp.json', columns={\"ts\": \"TIMESTAMP[]\"});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_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":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/simple_timestamp.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"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":"ts","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"ts","query_location":85,"query_location_length":13,"column_names":["TIMESTAMP[]"]}}]}}}]},"column_name_alias":[],"with_ordinality":"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_neg_offset.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":["ts"]}}]},{"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":52,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/iso8601_neg_offset.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\n json_extract_string(json, '$.tstz_ns') AS top_level_tstz_ns,\n json_extract_string(json, '$.payload_tz_ns.tstz_ns') AS nested_tstz_ns,\n json_extract_string(json, '$.tstz_ns_list[0]') AS list_tstz_ns\nFROM read_json_objects('{TEMP_DIR}/timestampformat_timestamptz_ns.json');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"top_level_tstz_ns","query_location":11,"query_location_length":38,"function_name":"json_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":31,"query_location_length":4,"column_names":["json"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.tstz_ns"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"nested_tstz_ns","query_location":76,"query_location_length":52,"function_name":"json_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":96,"query_location_length":4,"column_names":["json"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.payload_tz_ns.tstz_ns"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"list_tstz_ns","query_location":152,"query_location_length":46,"function_name":"json_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":172,"query_location_length":4,"column_names":["json"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.tstz_ns_list[0]"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":220,"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":238,"query_location_length":48,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/timestampformat_timestamptz_ns.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_objects('{DATA_DIR}/json/example_n.ndjson', format='auto')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_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":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/example_n.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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_ndjson_objects('{DATA_DIR}/json/empty.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":51,"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":30,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/empty.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_json_objects('{DATA_DIR}/json/top_level_array.json', 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":70,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/top_level_array.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nd"}}}}]},"column_name_alias":[],"with_ordinality":"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_extract_string(item, '$.name')\nFROM (\n SELECT UNNEST(CAST(results AS JSON[])) AS item\n FROM read_json_auto('{TEMP_DIR}/heterogeneous.json')\n)\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":169,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"json_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":27,"query_location_length":4,"column_names":["item"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.name"}}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":48,"query_location_length":111,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"item","query_location":61,"query_location_length":31,"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":68,"query_location_length":23,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":7,"column_names":["results"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":84,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":110,"query_location_length":47,"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":125,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/heterogeneous.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":[]},"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_extract('{\"key\": false}', '$.key')::BOOLEAN","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"key\": false}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.key"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::TIMESTAMP::JSON::TIMESTAMP","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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-01 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::UBIGINT::JSON::UBIGINT","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::JSON::mood;","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":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":6,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"sad"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_DIR}/data.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":25,"schema_name":"","table_name":"{TEST_DIR}/data.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/data.parquet"]}},"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"]}}]}],"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 plan::VARCHAR LIKE '%LOGICAL_CHUNK_GET%', plan::VARCHAR LIKE '%\"column_ids\"%'\nFROM (\n\tSELECT json_serialize_plan(\n\t\t'SELECT column_name FROM (DESCRIBE SELECT 42 AS a, 84 AS b)',\n\t\tskip_default := true, optimize := true\n\t) plan\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":11,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["plan"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%LOGICAL_CHUNK_GET%"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":4,"column_names":["plan"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%\"column_ids\"%"}}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":90,"query_location_length":145,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"plan","query_location":100,"query_location_length":128,"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":123,"query_location_length":60,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT column_name FROM (DESCRIBE SELECT 42 AS a, 84 AS b)"}}},{"name":"skip_default","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"skip_default","query_location":203,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"optimize","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"optimize","query_location":221,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":[]},"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_deserialize_sql(json_serialize_sql('SELECT * FROM t1 JOIN t2 USING(\"$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":81,"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":59,"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":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM t1 JOIN t2 USING(\"$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 * FROM json_execute_serialized_sql(json_serialize_sql('SELECT * FROM ms PIVOT (SUM(amount) FOR month IN (''JAN'') GROUP BY \"$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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":125,"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":96,"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":76,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM ms PIVOT (SUM(amount) FOR month IN ('JAN') GROUP BY \"$id\")"}}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"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\"['SO\"ME']['I\"N'] FROM \"SCH\"\"EMA\".\"TA\"\"BLE\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":47,"query_location_length":7,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":38,"query_location_length":9,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":31,"column_names":["SCH\"EMA","TA\"BLE","COL\"UMN"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SO\"ME"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"I\"N"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"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 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"]}}]},{"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"]}}]},{"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":[]}],"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 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_log_contexts()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_log_contexts","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_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/big_number.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":31,"schema_name":"","table_name":"{DATA_DIR}/csv/big_number.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/big_number.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM duckdb_logs_parsed('FileSystem');","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":"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":24,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FileSystem"}}}]},"column_name_alias":[],"with_ordinality":"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, log_level, scope, fs, parse_filename(path), op, bytes, pos FROM duckdb_logs_parsed('FileSystem') 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":119,"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":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"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["op"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["bytes"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":3,"column_names":["pos"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":77,"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":96,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FileSystem"}}}]},"column_name_alias":[],"with_ordinality":"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 dest 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":4,"schema_name":"","table_name":"dest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dest"]}},"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 id, amount FROM archived_orders;","json":{"error":false,"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":6,"column_names":["amount"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":15,"schema_name":"","table_name":"archived_orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["archived_orders"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT currval('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":"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 t1.c1 FROM t1 WHERE (1 BETWEEN -1 AND CAST(CAST(t1.c1 AS BIT) AS 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":5,"column_names":["t1","c1"]}],"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":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":30,"query_location_length":50,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"upper":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":35,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":5,"column_names":["t1","c1"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM integers WHERE (i IS NULL AND (i+1) IS NULL) OR (i IS NULL AND (i+2) 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":101,"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":62,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":27,"children":[{"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":["i"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":50,"query_location_length":7,"children":[{"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":45,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":63,"query_location_length":27,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":65,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["i"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":83,"query_location_length":7,"children":[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (a*2)+(a*2)+(a*2)+(a*2)+(a*2), a FROM test","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":"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":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":"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":8,"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":8,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":14,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"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":26,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]}],"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 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 max(distinct x) from range(10) 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":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":20,"query_location_length":1,"column_names":["x"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":28,"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":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 -v FROM (VALUES (CAST(-128 AS TINYINT))) 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":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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":15,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-128}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":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 0 // 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":"//","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]}}]}],"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 count(*) FROM instr_pruning WHERE instr(s, 'mmm') = 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"instr_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["instr_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":15,"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":47,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mmm"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, grp, ts\nFROM lm_test\nWHERE grp = 1\n AND ts \u003e= TIMESTAMP '2024-01-01'\n AND ts \u003c TIMESTAMP '2024-07-01'\nORDER BY ts\nLIMIT 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":124,"query_location_length":2,"column_names":["ts"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":3,"column_names":["grp"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["ts"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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":38,"query_location_length":76,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["grp"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":52,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":2,"column_names":["ts"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":87,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":2,"column_names":["ts"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":92,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-07-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":92,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]},"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) = 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":[]}],"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_EQUAL","alias":"","query_location":29,"query_location_length":15,"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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2020}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT count(*) FROM nested_nulls WHERE l IS NULL),\n (SELECT count(*) FROM array_nulls WHERE a 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":51,"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":12,"schema_name":"","table_name":"nested_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_nulls"]}},"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":48,"query_location_length":1,"column_names":["l"]}]},"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":67,"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":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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":11,"schema_name":"","table_name":"array_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["array_nulls"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":109,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"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":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(i) FROM integers WHERE i 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":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"]}}]}],"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":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":36,"query_location_length":21,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2900}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3100}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id,\n coalesce((date_trunc('day', t) = TIMESTAMP '2020-06-15 12:00:00')::VARCHAR, 'NIL'),\n coalesce((date_trunc('day', t) \u003c\u003e TIMESTAMP '2020-06-15 12:00:00')::VARCHAR, 'NIL')\nFROM ts 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":211,"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_COALESCE","alias":"","query_location":18,"query_location_length":83,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":84,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":55,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":39,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["t"]}}]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-06-15 12:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NIL"}}]},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":110,"query_location_length":83,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":176,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":120,"query_location_length":55,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"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":131,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["t"]}}]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":144,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-06-15 12:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":144,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":178,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NIL"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":199,"query_location_length":2,"schema_name":"","table_name":"ts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ts"]}},"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 long_strings WHERE v \u003e 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"]}}]}],"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_GREATERTHAN","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}},"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 \u003e 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"]}}]}],"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_GREATERTHAN","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}},"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":[]}],"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM substring_truncated_stats WHERE s[14:] \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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":25,"schema_name":"","table_name":"substring_truncated_stats","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["substring_truncated_stats"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":53,"query_location_length":17,"left":{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":54,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":14}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"495000"}}},"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":136,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"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":[]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2026-10-25 02:30:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"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":[]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":161,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2026-10-25 02:30:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":198,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', count(*) FROM csp_filter_key WHERE a \u003e 1\nUNION ALL\nSELECT 'y', count(*) FROM csp_filter_key WHERE a \u003e 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":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}},{"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":[]}],"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":"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":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"y"}},{"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"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":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":110,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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 'qqq';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":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":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"qqq"}}}]},"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 = 122879;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":122879}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM lineitem ORDER BY l_orderkey DESC 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":32,"query_location_length":10,"column_names":["l_orderkey"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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\n\t*,\n\tlist(DISTINCT train_number) OVER(\n\t\tPARTITION BY date\n\t\tORDER BY train_number DESC\n\t\tROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n\t\t) as trains\nFROM services","json":{"error":false,"statements":[{"node":{"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":[]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"trains","query_location":12,"query_location_length":145,"function_name":"list","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":4,"column_names":["date"]}],"orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":12,"column_names":["train_number"]}}],"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":[],"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":173,"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":null},"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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 NULLS LAST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"NULLS LAST","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 1 limit date '1992-01-01';","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":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * 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":25,"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":"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 'Test' LIMIT ?","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"PARAMETER","type":"VALUE_PARAMETER","alias":"","query_location":20,"query_location_length":1,"identifier":"1"},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[{"key":"1","value":1}]}]}} +{"sql":"SELECT * FROM test LIMIT RANDOM() %;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":[]},"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 1 limit date '2021-11-25' %;","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":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-11-25"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false},"offset":null,"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 o_orderkey, o_clerk, o_orderstatus, o_totalprice from orders_small\n order by o_orderkey NULLS FIRST,\n o_clerk NULLS FIRST, o_orderstatus NULLS FIRST,\n o_totalprice DESC NULLS LAST limit 360","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":103,"query_location_length":10,"column_names":["o_orderkey"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":7,"column_names":["o_clerk"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":13,"column_names":["o_orderstatus"]}},{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":215,"query_location_length":12,"column_names":["o_totalprice"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":250,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":360}},"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":["o_orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":7,"column_names":["o_clerk"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":13,"column_names":["o_orderstatus"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":12,"column_names":["o_totalprice"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":12,"schema_name":"","table_name":"orders_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders_small"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM unnest([41,42,43]) WITH ORDINALITY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":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":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":41}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}}]}}]},"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 251658240::BIGINT * 1080863910568919040::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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":251658240}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1080863910568919040}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * (-9223372036854775808)::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}},{"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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * (-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":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":8,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775807}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483640}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -30000::SMALLINT - 1::SMALLINT","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":"-","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 50::TINYINT * 2::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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * 2147483647::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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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":21,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483647}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -120::TINYINT + (-(-(-i))) 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":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":120}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":29,"query_location_length":1,"column_names":["i"]}}]}}]}}]}}]}],"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 i*10000::SMALLINT FROM smallints","json":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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 -2e38::REAL-2e38::REAL","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":"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":12,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":2e38}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":2e38}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 - -b::TINYINT FROM test2","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":24,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["b"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}}]}],"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},"named_param_map":[]}]}} +{"sql":"select (select min(i::int)+tbl.k from varchars) from (values (1), (2), (3)) tbl(k);","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":"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":11,"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":20,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":5,"column_names":["tbl","k"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":53,"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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"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 UNION ALL SELECT AVG(i) FROM integers UNION ALL SELECT MIN(i) FROM integers UNION ALL SELECT MAX(i) FROM integers;","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":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"]}}]}],"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":49,"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":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":83,"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":87,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":95,"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"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":125,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":133,"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(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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"([a-z])\\d+"}},"qualified_exclude_list":[],"rename_list":[]}}]}],"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 1_000_000","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":9,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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__2'::FLOAT","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":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1__2.1__2"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5::DOUBLE","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":31,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":23,"scale":1}},"is_null":false,"value":{"upper":542,"lower":1864712049423024133}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '_12e10::BIGINT' == 12e10::BIGINT","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"_12e10::BIGINT"}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":120000000000.0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::FLOAT","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":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":120000000000.0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 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":[]}],"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":[]},"column_name_alias":[],"with_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 integers SELECT DISTINCT i%2 WHERE i\u003e0 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":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":30,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"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":40,"query_location_length":3,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT v.split(' ').apply(lambda x: x.lower()) FROM varchars","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":"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":7,"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":15,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":26,"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":36,"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":[]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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 [a for a in [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":28,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"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":19,"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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}}]}},{"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":["a"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["a"]},"syntax_type":"LAMBDA_KEYWORD"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM integers GROUP BY i HAVING COLUMNS(*)\u003e42","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":41,"query_location_length":13,"left":{"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \"weird name\".* EXCLUDE (\"select\") FROM \"weird name\"","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":33,"relation_name":"weird name","exclude_list":["select"],"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":12,"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":"SELECT switch(i, MAP {1 : 100, 3 : 300}) FROM nums 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":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"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":1,"column_names":["i"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":22,"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":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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":26,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":300}}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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 tbl AT (TIMESTAMP =\u003e TIMESTAMP '2020-01-01' + 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":48,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":{"unit":"TIMESTAMP","expr":{"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":35,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["a"]}}]}},"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 MIN(COLUMNS('xxx')) FROM grouped_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":"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":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xxx"}},"qualified_exclude_list":[],"rename_list":[]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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 COLUMNS(list_concat(['i'], ['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":34,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":28,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}},{"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}}]},"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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 COLUMNS([NULL]) 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":15,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},"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":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('xxxx')","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":15,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xxxx"}},"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 struct_pack(*COLUMNS(*)) from 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":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":19,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":28,"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":37,"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":"with integers as (\n\tselect * FROM (VALUES\n\t\t(21, 42),\n\t\t(1337, 7331)\n\t) as t(a, b)\n)\nselect [(UNPACK(a + COLUMNS(['a', 'b'])))] from integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"integers","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":27,"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":34,"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":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":21}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1337}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7331}}]]},"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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"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":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":94,"query_location_length":31,"children":[{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":105,"query_location_length":19,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"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":114,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]},"qualified_exclude_list":[],"rename_list":[]}}]}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":133,"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 WHERE COLUMNS(* EXCLUDE (col1, col2, col3)) \u003e= 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":"STAR","type":"STAR","alias":"","query_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_GREATERTHANOREQUALTO","alias":"","query_location":24,"query_location_length":42,"left":{"class":"STAR","type":"STAR","alias":"","query_location":32,"query_location_length":28,"relation_name":"","exclude_list":["col1","col3","col2"],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 2**(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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 a as \"b\", \"b\" + 1 from (VALUES (84), (42)) t(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":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":7,"query_location_length":1,"column_names":["a"]},{"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":17,"query_location_length":3,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":30,"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":39,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 E'\\\\\\\\' = '\\\\';","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":14,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\\\"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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":"foo; ","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":18446744073709551615,"query_location_length":0,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM pg_depend 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":9,"schema_name":"","table_name":"pg_depend","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_depend"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from pg_prepared_statements 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":46,"query_location_length":4,"column_names":["name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"","table_name":"pg_prepared_statements","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_prepared_statements"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM pg_type","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"pg_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_type"]}},"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 = 'int2' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"int2"}}},{"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 * FROM pg_catalog.pg_views","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"pg_catalog","table_name":"pg_views","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_views"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nspname FROM pg_namespace\nWHERE nspname NOT LIKE 'pg_%'\nORDER BY nspname","json":{"error":false,"statements":[{"node":{"type":"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":7,"column_names":["nspname"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["nspname"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"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":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":39,"query_location_length":7,"column_names":["nspname"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pg_%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tpgd.description as table_comment\nFROM\n\tpg_catalog.pg_description pgd\nWHERE\n\tpgd.objsubid = 0 AND\n\tpgd.objoid = (SELECT MIN(table_oid) FROM duckdb_tables)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"table_comment","query_location":8,"query_location_length":15,"column_names":["pgd","description"]}],"from_table":{"type":"BASE_TABLE","alias":"pgd","sample":null,"query_location":47,"query_location_length":29,"schema_name":"pg_catalog","table_name":"pg_description","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_description"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":84,"query_location_length":77,"children":[{"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":12,"column_names":["pgd","objsubid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":55,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":10,"column_names":["pgd","objoid"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":119,"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":127,"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":131,"query_location_length":9,"column_names":["table_oid"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"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 1, 2, 3, current_query();","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"current_query","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 CPB(CPDH,NF,JG) AS (\nSELECT 'C1',2022,10\nUNION ALL\nSELECT 'C1',2018,20\nUNION ALL\nSELECT 'C1',2017,0\nUNION ALL\nSELECT 'C2',2022,10\nUNION ALL\nSELECT 'C2',2010,30\nUNION ALL\nSELECT 'C3',2010,80\n)\npivot CPB on nf IN (2010, 2017, 2018, 2022) using sum(jg)group by cpdh","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"CPB","value":{"aliases":["CPDH","NF","JG"],"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":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2022}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":63,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2018}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2017}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2022}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":152,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2010}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2010}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":80}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":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":203,"query_location_length":3,"schema_name":"","table_name":"CPB","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["CPB"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":247,"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":251,"query_location_length":2,"column_names":["jg"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":210,"query_location_length":2,"column_names":["nf"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2010}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2017}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2018}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2022}],"star_expr":null,"alias":""}],"pivot_enum":""}],"groups":["cpdh"],"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_east, q1_west, q2_east, q2_west, q3_east, q3_west, q4_east, q4_west\n FROM sales\n PIVOT (sum(sales)\n FOR (quarter, region)\n IN ((1, 'east') AS q1_east, (1, 'west') AS q1_west, (2, 'east') AS q2_east, (2, 'west') AS q2_west,\n (3, 'east') AS q3_east, (3, 'west') AS q3_west, (4, 'east') AS q4_east, (4, 'west') AS q4_west));","json":{"error":false,"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":7,"column_names":["q1_east"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":7,"column_names":["q1_west"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":7,"column_names":["q2_east"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":7,"column_names":["q2_west"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":7,"column_names":["q3_east"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":7,"column_names":["q3_west"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":7,"column_names":["q4_east"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":7,"column_names":["q4_west"]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":110,"query_location_length":250,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"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":110,"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":114,"query_location_length":5,"column_names":["sales"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":7,"column_names":["quarter"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":6,"column_names":["region"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"east"}],"star_expr":null,"alias":"q1_east"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"west"}],"star_expr":null,"alias":"q1_west"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"east"}],"star_expr":null,"alias":"q2_east"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"west"}],"star_expr":null,"alias":"q2_west"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"east"}],"star_expr":null,"alias":"q3_east"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"west"}],"star_expr":null,"alias":"q3_west"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"east"}],"star_expr":null,"alias":"q4_east"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"west"}],"star_expr":null,"alias":"q4_west"}],"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"]}}]}],"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 *\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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"]}}]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 *\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"]}}]}],"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":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"JAN"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FEB"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MAR"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DEC"}],"star_expr":null,"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\n\t(UNPIVOT t1 ON \"Sales (05/19/2020)\" AS \"2020-05-19\", \"Sales (06/03/2020)\" AS \"2020-06-03\", \"Sales (10/23/2020)\" AS \"2020-10-23\" INTO NAME date VALUE sales)\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":"SUBQUERY","alias":"","sample":null,"query_location":15,"query_location_length":155,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":24,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"aggregates":[],"unpivot_names":["sales"],"pivots":[{"pivot_expressions":[],"unpivot_names":["date"],"entries":[{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"2020-05-19","query_location":30,"query_location_length":20,"column_names":["Sales (05/19/2020)"]},"alias":"2020-05-19"},{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"2020-06-03","query_location":68,"query_location_length":20,"column_names":["Sales (06/03/2020)"]},"alias":"2020-06-03"},{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"2020-10-23","query_location":106,"query_location_length":20,"column_names":["Sales (10/23/2020)"]},"alias":"2020-10-23"}],"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 col1 + 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":28,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":"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":51,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"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":"unpivot (select cast(columns(*) as varchar) from (select 42 as col1, 'woot' as col2))\n on 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":"PIVOT","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"source":{"type":"SUBQUERY","alias":"","sample":null,"query_location":8,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":27,"child":{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":49,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":57,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":69,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]},"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":"STAR","type":"STAR","alias":"","query_location":101,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tracked_metrics"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 system.total_memory_allocated \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":74,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":18,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":29,"column_names":["system","total_memory_allocated"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"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 operator[1].extra_info,\n\toperator[1].intermediate_size_bytes,\n\tquery.cpu_time,\n\tquery.total_intermediate_rows,\n\tquery.total_rows_scanned,\n\tquery.total_time,\n\tquery.sql,\n\tsystem.blocked_thread_time,\n\tsystem.peak_buffer_memory,\n\tsystem.peak_temp_dir_size,\n\tsystem.total_memory_allocated\nFROM metrics_output;","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":22,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":15,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["operator"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"extra_info"}}]},{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":32,"query_location_length":35,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":40,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":8,"column_names":["operator"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"intermediate_size_bytes"}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":14,"column_names":["query","cpu_time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":29,"column_names":["query","total_intermediate_rows"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":24,"column_names":["query","total_rows_scanned"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":16,"column_names":["query","total_time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":9,"column_names":["query","sql"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":26,"column_names":["system","blocked_thread_time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":206,"query_location_length":25,"column_names":["system","peak_buffer_memory"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":234,"query_location_length":25,"column_names":["system","peak_temp_dir_size"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":262,"query_location_length":29,"column_names":["system","total_memory_allocated"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":297,"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 children[1].operator_type, children[1].operator_timing FROM metrics_output;","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":25,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":15,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["children"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"operator_type"}}]},{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":34,"query_location_length":27,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":42,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":8,"column_names":["children"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"operator_timing"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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 profile_fs.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":"profile_fs","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["profile_fs","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from pragma_version();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"pragma_version","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_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 t2","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":"","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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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.DB1_SCHEMA","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":"DB1","schema_name":"DB1_SCHEMA"},"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_DIR}/res.csv' 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":"BASE_TABLE","alias":"tbl","sample":null,"query_location":14,"query_location_length":27,"schema_name":"","table_name":"{TEST_DIR}/res.csv","column_name_alias":["i"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/res.csv"]}},"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_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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":22,"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"cached_insert"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COALESCE(NULL, 'hello'::INT)","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":28,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"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) 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":25,"relation_name":"integers","exclude_list":["i","j"],"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":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 (integers.i, integers.j, 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":47,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[{"catalog":"","schema":"","table":"integers","column":"i"},{"catalog":"","schema":"","table":"integers2","column":"i"},{"catalog":"","schema":"","table":"integers","column":"j"}],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"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, 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":24,"relation_name":"integers","exclude_list":["i","j"],"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":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, integers.j, 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":46,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[{"catalog":"","schema":"","table":"integers","column":"i"},{"catalog":"","schema":"","table":"integers2","column":"i"},{"catalog":"","schema":"","table":"integers","column":"j"}],"rename_list":[]}],"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 val FROM (\nSELECT * NOT LIKE '%number%' AS val FROM (SELECT 1 AS number1, 2 AS number2, 3 AS end)\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":["val"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":16,"query_location_length":90,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"val","query_location":31,"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":"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":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%number%"}}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":59,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"number1","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"number2","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"end","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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 renamed_col FROM (SELECT COLUMNS(* RENAME i AS renamed_col) 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":11,"column_names":["renamed_col"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":57,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":40,"query_location_length":25,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[{"key":{"catalog":"","schema":"","table":"","column":"i"},"value":"renamed_col"}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"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 * EXCLUDE (j, k) REPLACE (i+100 AS i), * EXCLUDE (j) REPLACE (i+100 AS i), * EXCLUDE (j, k) REPLACE (i+101 AS 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":37,"relation_name":"","exclude_list":["j","k"],"replace_list":[{"key":"i","value":{"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":33,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":46,"query_location_length":34,"relation_name":"","exclude_list":["j"],"replace_list":[{"key":"i","value":{"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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":82,"query_location_length":37,"relation_name":"","exclude_list":["j","k"],"replace_list":[{"key":"i","value":{"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":"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":110,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":101}}}]}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"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 range(1) t1(a) NATURAL JOIN range(1) 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":29,"query_location_length":27,"left":{"type":"TABLE_FUNCTION","alias":"t1","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":["a"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":42,"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":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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 a FROM exprtest WHERE a NOT BETWEEN 43 AND 44","json":{"error":false,"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":8,"schema_name":"","table_name":"exprtest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["exprtest"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":29,"query_location_length":23,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":35,"query_location_length":17,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":44}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM intest WHERE a IN (43, b) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":7,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}},{"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 a FROM strtest WHERE b \u003c= 'h'","json":{"error":false,"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_LESSTHANOREQUALTO","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":33,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"h"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(rowid), MIN(rowid), MAX(rowid), COUNT(rowid), LAST(rowid) 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":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":11,"query_location_length":5,"column_names":["rowid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":23,"query_location_length":5,"column_names":["rowid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","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":["rowid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":49,"query_location_length":5,"column_names":["rowid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":11,"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":62,"query_location_length":5,"column_names":["rowid"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"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 row_number() OVER (ORDER BY rowid) FROM a 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":58,"query_location_length":5,"column_names":["rowid"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":7,"query_location_length":34,"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":35,"query_location_length":5,"column_names":["rowid"]}}],"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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 cast(3 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":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.* FROM test 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":6,"relation_name":"test","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":19,"query_location_length":6,"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 ((SELECT MIN(a) FROM test), 2, 3), ((SELECT MAX(b) FROM test), 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":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":23,"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":31,"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":35,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"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":[]},"child":null,"comparison_type":"INVALID"},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":58,"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":66,"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":70,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"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":[]},"child":null,"comparison_type":"INVALID"},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 v0 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":"v0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v0"]}},"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_csv_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":15,"schema_name":"","table_name":"all_types_csv_1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types_csv_1"]}},"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 \u003c 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t1"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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('blob_samples') where a 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":[]}],"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":"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"blob_samples"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":65,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"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 100 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":100},"is_percentage":false,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"query_location":21,"query_location_length":41,"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":"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","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},"query_location":67,"query_location_length":34,"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 fs, op FROM duckdb_logs_parsed('FileSystem') WHERE path LIKE '%my_secret%' 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":91,"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":2,"column_names":["fs"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["op"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"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":38,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FileSystem"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"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":58,"query_location_length":4,"column_names":["path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%my_secret%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t.t.t.t.t.t FROM t.t;","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":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["t","t","t","t"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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 (select #1) from range(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":11,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":15,"query_location_length":2,"index":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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"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":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT j1 : 42, 42 AS j2, 42 j3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j1","query_location":12,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j2","query_location":16,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j3","query_location":26,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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":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":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT 42 UNION ALL SELECT 42 WHERE 1=0","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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":36,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM v3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"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"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1 AS two UNION SELECT 2 UNION 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":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"two","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 five FROM FLOAT8_TBL\nUNION\nSELECT f1 FROM FLOAT8_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":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"COLUMN_REF","type":"COLUMN_REF","alias":"five","query_location":7,"query_location_length":2,"column_names":["f1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":10,"schema_name":"","table_name":"FLOAT8_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["FLOAT8_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":47,"query_location_length":2,"column_names":["f1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":10,"schema_name":"","table_name":"FLOAT8_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["FLOAT8_TBL"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT q2 FROM int8_tbl EXCEPT ALL SELECT q1 FROM int8_tbl 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":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":7,"query_location_length":2,"column_names":["q2"]}],"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":42,"query_location_length":2,"column_names":["q1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 q1 FROM int8_tbl INTERSECT (((SELECT q2 FROM int8_tbl UNION ALL SELECT q2 FROM int8_tbl))) 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":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"setop_type":"INTERSECT","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":"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":44,"query_location_length":2,"column_names":["q2"]}],"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":2,"column_names":["q2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"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 1, 'a' UNION ALL SELECT 2, 'b' UNION ALL SELECT 3, 'c' UNION ALL SELECT 4, 'd' 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":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' UNION ALL SELECT 1, 'a' UNION SELECT 2, 'b' UNION SELECT 1, 'a' ORDER BY 1 DESC","json":{"error":false,"statements":[{"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":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 x, y FROM t1 UNION ALL BY NAME SELECT y, z FROM t2 ORDER BY y;","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":67,"query_location_length":1,"column_names":["y"]}}]}],"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"]},{"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":45,"query_location_length":1,"column_names":["y"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["z"]}],"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 x as a FROM t1 UNION ALL BY NAME SELECT x FROM t1;","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":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":7,"query_location_length":1,"column_names":["x"]}],"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":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":["x"]}],"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 1, a FROM test UNION SELECT b AS a, 1 FROM test2 ORDER BY a, 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":65,"query_location_length":1,"column_names":["a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"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":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":"a","query_location":35,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 test.a FROM test UNION SELECT * FROM test2 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":59,"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":6,"column_names":["test","a"]}],"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},{"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":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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 FROM t1 UNION ALL SELECT y FROM t1) UNION BY NAME (SELECT z FROM t2 UNION ALL SELECT y FROM t2) ORDER BY y, z;","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":115,"query_location_length":1,"column_names":["y"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["z"]}}]}],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","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":true,"children":[{"type":"SELECT_NODE","modifiers":[],"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":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["y"]}],"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":"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":68,"query_location_length":1,"column_names":["z"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"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': '0'} as c union all by name select {'a': 0} as c","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":"FUNCTION","type":"FUNCTION","alias":"c","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":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":13,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":48,"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":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM a UNION ALL SELECT * FROM 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":[]}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":21,"query_location_length":43,"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":"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":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":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":[]}]}} +{"sql":"SELECT 1 UNION ALL SELECT * FROM range(2, 100) UNION ALL SELECT 999 LIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"STAR","type":"STAR","alias":"","query_location":26,"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":33,"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":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"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":64,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":999}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 FIRST(i ORDER BY i DESC), LAST(i ORDER BY i DESC) 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":24,"function_name":"first","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":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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":23,"function_name":"last","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":49,"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":38,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"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","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 current_setting('threads')","json":{"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":"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"threads"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.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":6,"schema_name":"abc","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["abc","t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t.column_name FROM (DESCRIBE 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":13,"column_names":["t","column_name"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":26,"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":"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":"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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 c4 FROM integers, (SELECT 84))","json":{"error":false,"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":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":"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":2,"column_names":["c4"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":49,"query_location_length":26,"left":{"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"]}},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":64,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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":"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":""},"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-04-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]},"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":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT segment_id, count\nFROM pragma_storage_info('step_test')\nWHERE column_name = 'i' AND segment_type = 'INTEGER'\nORDER BY segment_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":125,"query_location_length":10,"column_names":["segment_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["segment_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":5,"column_names":["count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":30,"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":50,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"step_test"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":69,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s FROM string_test WHERE s = '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"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"string_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["string_test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":32,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM sib.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"sib","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sib","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT plus2(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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 nextval('seq'), 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":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":15,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":31,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(id), max(id) 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":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":["id"]}}]},{"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":["id"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 d, f from tbl1_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":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["f"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":17,"schema_name":"","table_name":"tbl1_uncompressed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1_uncompressed"]}},"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 (WHERE v != 9223372036854775807.0) 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":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":50,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":40,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":21,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":20,"scale":1}},"is_null":false,"value":{"upper":4,"lower":18446744073709551606}}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"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 d, f from tbl2_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":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["f"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":10,"schema_name":"","table_name":"tbl2_alprd","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2_alprd"]}},"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('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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tt"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]}}]}],"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 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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 sum(length(STREET)) FROM index_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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":6,"column_names":["STREET"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":12,"schema_name":"index_db","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["index_db","tbl"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"fsst%"}}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}}]},"column_name_alias":[],"with_ordinality":"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 on (types) types from (select vector_type(a) from test offset 8192) tbl(types)","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":5,"column_names":["types"]}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":5,"column_names":["types"]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":38,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8192}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":58,"query_location_length":1,"column_names":["a"]}}]}],"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":[]},"column_name_alias":["types"]},"where_clause":null,"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= 19500 AND id_modulo\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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"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"]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]}],"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":43,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1500}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":129,"query_location_length":11,"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":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":19500}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":145,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":9,"column_names":["id_modulo"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"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":[]}],"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"]},"cast_type":{"id":"BOOLEAN","type_info":null},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},"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 'BOOLEAN' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":58,"query_location_length":62,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"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":58,"query_location_length":12,"column_names":["segment_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BOOLEAN"}}}]},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":91,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Uncompressed"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from test_empty;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_empty","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_empty"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(s['a']::INT), MIN(s['a']::INT), MAX(s['a']::INT), 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":16,"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":17,"query_location_length":5,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":12,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":16,"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":35,"query_location_length":5,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":30,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":5,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":48,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},{"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":[]}],"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 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":31,"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":"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 (select sum(nr_bytes) from duckdb_external_file_cache()) = (select total from cached_bytes_before);","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":98,"left":{"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":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":19,"query_location_length":8,"column_names":["nr_bytes"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_file_cache","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"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":66,"query_location_length":39,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":5,"column_names":["total"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":19,"schema_name":"","table_name":"cached_bytes_before","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cached_bytes_before"]}},"where_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(*), SUM(x) FROM other_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":[]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":9,"schema_name":"","table_name":"other_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["other_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 WHERE a IS 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":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":27,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]},"column_name_alias":[],"with_ordinality":"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', include_segment_info=true) WHERE segment_type NOT IN ('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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":["include_segment_info"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":88,"query_location_length":32,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":108,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":12,"column_names":["segment_type"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VALIDITY"}}]}]},"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_test.db', table_name='my_tbl2')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/read_duckdb_test.db"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"my_tbl2"}}}}]},"column_name_alias":[],"with_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 '{TEST_DIR}/read_duckdb_top_n*.db' ORDER BY val DESC 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":49,"query_location_length":3,"column_names":["val"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":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, 150000, 280000, 410000) 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":70,"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":28,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":150000}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":280000}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":410000}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k, v FROM del WHERE k IN (50, 99, 100, 200099, 200100, 200101) 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":79,"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":"del","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["del"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":32,"query_location_length":37,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":99}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200099}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200101}}]},"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;","json":{"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"]}}]},{"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"]}}]},{"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":[]}],"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":null,"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 geom = 'POINT (1500 1500)'::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":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":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":4,"column_names":["geom"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT (1500 1500)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}},"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"]}}]},{"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"]}}]},{"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":[]}],"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"]}}]},{"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"]}}]},{"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":122880}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":245760}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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 LIKE 'empty%' 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":79,"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":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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":42,"query_location_length":13,"column_names":["database_name"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"empty%"}}}]},"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 COALESCE(s.child_stats.total_string_length, 30000) FROM (SELECT stats(a) 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":50,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":33,"column_names":["s","child_stats","total_string_length"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30000}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":63,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":71,"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":77,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"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=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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM a 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":[]}],"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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":31,"query_location_length":7,"children":[{"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 * FROM uhugeints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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 * FROM uuids","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"uuids","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uuids"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select \"{col}\"::VARIANT from test_all_types()","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["{col}"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"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":[]},"column_name_alias":[],"with_ordinality":"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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":[]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"block"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT col FROM tbl WHERE 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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i, j FROM integers WHERE j + i = 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":["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":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":32,"query_location_length":9,"left":{"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":["j"]}},{"name":"","expression":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl WHERE a = 140;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":7,"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":140}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM distinct_test WHERE CASE WHEN a IS DISTINCT FROM 1 THEN true ELSE false 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"distinct_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_test"]}},"where_clause":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":41,"query_location_length":55,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":51,"query_location_length":20,"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":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x123"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MIN(i), MAX(i), COUNT(*), COUNT(i) FROM a_interval WHERE i=interval 1 year","json":{"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"]}}]},{"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"]}}]},{"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":[]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":10,"schema_name":"","table_name":"a_interval","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a_interval"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["i"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nextval('seq2')","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq2"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) 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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"13:35:07"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":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":[]},"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 row([1, 2], 0) IN (\n\tSELECT * FROM (VALUES ([1, NULL::INT], 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":25,"query_location_length":57,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":35,"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":42,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":11,"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":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 NULL IN (SELECT 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":15,"query_location_length":10,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"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 (SELECT EXISTS(SELECT * FROM integers WHERE i\u003e2)) FROM integers;","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":49,"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":40,"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":"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_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":62,"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 l IN (SELECT i1.l FROM generate_series(1, 2, 1) tbl(s) LEFT JOIN (SELECT * FROM lists i1 WHERE i1.l=lists.l) i1 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":161,"query_location_length":1,"column_names":["l"]}}]}],"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","l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":62,"query_location_length":77,"left":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":30,"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":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":["s"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"i1","sample":null,"query_location":72,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":80,"query_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":87,"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":102,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":4,"column_names":["i1","l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"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":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":122,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":4,"column_names":["i1","l"]},"right":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":127,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":5,"column_names":["tbl","s"]}]}},"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":[]},"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":146,"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 *\nFROM x\nLEFT JOIN y ON x1 = y1 AND EXISTS (SELECT * FROM z WHERE z2 = x2)\nORDER BY x1, x2, y1, y2;","json":{"error":false,"statements":[{"node":{"type":"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":["x1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":2,"column_names":["x2"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":2,"column_names":["y1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":2,"column_names":["y2"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":65,"left":{"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"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":1,"schema_name":"","table_name":"y","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["y"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":31,"query_location_length":50,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["x1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":2,"column_names":["y1"]}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":43,"query_location_length":38,"subquery_type":"EXISTS","subquery":{"node":{"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":"","sample":null,"query_location":65,"query_location_length":1,"schema_name":"","table_name":"z","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["z"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":2,"column_names":["z2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":2,"column_names":["x2"]}},"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 (SELECT COVAR_POP(i1.i+i2.i, i1.i+i2.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":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":57,"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":31,"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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":4,"column_names":["i1","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":4,"column_names":["i2","i"]}}]}},{"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":36,"query_location_length":4,"column_names":["i1","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":4,"column_names":["i2","i"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":52,"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":70,"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 c1 from t1 anti join t2 on (t1.c1 \u003c= t2.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":2,"column_names":["c1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":18,"query_location_length":32,"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":"","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_LESSTHANOREQUALTO","alias":"","query_location":35,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":5,"column_names":["t1","c1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":5,"column_names":["t2","c1"]}},"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 EXISTS(SELECT EXISTS(SELECT * FROM integers))","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":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":21,"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":35,"query_location_length":1,"relation_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":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},"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 * FROM tbl JOIN LATERAL (SELECT x FROM generate_series(0,5,1) t(x) WHERE x\u003ei) t(b) ON (i\u003e=b) ORDER BY i, 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":109,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"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":"JOIN","alias":"","sample":null,"query_location":18,"query_location_length":81,"left":{"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"]}},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":31,"query_location_length":53,"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":["x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":46,"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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"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":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"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":["b"]},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":94,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"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 * FROM integers, (SELECT SUM(i)) t(sum);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":37,"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":24,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":36,"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},"named_param_map":[]},"column_name_alias":["sum"]},"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 + 1) 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":88,"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":55,"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":23,"subquery":{"node":{"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":49,"query_location_length":10,"column_names":["integers","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["b"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"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 * FROM integers a, integers b JOIN LATERAL (VALUES (a.i)) ss(x) ON (true) ORDER BY a.i, b.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":3,"column_names":["a","i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["b","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":71,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":43,"left":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":26,"query_location_length":10,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"ss","sample":null,"query_location":50,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["a","i"]}]]},"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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 unique2, x.*\nfrom tenk1 a, lateral (select * from int4_tbl b where f1 = a.unique1) 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":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":20,"query_location_length":71,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":25,"query_location_length":7,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"right":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":42,"query_location_length":47,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":50,"query_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":57,"query_location_length":10,"schema_name":"","table_name":"int4_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int4_tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":2,"column_names":["f1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":9,"column_names":["a","unique1"]}},"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 (values(1)) x(lb),\n lateral generate_series(lb,4) x4\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":9,"query_location_length":58,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"TABLE_FUNCTION","alias":"x4","sample":null,"query_location":35,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":2,"column_names":["lb"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"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 42) t(a) cross join lateral (select t.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":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":35,"left":{"type":"SUBQUERY","alias":"t","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","sample":null,"query_location":50,"query_location_length":16,"subquery":{"node":{"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":58,"query_location_length":3,"column_names":["t","a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"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) t(a) join lateral (select t.a + 1) t2(b) 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":31,"query_location_length":45,"left":{"type":"SUBQUERY","alias":"t","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"t2","sample":null,"query_location":44,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":52,"query_location_length":3,"column_names":["t","a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["b"]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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\n array(select distinct i from t order by t.i desc) as a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"a","query_location":9,"query_location_length":49,"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":"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}}]}]},"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":[]}}],"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":"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}}]}}],"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":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":3,"column_names":["t","i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"__array_internal_idx_1","query_location":49,"query_location_length":3,"column_names":["t","i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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 i1.i FROM integers i1, integers i2, integers i3, integers i4 WHERE i1.i=integers.i LIMIT 3\n) top\nFROM integers\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":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":"SUBQUERY","type":"SUBQUERY","alias":"top","query_location":10,"query_location_length":107,"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}}]}]},"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":[]}}],"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}}]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"offset":null,"limit_type":"ROW_COUNT"}],"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":55,"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},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":92,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"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":[]},"where_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":127,"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 DaysToManufacture, StandardCost, (SELECT [\"0\", \"1\", \"2\", \"3\", \"4\"] 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)\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":189,"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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":3,"column_names":["0"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":3,"column_names":["3"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":3,"column_names":["4"]}}]}],"from_table":{"type":"PIVOT","alias":"PivotTable","sample":null,"query_location":149,"query_location_length":61,"source":{"type":"SUBQUERY","alias":"SourceTable","sample":null,"query_location":80,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":17,"column_names":["DaysToManufacture"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"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":149,"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":153,"query_location_length":12,"column_names":["StandardCost"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":17,"column_names":["DaysToManufacture"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}],"star_expr":null,"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":235,"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 row(1) IN (SELECT i FROM integers)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":17,"query_location_length":24,"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":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":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":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM integers s1 INNER JOIN integers s2 ON (SELECT 2*SUM(i)*s1.i FROM integers)=(SELECT SUM(i)*s2.i FROM integers) 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":133,"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":97,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":71,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":52,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"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":["i"]}}]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":4,"column_names":["s1","i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"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"},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":89,"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":97,"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":97,"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":101,"query_location_length":1,"column_names":["i"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":4,"column_names":["s2","i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":114,"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"}},"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 i, (SELECT COUNT(*) FROM (SELECT i1.i FROM integers GROUP BY GROUPING SETS(i1.i)) tbl) 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":125,"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":83,"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":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":32,"query_location_length":56,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":4,"column_names":["i1","i"]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":4,"column_names":["i1","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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":104,"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+i1.i FROM integers) 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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":4,"column_names":["i1","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":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":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, (SELECT i+i1.i FROM integers WHERE i=1) 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":81,"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":39,"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":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["i1","i"]}}]}],"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_EQUAL","alias":"","query_location":45,"query_location_length":3,"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":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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 i, (WITH i2 AS (SELECT 42+i1.i AS j FROM integers) 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":107,"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":65,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":4,"column_names":["i1","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":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":65,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"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":86,"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 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":110,"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":68,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"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":68,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"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":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 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":[]}],"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) IN (SELECT ColID + (col1 + 1) FROM tbl_ProductSales) FROM another_T GROUP BY (col1 + 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":21,"query_location_length":49,"subquery_type":"ANY","subquery":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["ColID"]}},{"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":38,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"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":"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":8,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"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":"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":96,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT SUM(col2) OVER (PARTITION BY SUM(col2) ORDER BY MAX(col1 + ColID) ROWS UNBOUNDED PRECEDING) FROM tbl_ProductSales) FROM another_T t1 GROUP BY col1","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":122,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":15,"query_location_length":91,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"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":48,"query_location_length":4,"column_names":["col2"]}}]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"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":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":67,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":5,"column_names":["ColID"]}}]}}]}}],"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":19,"query_location_length":4,"column_names":["col2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":112,"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":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":135,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":4,"column_names":["col1"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, SUM(a), (SELECT SUM(a)+SUM(t1.b) FROM test) FROM test t1 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":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":"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":["a"]}}]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":35,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":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":["a"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":37,"query_location_length":4,"column_names":["t1","b"]}}]}}]}],"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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":59,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":26,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]]},"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 or v IS NULL) 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":91,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":16,"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":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":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":45,"query_location_length":19,"children":[{"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"]}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":57,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bla"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"s1","sample":null,"query_location":71,"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 * from (select i as j from a group by i) 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":["i"]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (FROM (SELECT 42 a), (SELECT 43 b)) JOIN (SELECT 44 c) ON (true) JOIN (SELECT 45 d) 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":79,"query_location_length":28,"left":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":28,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"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":"JOIN","alias":"","sample":null,"query_location":15,"query_location_length":33,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":20,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":28,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":35,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"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":55,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":63,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"SUBQUERY","alias":"","sample":null,"query_location":84,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":92,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 * FROM create_external_resource('nostatus@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":42,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nostatus@local"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT deleter_function LIKE '%.q.qd_destroy' FROM create_external_resource('qd@local');","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":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":7,"query_location_length":16,"column_names":["deleter_function"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%.q.qd_destroy"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":51,"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":76,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"qd@local"}}}]},"column_name_alias":[],"with_ordinality":"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":"BASE_TABLE","alias":"","sample":null,"query_location":14,"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 constraint_name, unique_constraint_name FROM information_schema.referential_constraints;","json":{"error":false,"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_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":22,"column_names":["unique_constraint_name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":42,"schema_name":"information_schema","table_name":"referential_constraints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","referential_constraints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT current_setting('current_dialect');","json":{"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":"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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"current_dialect"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 duckdb_optimizers() WHERE name='join_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"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_optimizers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"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":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"join_order"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM duckdb_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":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"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_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":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"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, outcome\nFROM duckdb_logs_parsed('ExternalResource') WHERE resource_type = 'scalarcreate@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":9,"column_names":["operation"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":7,"column_names":["outcome"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"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":50,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ExternalResource"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"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":13,"column_names":["resource_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"scalarcreate@local"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT kind, destroy_function FROM duckdb_external_resource_types() WHERE name = 'scratch_bucket';","json":{"error":false,"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":["kind"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":16,"column_names":["destroy_function"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":35,"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":[]},"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":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"scratch_bucket"}}},"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 '0 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":108,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 00:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-12-31 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0 MONTH"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":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 ordinal_position, column_name, data_type FROM information_schema.columns WHERE table_name='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":16,"column_names":["ordinal_position"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":9,"column_names":["data_type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"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":86,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integers"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT table_schema, table_name, constraint_schema, constraint_name\nFROM information_schema.constraint_table_usage\nWHERE table_schema = 'scheme' AND table_name = 'emp'\nORDER BY constraint_name 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":177,"query_location_length":15,"column_names":["constraint_name"]}}]}],"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":17,"column_names":["constraint_schema"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":15,"column_names":["constraint_name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"query_location_length":41,"schema_name":"information_schema","table_name":"constraint_table_usage","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","constraint_table_usage"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":121,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":12,"column_names":["table_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"scheme"}}},{"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":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"emp"}}}]},"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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]) 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":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":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":"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":"t","sample":null,"query_location":61,"query_location_length":19,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]},"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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 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":1,"column_names":["g"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"g","sample":null,"query_location":14,"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":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"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(3) t(i), range(i) t2(j) 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":53,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"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":34,"left":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":29,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}}]},"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 * FROM (SELECT TIMESTAMPTZ '2000-01-01', TIMESTAMPTZ '2000-10-1', NULL) 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":137,"query_location_length":1,"column_names":["s"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"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":118,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":64,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-10-1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":[]},"column_name_alias":["s","e","increment"]},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":99,"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":105,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["e"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":9,"column_names":["increment"]}}]},"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 d FROM generate_series(TIMESTAMP '1992-01-01 00:00:00', TIMESTAMP '1991-06-01 00:00:00', -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":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":30,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1991-06-01 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"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":97,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 MONTH"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":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'::TIMESTAMP, '290309-12-22 (BC) 00:00:00'::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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":98,"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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC) 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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_text('test/sql/table_function/files/nonexistentfile.txt') 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":"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_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":24,"query_location_length":51,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test/sql/table_function/files/nonexistentfile.txt"}}}]},"column_name_alias":[],"with_ordinality":"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, uri, attached_db_type, handle FROM duckdb_external_resources() WHERE name = 'r2';","json":{"error":false,"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":3,"column_names":["uri"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":16,"column_names":["attached_db_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":6,"column_names":["handle"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"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":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"r2"}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXISTS(SELECT * FROM range(10))","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":31,"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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"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":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"column_name_alias":[],"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 * from generate_series(-9223372036854775807, -9223372036854775808, -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":63,"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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775807}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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":[]}]}} +{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integers"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '2021-01-01'::timestamptz - interval '380 days'","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":19,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"380 days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('month', '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":58,"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, era(ts), year(ts), month(ts), day(ts), dayofyear(ts) FROM (VALUES\n ('2024-06-15 12:00:00+00'::TIMESTAMPTZ), ('1970-01-01 00:00:00+00'), ('1900-01-01 12:00:00+00'),\n ('1896-06-15 12:00:00+00'), ('1897-06-15 12:00:00+00'), ('1898-06-15 12:00:00+00'),\n ('1911-06-15 12:00:00+00'), ('1912-06-15 12:00:00+00'), ('0001-01-01 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":7,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"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":25,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":36,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":45,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":60,"query_location_length":2,"column_names":["ts"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":69,"query_location_length":278,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":104,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01 00:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-01 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1896-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":207,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1897-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1898-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":265,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1911-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":293,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1912-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":321,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0001-01-01 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 date_trunc('decade', '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":59,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"decade"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(5784, 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5784}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UTC"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1445}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UTC"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(hash(ts::VARCHAR)) FROM generate_series('1880-01-01 12:00:00+00'::TIMESTAMPTZ, '2180-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":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":11,"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":18,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["ts"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":35,"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":75,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1880-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":114,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2180-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"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":138,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":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 '2019-04-30 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-04-30 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('2024-03-15 12:00:00+00'::TIMESTAMPTZ, '2024-03-25 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-25 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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', '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00-04"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('isoyear', '2024-01-01 12:00:00-05'::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":60,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"isoyear"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-01 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_MS 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":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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('1900-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-01 00:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483648}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2001-02-16 20:38:40"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::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":23,"query_location_length":13,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_localtime();","json":{"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_localtime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select utc_offset, is_dst\nfrom pg_timezone_names() \nwhere name = 'America/Asuncion'","json":{"error":false,"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":["utc_offset"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":6,"column_names":["is_dst"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pg_timezone_names","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"America/Asuncion"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ts, ts::TIMESTAMPTZ, date_part('timezone', ts::TIMESTAMPTZ) FROM (VALUES\n ('2024-01-15 12:00:00'::TIMESTAMP), ('2024-07-15 12:00:00'),\n ('1970-01-15 12:00:00'), ('1970-07-15 12: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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ts"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["ts"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":72,"query_location_length":122,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":104,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-15 12:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-07-15 12:00:00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-15 12:00:00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-07-15 12: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 age('2025-03-09 12:00:00-05'::TIMESTAMPTZ, '2024-03-09 12:00:00-05'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2025-03-09 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-09 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('2024-03-09 12:00:00-05'::TIMESTAMPTZ, '2024-03-12 12:00:00-04'::TIMESTAMPTZ, INTERVAL 1 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-09 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-12 12:00:00-04"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT timezone('Asia/Kathmandu', '12:00:00+00'::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":49,"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":16,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Asia/Kathmandu"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 transitions('Asia/Kolkata');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":"transitions","schema":"","filter":null,"order_bys":{"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Asia/Kolkata"}}}]},"column_name_alias":[],"with_ordinality":"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":[]},"column_name_alias":[],"with_ordinality":"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 t1 LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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 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":[]}],"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 COUNT(DISTINCT 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":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":["h"]}}]}],"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 trigger_name, sql FROM duckdb_triggers() WHERE trigger_name = 'update_body_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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":36,"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":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"update_body_trigger"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT trigger_name, table_name FROM duckdb_triggers() WHERE trigger_name = '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":12,"column_names":["trigger_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["table_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"same_name"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, val 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":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":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 val FROM t_upsert 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":3,"column_names":["val"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":8,"schema_name":"","table_name":"t_upsert","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_upsert"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM t_cte_scope_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"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":15,"schema_name":"","table_name":"t_cte_scope_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_cte_scope_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_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":[]}],"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"triggerdb"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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},"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":[]}],"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":[]}],"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":[]}],"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":[]}],"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":"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);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["audit"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":33,"query_location_length":76,"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":5,"column_names":["old_v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":48,"query_location_length":60,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":48,"query_location_length":28,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":57,"query_location_length":8,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":5,"column_names":["new_v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":80,"query_location_length":28,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":89,"query_location_length":8,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":5,"column_names":["new_v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from person where current_alias = last_year_alias","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":27,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":13,"column_names":["current_alias"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":15,"column_names":["last_year_alias"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9223372036854775807"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5' AS BIGNUM), CAST('-0.5' AS BIGNUM), CAST('.5' AS BIGNUM), CAST('-.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-0.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::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":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":13,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":9223372036854775808}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":18446744073709551615}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 offset 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"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":19,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"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":48,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":16,"column_names":["use_large_bignum"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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('hello' 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":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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","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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::bignum","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483647}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '-21474836460000000000958'::bignum;","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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-21474836460000000000958"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.4999'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-0010.4999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.9'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-0010.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\t'0'::BIT \u003c '10101010'::BIT,\n\t'0'::BIT \u003e '10101010'::BIT,\n\t'0'::BIT \u003c= '10101010'::BIT,\n\t'0'::BIT \u003e= '10101010'::BIT,\n\t'0'::BIT \u003c '00'::BIT,\n\t'00'::BIT \u003e '0'::BIT,\n\t'01'::BIT \u003c '1'::BIT,\n\t'1'::BIT \u003e '01'::BIT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":8,"query_location_length":26,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":37,"query_location_length":26,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":66,"query_location_length":27,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":96,"query_location_length":27,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":99,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":118,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":126,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":129,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":141,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":143,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":149,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":153,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":155,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":164,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":166,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":172,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":176,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":178,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":187,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":189,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":195,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":198,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":200,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":210,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":212,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::BIT as TINYINT);","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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":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 try_cast('00001111'::BIT as TINYINT);","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00001111"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":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 ('0101011'::BIT)","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":8,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0101011"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":7,"query_location_length":20,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["col"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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 '0110'::BIT | '11000'::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":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":13,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0110"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"11000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \u003c\u003c 3 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":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":"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"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 get_bit('101010101010101010'::BIT, 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":37,"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":35,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"101010101010101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 set_bit('011'::BIT, -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":26,"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":20,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"011"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 bitstring('x1'::BIT, 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 '\\x20\\x00\\xFF'::BLOB::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x20\\x00\\xFF"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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('ü' 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":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ü"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":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 '5877642-06-25 (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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5877642-06-25 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 (1) 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-11'::date","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":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5881580-07-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 (365) day","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":18,"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":40,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":365}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-02-29'::DATE::VARCHAR == '1992-02-29'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-02-29"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-02-29"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\\09\\20'::DATE::VARCHAR == '1992-09-20'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992\\09\\20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-09-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 '1993-03-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1993-03-31"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-09-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1993-09-30"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-03-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-31"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-09-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-09-30"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-01-01'::DATE::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":9,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '291000-01-01'::DATE::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"291000-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('' 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":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-29"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 try_cast('infinity' 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":28,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 d, d::VARCHAR FROM bc_dates 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["d"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":8,"schema_name":"","table_name":"bc_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bc_dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1992-01'::DATE","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 32768::DECIMAL(18,0)::SMALLINT","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":10,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":32768}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(18,3), 100::INTEGER::DECIMAL(3,0), (-100)::INTEGER::DECIMAL(3,0), 0::INTEGER::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::BIGINT::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":18,"query_location_length":14,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::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":17,"query_location_length":14,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.25::FLOAT::DECIMAL(3,2)","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":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":125}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::FLOAT::DECIMAL(4,0)","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":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":922337203685477580,"lower":14757395258967641292}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(37,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":15,"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":922337203685477580,"lower":14757395258967641292}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * '10.0'::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":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.33, 10.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":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":133}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT typeof(decimal_average(v)) FROM int16_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"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":9,"schema_name":"","table_name":"int16_dec","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int16_dec"]}},"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(38,37)::DECIMAL(2,1), 1.0::DECIMAL(38,37)::DECIMAL(9,1), 1.0::DECIMAL(38,37)::DECIMAL(18,1), 1.0::DECIMAL(38,37)::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":26,"query_location_length":14,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":132,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":134,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(18,1)::DECIMAL(2,1), 1.0::DECIMAL(18,1)::DECIMAL(8,1), 1.0::DECIMAL(18,1)::DECIMAL(17,1), 1.0::DECIMAL(18,1)::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":25,"query_location_length":14,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":17}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":128,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":113,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":115,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":130,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(12.34::DECIMAL(4,2), 3.5::DECIMAL(4,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":"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":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":36,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":2}},"is_null":false,"value":1234}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":35}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), 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":59,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":2}},"is_null":false,"value":1234}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":35}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 cast(9.5 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":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":95}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(4,0)","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":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1E3"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-9999999999'::DECIMAL","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1e-9999999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":15,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-5e-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-8'::DECIMAL(18,6)","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5.5e-8"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 5000000000000000000000000000000000000.0::DECIMAL(38,1) * 2::DECIMAL(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":72,"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":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":39,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":38,"scale":1}},"is_null":false,"value":{"upper":2710505431213761085,"lower":343699775700336640}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_left + add_right FROM decimal_stats_overflow","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":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":8,"column_names":["add_left"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":9,"column_names":["add_right"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":22,"schema_name":"","table_name":"decimal_stats_overflow","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimal_stats_overflow"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(100 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":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":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 TRY_CAST(1000000 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":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":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 TRY_CAST('10000000000'::DOUBLE 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":48,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":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 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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":421}}}]},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":9,"scale":1}},"is_null":false,"value":-102398141}}}]},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":15,"scale":5}},"is_null":false,"value":104918515712345}}}]},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":23,"scale":5}},"is_null":false,"value":{"upper":555,"lower":1886451436380265465}}}}]},{"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,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":-4.923840923840392e28}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":26,"query_location_length":9,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1234567890.1235 AS DECIMAL (13, 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":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":15,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":14,"scale":4}},"is_null":false,"value":12345678901235}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":15,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 decimals inner join decimals2 on (decimals.i = decimals2.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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":50,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"decimals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimals"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":9,"schema_name":"","table_name":"decimals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimals2"]}},"condition":{"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":10,"column_names":["decimals","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":11,"column_names":["decimals2","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 decimals WHERE d='0.1'::DECIMAL(3,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":"decimals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimals"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},"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":28,"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":20,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":33,"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":55,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-99999999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":43,"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":99,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-99999999999999999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":63,"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":164,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-9999999999999999999999999999999999999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":166,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('1049578239572094512.32415'::DECIMAL(30,10), 0)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -1)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -2)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -3)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -4)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -5)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -6)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -7)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -8)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -9)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -10)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -11)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -12)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -13)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -14)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -15)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -16)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -18)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -19)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -20)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -19842)::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"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":40,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":129,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":54,"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":108,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":110,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":198,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":144,"query_location_length":54,"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":177,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":179,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":200,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":267,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":213,"query_location_length":54,"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":246,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":248,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":264,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-3}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":269,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":336,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":282,"query_location_length":54,"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":315,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":288,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":317,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":325,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":328,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":333,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-4}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":338,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":405,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":351,"query_location_length":54,"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":384,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":357,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":386,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":394,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":397,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":402,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-5}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":407,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":474,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":420,"query_location_length":54,"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":453,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":426,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":455,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":463,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":466,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":471,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-6}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":476,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":543,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":489,"query_location_length":54,"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":522,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":495,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":524,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":532,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":535,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":540,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-7}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":545,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":612,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":558,"query_location_length":54,"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":591,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":564,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":593,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":601,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":604,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":609,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-8}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":614,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":681,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":627,"query_location_length":54,"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":660,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":633,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":662,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":670,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":673,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":678,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-9}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":683,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":751,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":696,"query_location_length":55,"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":729,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":702,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":731,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":739,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":742,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":747,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-10}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":753,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":821,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":766,"query_location_length":55,"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":799,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":772,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":801,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":809,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":812,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":817,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-11}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":823,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":891,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":836,"query_location_length":55,"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":869,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":842,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":871,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":879,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":882,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":887,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-12}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":893,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":961,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":906,"query_location_length":55,"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":939,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":912,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":941,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":949,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":952,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":957,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-13}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":963,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1031,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":976,"query_location_length":55,"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":1009,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":982,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1011,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1019,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1022,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1027,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-14}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1033,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1101,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1046,"query_location_length":55,"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":1079,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1052,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1081,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1089,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1092,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1097,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-15}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1103,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1171,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1116,"query_location_length":55,"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":1149,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1122,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1151,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1159,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1162,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1167,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-16}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1173,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1241,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1186,"query_location_length":55,"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":1219,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1192,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1221,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1229,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1232,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1237,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-18}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1243,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1311,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1256,"query_location_length":55,"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":1289,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1262,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1291,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1299,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1302,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1307,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-19}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1313,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1381,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1326,"query_location_length":55,"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":1359,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1332,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1361,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1369,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1372,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1377,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-20}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1383,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1454,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1396,"query_location_length":58,"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":1429,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1402,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1431,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1439,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1442,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1447,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-19842}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1456,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), 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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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.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":21,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1.234499999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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='' FROM m","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":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"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},"named_param_map":[]}]}} +{"sql":"select ['happy','ok','ok']::mood[]","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":"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":8,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"happy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ok"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ok"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":28,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(NULL::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":22,"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":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, robots.name from person inner join robots on (person.current_mood = robots.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":11,"column_names":["robots","name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":44,"query_location_length":64,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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":55,"query_location_length":6,"schema_name":"","table_name":"robots","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["robots"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":41,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":19,"column_names":["person","current_mood"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":19,"column_names":["robots","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 person_pet_den WHERE (person_mood == pet_mood) IS 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":14,"schema_name":"","table_name":"person_pet_den","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person_pet_den"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":61,"query_location_length":7,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":11,"column_names":["person_mood"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":8,"column_names":["pet_mood"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM person","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":"","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 TRY_CAST ('ok' as mood)","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":17,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ok"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":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 a from t1, t2 where t1.a = t2.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"]}],"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","b"]}},"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_tz = 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":[]}],"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_tz"]},"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, SUM(i) FROM floats GROUP BY f ORDER BY f;","json":{"error":false,"statements":[{"node":{"type":"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":["f"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["f"]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["f"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT f FROM floats ORDER BY f","json":{"error":false,"statements":[{"node":{"type":"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":1,"column_names":["f"]}}]}],"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, SUM(i) OVER (PARTITION BY f) FROM floats ORDER BY f","json":{"error":false,"statements":[{"node":{"type":"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":["f"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["f"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":28,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["f"]}],"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":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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 'GEOMETRYCOLLECTION Z (POINT Z (1 1 2), LINESTRING (0 0, 1 1))'::GEOMETRY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":63,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"GEOMETRYCOLLECTION Z (POINT Z (1 1 2), LINESTRING (0 0, 1 1))"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'MULTIPOLYGON(((0 0, 4 0, 4 4, 0 4, 0 0)), EMPTY, ((5 5, 7 5, 7 7, 5 7, 5 5)))'::GEOMETRY::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":79,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MULTIPOLYGON(((0 0, 4 0, 4 4, 0 4, 0 0)), EMPTY, ((5 5, 7 5, 7 7, 5 7, 5 5)))"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(4326);","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(0 1)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":14,"catalog":"","schema":"","type_name":"GEOMETRY","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4326}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 be_lines_wkb 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":12,"schema_name":"","table_name":"be_lines_wkb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["be_lines_wkb"]}},"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":{"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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ä POINT(0 1)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 order by id 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":30,"query_location_length":2,"column_names":["id"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT vertex_extract('POINT(1 2)'::GEOMETRY, 'X'), vertex_extract('POINT(1 2)'::GEOMETRY, '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":43,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(1 2)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"X"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":43,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(1 2)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 (NULL::GEOMETRY).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":18,"children":[{"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 stats(geom.x) FROM pts_2d_only LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":11,"schema_name":"","table_name":"pts_2d_only","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pts_2d_only"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 1080863910568919040::HUGEINT * 4642275147320176030871715840::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":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":"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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1080863910568919040}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":28,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":251658240,"lower":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 85070591730234615865843651857942052865::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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":4611686018427387904,"lower":1}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::HUGEINT * 10376293541461622783::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":61,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":10376293541461622783}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":20,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":10376293541461622783}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('-170141183460469231731687303715884105729'::DOUBLE 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":67,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-170141183460469231731687303715884105729"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 + 42::HUGEINT;","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":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 - 42::HUGEINT, -3::HUGEINT - 5::HUGEINT, 12::HUGEINT-(-12::HUGEINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]},{"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":36,"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":38,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]},{"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"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":78,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 // 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"170141183460469231731687303715884105727"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 170141183460469231731687303715884105726 - (-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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551614}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 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":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":7,"query_location_length":39,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551615}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 -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":84,"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":0}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":40,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":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 -170141183460469231731687303715884105728 % -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":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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":0}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":40,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":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 CONCAT('hello number ', 100::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":37,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello number "}}},{"name":"","expression":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":"\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":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":27}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 1::HUGEINT \u0026 3::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":23,"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":8,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::HUGEINT, '130'::HUGEINT, '924829852'::HUGEINT","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"7"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"130"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"924829852"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::HUGEINT, (-42)::SMALLINT::HUGEINT, (-42)::INTEGER::HUGEINT, (-42)::BIGINT::HUGEINT, (-42)::FLOAT::HUGEINT, (-42)::DOUBLE::HUGEINT;","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":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":119,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":112,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":114,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":121,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":143,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":135,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":137,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":145,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2147483648}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e5'::hugeint;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":302,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":295,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":304,"query_location_length":7,"catalog":"","schema":"","type_name":"hugeint","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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.05 WEEK';","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.05 WEEK"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5 MICROSECONDS';","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.5 MICROSECONDS"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 days, interval 2 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":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":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 week, interval 3 weeks;","json":{"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_weeks","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":16,"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":"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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' MICROSECOND;","json":{"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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' MICROSECOND;","json":{"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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1.5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 MICROSECOND'::INTERVAL;","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5 MICROSECOND"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 MILLENIUM'::INTERVAL","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5 MILLENIUM"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":21,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1.5 CENTURY"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('3 doopiedoos' 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":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 doopiedoos"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":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 INTERVAL '2Y 1 month 02:01:03.020016';","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":16,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2Y 1 month 02:01:03.020016"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '05:12:34.567890' as test_interval;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"test_interval","query_location":7,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"05:12:34.567890"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' 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":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":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"90"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '';","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":16,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '100000000000000000days';","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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000000000000000days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 mils 2 c 1 decades 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":41,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 mils 2 c 1 decades 3 quarter"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 agob'::INTERVAL;","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100 months agob"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '5' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '11' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"11"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '5' SECOND","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 DAY' + '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":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:15:37.123456-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 \u003e= TO_HOURS(-44) AND x \u003c= 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-05-11 4:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-05-11 4:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-05-11 4:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":179,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":209,"query_location_length":40,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":209,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":1,"column_names":["x"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":214,"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":223,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-44}}}]}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":232,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":1,"column_names":["x"]},"right":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":44}}}]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select interval '1 day' - interval '1 hour' = interval '23 hours';","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":"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 day"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 hour"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"23 hours"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 [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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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]","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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] \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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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] = [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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 NULL \u003c []","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":[]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \u003c\u003e []","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":[]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 = r FROM list_int_empty","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":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'] = ['duck', 'goose']","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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"right":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},"named_param_map":[]}]}} +{"sql":"SELECT ['duck'] \u003e ['duck', 'goose']","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"right":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},"named_param_map":[]}]}} +{"sql":"SELECT NULL \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":30,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":15,"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":21,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 NULL \u003c\u003e [{'x': 'duck', 'y': 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":31,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":16,"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":22,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l = r FROM list_of_struct","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":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]::INT[1], [43]::INT[1], NULL::INT[1], [44]::INT[1], NULL::INT[1], [45]::INT[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":90,"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":18,"query_location_length":8,"child":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":29,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":34,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":57,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":44}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":62,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":76,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"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":85,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":45}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":90,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \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":"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":"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 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":28,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l IS DISTINCT FROM r FROM list_int","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":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":"SELECT ['duck'] 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":38,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":38,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":49,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 l[3] FROM 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"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 l[0:1] FROM test;","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":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}],"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 UNNEST(l)['a']['a1'] FROM b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":21,"query_location_length":6,"children":[{"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"]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a1"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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.child_stats.min, s.child_stats.max, s.child_stats.has_null, s.has_null FROM (SELECT STATS([i]) 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":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"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":22,"column_names":["s","child_stats","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":10,"column_names":["s","has_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":85,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":93,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"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":100,"query_location_length":1,"column_names":["i"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":111,"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 [-100::SMALLINT, 50000::USMALLINT];","json":{"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_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":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":12,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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] 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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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]], 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":38,"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":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":15,"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":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":40,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 4]], [[5, 6], [7, 8]]]::int[2][2][2], 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":75,"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":50,"query_location_length":14,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":15,"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":16,"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":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":77,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 UNNEST(data) 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":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":14,"query_location_length":4,"column_names":["data"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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 nullif(unnest([1, 2]), 0) AS tag, count(*)\nFROM range(1)\nGROUP BY tag\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":86,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["tag"]}],"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 tag\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":106,"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":3,"column_names":["tag"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT r, a.value\nFROM t, UNNEST(a) AS a(value)\nORDER BY r, a.value","json":{"error":false,"statements":[{"node":{"type":"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":["r"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":7,"column_names":["a","value"]}}]}],"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":7,"column_names":["a","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":18,"query_location_length":29,"left":{"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"]}},"right":{"type":"TABLE_FUNCTION","alias":"a","sample":null,"query_location":26,"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":33,"query_location_length":1,"column_names":["a"]}}]},"column_name_alias":["value"],"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 u FROM lists, UNNEST(l) AS unnest(u) ORDER BY l, u;","json":{"error":false,"statements":[{"node":{"type":"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":["l"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["u"]}}]}],"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":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":34,"left":{"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"]}},"right":{"type":"TABLE_FUNCTION","alias":"unnest","sample":null,"query_location":21,"query_location_length":22,"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":28,"query_location_length":1,"column_names":["l"]}}]},"column_name_alias":["u"],"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 MAP(['a', 'b', 'c'], [1, 2, NULL])::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":"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], ['name'] ) 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":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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["i"]}}]}},{"name":"","expression":{"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"name"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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 MAP(['x', 'y', '1', '2', '3', '4'], i) FROM align_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":38,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":9,"schema_name":"","table_name":"align_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["align_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select MAP(a, b) FROM ( VALUES\n\t(NULL, ['b', 'c']),\n\t(NULL::INT[], NULL),\n\t(NULL::INT[], NULL::VARCHAR[]),\n\t(NULL::INT[], ['a', 'b', 'c']),\n\t(NULL, ['longer string than inlined', 'smol']),\n\t(NULL, NULL),\n\t([1,2,3], NULL),\n\t([1,2,3], ['z', 'y', 'x']),\n\t([1,2,3], NULL::VARCHAR[]),\n) 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":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":"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":14,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":22,"query_location_length":259,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":60,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":"VARCHAR","children":[]}]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":113,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"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":123,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":148,"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":149,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"longer string than inlined"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"smol"}}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":206,"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":207,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":224,"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":225,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":233,"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":234,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"z"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":253,"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":254,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":258,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":266,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":262,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":268,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":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 array_value(1, 2, 3)::INT[4]","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":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":29,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":4}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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]::INT[3])::INT;","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":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":17,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 (array_value(NULL, 'abc')), (array_value(NULL, 'defg')), (NULL)) ORDER BY 1 DESC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","sample":null,"query_location":14,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":24,"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":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":63,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"defg"}}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]]},"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 test_array JOIN test_array AS t2 ON t2.c1 = test_array.c1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 list(array_value({'foo': [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":32,"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":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":"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":"foo","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"foo","query_location":32,"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":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 arrays","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":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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT array_value(a, 42), typeof(array_value(a, 42)) FROM t4;","json":{"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_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":19,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":34,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":2,"schema_name":"","table_name":"t4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t4"]}},"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 INT[2][2]) FROM (VALUES ([[1,2],[3,4]]), ([[5,6],[7,8]])) 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":24,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":true}],"from_table":{"type":"SUBQUERY","alias":"t","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":"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":46,"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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"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":64,"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":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"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,NULL,3], [1,2]]' as INTEGER[3][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":54,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[NULL, [1,NULL,3], [1,2]]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":47,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":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 UNNEST(doubles_dynamic) FROM doubles_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":23,"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":15,"column_names":["doubles_dynamic"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":13,"schema_name":"","table_name":"doubles_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["doubles_table"]}},"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], [3, 4]]::BIGINT[]","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":10,"child":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":7,"query_location_length":21,"children":[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), 'quantile', [0.25, 0.5, 0.75]) FROM range(1, 11) 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":49,"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"quantile"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":39,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":75}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":62,"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":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]},"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(list_value(-i)), max(list_value(i+2)) 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":19,"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":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":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":23,"query_location_length":1,"column_names":["i"]}}]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":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":43,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":54,"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":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 (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":15,"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":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), 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":"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":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":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 [{ parent: { child: { t:'abc' } }, n: 42 }][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":48,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":50,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":8,"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":"parent","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"parent","query_location":18,"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":"child","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"child","query_location":27,"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":"t","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"t","query_location":31,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}}]}}]}},{"name":"n","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"n","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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::HUGEINT), 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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(a, 1) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":"SELECT flatten(str) FROM struct_data_two_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":12,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["str"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":21,"schema_name":"","table_name":"struct_data_two_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_data_two_lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (LIST_VALUE(42))[1]","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":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":19,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 d[0:0] FROM ducks","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":["d"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":5,"schema_name":"","table_name":"ducks","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ducks"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT hello[NULL:NULL+NULL] 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":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["hello"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}]}],"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":"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[(-2147483646-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":20,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483646}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}]}],"from_table":{"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"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select a[:stop: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":12,"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":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":4,"column_names":["stop"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["step"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"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 a[-9223372036854775808:9223372036854775807: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":47,"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":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9223372036854775807}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":4,"column_names":["step"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"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:3];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":11,"query_location_length":5,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,6,7,8,9,10,11,12,13,14,15,16,17])[1:17:20];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":52,"query_location_length":9,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":14}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":17}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":17}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 a[start:stop:step] FROM null_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":17,"children":[{"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":5,"column_names":["start"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["stop"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["step"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"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 UNNEST(l1) u1, UNNEST(l2) u2 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":"FUNCTION","type":"FUNCTION","alias":"u1","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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"u2","query_location":22,"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":29,"query_location_length":2,"column_names":["l2"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":132,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":41,"query_location_length":57,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l1","query_location":49,"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":54,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":65,"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":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":103,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l2","query_location":111,"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":116,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":127,"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":136,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 LIST(42) 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":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":12,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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 SUM(ue) FROM (SELECT UNNEST(le) ue FROM (SELECT g, LIST(e) le from list_data GROUP BY g ORDER BY g) xx) 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":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":["ue"]}}]}],"from_table":{"type":"SUBQUERY","alias":"xy","sample":null,"query_location":20,"query_location_length":91,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"ue","query_location":28,"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":35,"query_location_length":2,"column_names":["le"]}}]}],"from_table":{"type":"SUBQUERY","alias":"xx","sample":null,"query_location":47,"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":105,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"le","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":["e"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"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":[]},"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() 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":8,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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 UNNEST(a) ua FROM (VALUES (LIST_VALUE(1, 2, 3, 4)), (LIST_VALUE()), (LIST_VALUE(NULL::INTEGER)), (LIST_VALUE(42))) lv(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"ua","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":["a"]}}]}],"from_table":{"type":"SUBQUERY","alias":"lv","sample":null,"query_location":25,"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":"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":34,"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":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"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":[]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":91,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"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":116,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT MAP(list_value(1, NULL, 3), list_value(6, 5, 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":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":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 MAP(k, v) FROM null_values_list;","json":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":16,"schema_name":"","table_name":"null_values_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_values_list"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from hugeint_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":"hugeint_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeint_key"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from decimal_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":"decimal_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimal_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[(1,2), (3,4)], ARRAY[(5,6), (7,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":58,"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":19,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}]}},{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":45,"query_location_length":19,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT MAP_FROM_ENTRIES(ARRAY[([{'a':5, 'b':7}, {'a':5, 'b':7}], 2), ([{'a':5, 'b':7}, {'a':5, 'b':8}], 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":101,"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":83,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":37,"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":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":32,"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":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":37,"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":70,"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":71,"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":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"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":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 MAP(list_value(), list_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":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":11,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([3,4,5], ['a', 'b', 'c']), map([1], ['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":58,"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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":32,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}}]}},{"name":"","expression":{"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":59,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(x, y, z) from tbl 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":19,"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":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["z"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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_NOTEQUAL","alias":"","query_location":42,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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"]}}]},{"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}},{"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":[]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DESC"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NULLS LAST"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 MIN(s), MAX(s) FROM structs","json":{"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"]}}]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"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 (SELECT {'a': 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":17,"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":"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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 e, STRUCT_EXTRACT(STRUCT_PACK(xx := e//2), 'xx') as s FROM struct_data WHERE e \u003e 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":["e"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":10,"query_location_length":45,"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":25,"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":"xx","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"xx","query_location":43,"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":43,"query_location_length":1,"column_names":["e"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xx"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":84,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["e"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT STRUCT_EXTRACT(e) 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":17,"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":["e"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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}) FROM t_struct_constant;","json":{"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_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":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":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":17,"schema_name":"","table_name":"t_struct_constant","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_struct_constant"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select struct_values((10, '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":28,"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":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":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"SELECT\n NULL IS DISTINCT FROM NULL,\n NULL IS NOT DISTINCT FROM NULL,\n NULL IS DISTINCT FROM 42,\n NULL IS NOT DISTINCT FROM 42,\n 42 IS DISTINCT FROM NULL,\n 42 IS NOT DISTINCT FROM NULL,\n 42 IS DISTINCT FROM 42,\n 42 IS NOT DISTINCT FROM 42,\n 42 IS DISTINCT FROM 43,\n 42 IS NOT DISTINCT FROM 43","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":11,"query_location_length":26,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":43,"query_location_length":30,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":79,"query_location_length":24,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":109,"query_location_length":28,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":143,"query_location_length":24,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":173,"query_location_length":28,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":207,"query_location_length":22,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":207,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":235,"query_location_length":26,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":267,"query_location_length":22,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":287,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":295,"query_location_length":26,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":295,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":319,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT cast(a AS BIGINT) 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":17,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":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 i::UTINYINT 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::INTEGER 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":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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"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 i::DECIMAL(38,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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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::UTINYINT, 10000::SMALLINT]);","json":{"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":"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 hugeints 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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":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":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(i AS BIGINT) 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":52,"query_location_length":1,"column_names":["i"]}}]}],"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":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"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(9,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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"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 USMALLINT)::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":64,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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::VARCHAR 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"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},"named_param_map":[]}]}} +{"sql":"SELECT TRY_CAST(i AS DECIMAL(38,29))::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":69,"query_location_length":1,"column_names":["i"]}}]}],"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":7,"query_location_length":29,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"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 TRY_CAST(i AS UBIGINT)::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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"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(3,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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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 1.25::FLOAT::NUMERIC, 1.25::FLOAT::NUMERIC()","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":11,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":125}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":125}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":9,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 UBIGINT) 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":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":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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(9,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":55,"query_location_length":1,"column_names":["i"]}}]}],"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":8,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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 typeof(1::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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i::INTEGER 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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(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":55,"query_location_length":1,"column_names":["i"]}}]}],"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":8,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"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 TRY_CAST(i AS TINYINT) 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":true}],"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::FLOAT 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":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":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":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":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,0))::UHUGEINT 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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(i AS INTEGER) 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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,0)::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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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 TINYINT) 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":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":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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(3,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":59,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":11,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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::UINTEGER 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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 s::UTINYINT 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":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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 DECIMAL(18,16))::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":71,"query_location_length":1,"column_names":["i"]}}]}],"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":7,"query_location_length":29,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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 cast (null as u array);","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":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":1,"catalog":"","schema":"","type_name":"u","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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({})","json":{"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":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"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":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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': struct_pack(), 'b': 1}, [struct_pack(), struct_pack()], typeof({'a': 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":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":"FUNCTION","type":"FUNCTION","alias":"a","query_location":13,"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":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":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":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":[]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"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":76,"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":"FUNCTION","type":"FUNCTION","alias":"a","query_location":82,"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":[]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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).a FROM b","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":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["c"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"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 remap_struct({'i': 1, 'j': 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":72,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":15,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"v1","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"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":68,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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(*), COUNT(j), SUM(j)\nFROM (\n\tSELECT UNNEST(remap_struct(s, NULL::ROW(j INTEGER)[], {'list': ROW('list', {'j': 'i'})}, NULL), recursive := True) FROM large_list\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":[]},{"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":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":31,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":39,"query_location_length":135,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":56,"query_location_length":80,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":14,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"j","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"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":"list","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"list","query_location":105,"query_location_length":23,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"list"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"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":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":123,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":151,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":162,"query_location_length":10,"schema_name":"","table_name":"large_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["large_list"]}},"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(*), COUNT(j), SUM(j)\nFROM (\n\tSELECT UNNEST(remap_struct(s, NULL::ROW(j INTEGER)[], {'list': ROW('array', {'j': 'i'})}, NULL), recursive := True) FROM large_list\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":[]},{"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":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":31,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":39,"query_location_length":136,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":108,"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":56,"query_location_length":81,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":14,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"j","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"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":"list","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"list","query_location":105,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"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":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":124,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":152,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":163,"query_location_length":10,"schema_name":"","table_name":"large_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["large_list"]}},"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, CASE WHEN i%2=0 THEN {'i': [1,2,3]} ELSE {'i': NULL} 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":56,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":"i","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"i","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":57,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":72,"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":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]},"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': NULL, 'j': 'hello'}::ROW(i BIGINT, j 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":26,"child":{"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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":24,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"j","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::ROW(i BIGINT, j VARCHAR) FROM structs","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":26,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":16,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"j","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"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 {'x': 1} \u003c= {'x': 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 {'x': 1} \u003e= {'x': 2}","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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l \u003e= r FROM struct_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":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 NULL = {'x': '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":20,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"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":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":20,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'}","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":20,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"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":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":20,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 \u003c\u003e {'x': 'duck', 'y': 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":29,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":21,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l \u003c= r FROM struct_str_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":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 {'x': 1, 'y': {'a': 'duck', 'b': 1.5}} \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":46,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 {'x': 1, 'y': {'a': 'duck', 'b': 1.5}} \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":46,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 {'x': 1, 'y': ['duck', 'somateria']} \u003c {'x': 1, 'y': ['duck', 'somateria']}","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":75,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":60,"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":61,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\u003e {'x': 1, 'y': ['duck', 'somateria']}","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":76,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":61,"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":62,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 list_in_struct","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":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({'a': 2, 'b': NULL}, s) 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":37,"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":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":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 struct_contains(ROW(1, 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":32,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_contains(ROW(c0, c1, c2, c3), 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":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":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":27,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":2,"column_names":["c2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["c3"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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 struct_contains(ROW(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":50,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 s 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":"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":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 NULL 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":35,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_int","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":"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 {'x': 1, 'y': ['duck', 'somateria']} IS NOT 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_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":94,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"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":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":79,"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":80,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"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 \u003c 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":6,"column_names":["rhs","id"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":51,"query_location_length":47,"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_LESSTHAN","alias":"","query_location":77,"query_location_length":21,"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":89,"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 * FROM a RIGHT JOIN b ON a.id\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":27,"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_GREATERTHAN","alias":"","query_location":32,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"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":"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 struct_position(ROW(1, 2, 3), 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":34,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 struct_position(ROW(NULL, 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":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_position(ROW([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":41,"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":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":27,"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":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i.a, i.c FROM test_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":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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM a ORDER BY (b).i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":25,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":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 row()::STRUCT, struct_pack() = row();","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":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":6,"catalog":"","schema":"","type_name":"STRUCT","children":[]}}},"try_cast":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":[]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":[]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(t.c) FROM (SELECT row(1, 'a') AS c UNION ALL SELECT row(2, 'b')) t 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"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":["t","c"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":24,"query_location_length":54,"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":"c","query_location":32,"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":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 1 from VALUES ((NULL, 1, NULL), (5, 6, 7)) t(a, b) where a\u003c\u003eb;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"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":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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}]]},"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_NOTEQUAL","alias":"","query_location":66,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"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 column_name, column_type FROM (DESCRIBE SELECT unnest([{'a': 12, 'b': {'bb': {'bbb': 12}}}], recursive := true, max_depth := 3, 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":125,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":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":61,"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":62,"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":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":68,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":77,"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":"bb","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"bb","query_location":84,"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":"bbb","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"bbb","query_location":92,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}}]}}]}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":113,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"max_depth","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"max_depth","query_location":132,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"keep_parent_names","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"keep_parent_names","query_location":156,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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': {'c': 88, 'd': 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":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":"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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":29,"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":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":88}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 UNNEST({'a': 44, 'b': 88}), UNNEST([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":"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":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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":44}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":29,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":88}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 UNNEST(s), -s.b AS id FROM tbl_structs UNION ALL SELECT s.a, s.b, s.b FROM tbl_structs ORDER BY id;","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":103,"query_location_length":2,"column_names":["id"]}}]}],"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":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":["s"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"id","query_location":18,"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":19,"query_location_length":3,"column_names":["s","b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":11,"schema_name":"","table_name":"tbl_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_structs"]}},"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":63,"query_location_length":3,"column_names":["s","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":3,"column_names":["s","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":11,"schema_name":"","table_name":"tbl_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_structs"]}},"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, data_type\nFROM information_schema.columns\nWHERE table_name = 't_defaults'\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":119,"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":14,"column_names":["column_default"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":9,"column_names":["data_type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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":84,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t_defaults"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '11'::TIME","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, DATE_PART(['millisecond', 'microsecond', 'epoch'], tns)\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":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":55,"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":22,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"millisecond"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"microsecond"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":3,"column_names":["tns"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"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 '1969-12-31 23:59:59.000000001'::TIMESTAMP_NS::TIME_NS t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"t","query_location":52,"query_location_length":9,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1969-12-31 23:59:59.000000001"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"TIME_NS","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2021-08-20'::TIME;","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":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '01:00:00'::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":17,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '23:59:59.999999' + interval (1) month","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"23:59:59.999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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:70.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14:42:70.500"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"11:11:"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":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 DATE '1992-01-01'::TIMESTAMP_S","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":13,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-01-01 01:03:20.45432'::TIMESTAMP::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1000-01-01 01:03:20.45432"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ARBITRARY(tstz), FIRST(tstz), LAST(tstz)\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":15,"function_name":"arbitrary","schema":"","filter":null,"order_bys":{"type":"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":["tstz"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":30,"query_location_length":4,"column_names":["tstz"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":10,"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":42,"query_location_length":4,"column_names":["tstz"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"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 isinf(ts), isinf(tstz), isinf(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":9,"function_name":"isinf","schema":"","filter":null,"order_bys":{"type":"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":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":11,"function_name":"isinf","schema":"","filter":null,"order_bys":{"type":"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":["tstz"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":9,"function_name":"isinf","schema":"","filter":null,"order_bys":{"type":"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":2,"column_names":["dt"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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 timestamp '1970-01-01 00:00Z';","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":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01 00:00Z"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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/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":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":["t"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["t"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"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 TIMESTAMP '100000-01-01 00:00:01.5'::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":7,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000-01-01 00:00:01.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '90000-01-19 03:14:07.999999'::TIMESTAMP_US::TIMESTAMP_NS","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":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"90000-01-19 03:14:07.999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_US","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(*), sec from timestamp group by sec order by sec;","json":{"error":false,"statements":[{"node":{"type":"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":3,"column_names":["sec"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["sec"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":3,"column_names":["sec"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '2008-01-01 00:00:11.1'::TIMESTAMP_MS = '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":74,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2008-01-01 00:00:11.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2008-01-01 00:00:11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-21 (BC) 12:59:59.999999'::timestamp","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-21 (BC) 12:59:59.999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) hour","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10 04:00:54.775806"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-05-25 04:55:03.382494 UTC"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1111-11-"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10 04:00:54.775806"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 timestamptz '2020-12-31 21:25:58.745232-0215';","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":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232-0215"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(CHARACTER VARYING 'text');","json":{"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":"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":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"text"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":17,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 - 10::UHUGEINT + 10::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"340282366920938463463374607431768211455"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 % 20::UHUGEINT, 90::UHUGEINT % 20::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":39,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":90}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::UHUGEINT \u003c\u003e '5'::UHUGEINT, '5'::UHUGEINT \u003c\u003e '18446744073709551621'::UHUGEINT","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":39,"query_location_length":49,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"18446744073709551621"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '0'::UHUGEINT;","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"340282366920938463463374607431768211455"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::UHUGEINT::INTEGER;","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":17,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483647}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1329227995784915872903807060280344576"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1267650600228229401496703205376"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},"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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1080863910568919040}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":251658240}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551615}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":10376293541461622783}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":10376293541461622783}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(u.num) 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":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":11,"query_location_length":5,"column_names":["u","num"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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 u.i32, u.str, 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","i32"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["u","str"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":5,"column_names":["u","f32"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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(f1 VARCHAR, t DOUBLE, f2 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":62,"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":27,"query_location_length":41,"child":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":39,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"f1","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"t","query_location":49,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]},{"class":"TYPE","type":"TYPE","alias":"f2","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.a FROM tbl1 WHERE u.a 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","a"]}],"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","a"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT union_extract(u, 'c') 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT union_tag('foo'::UNION(num INT, str 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":45,"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":22,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":34,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(a), a FROM tbl ORDER BY a 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":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"]}}]},{"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 enum_first(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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_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":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"]}}]}}]}],"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 union_tag(union_value(str := 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":"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":17,"query_location_length":24,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"str","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"str","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 (200)::UTINYINT - (201)::USMALLINT;","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":12,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":201}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(100::USMALLINT)","json":{"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":"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":14,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::USMALLINT;","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"255"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::USMALLINT * 100::DECIMAL(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":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":10,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '65536'::USMALLINT","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"65536"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::UTINYINT","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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9223372036854775807}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::USMALLINT","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":11,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::USMALLINT","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":11,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::USMALLINT::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":12,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::UINTEGER::BIGINT","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":11,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.32)::DECIMAL::USMALLINT","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":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":8,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":7,"scale":2}},"is_null":false,"value":6553532}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.32)::REAL::UBIGINT","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":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":13,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":12,"scale":2}},"is_null":false,"value":429496729632}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\\x00\\x11\\x223DUfw\\x88\\x99\\xAA\\xBB\\xCC\\xDD\\xEE\\xFF\\x00'::BLOB as uuid) as test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"test","query_location":7,"query_location_length":79,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":55,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x00\\x11\\x223DUfw\\x88\\x99\\xAA\\xBB\\xCC\\xDD\\xEE\\xFF\\x00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":4,"catalog":"","schema":"","type_name":"uuid","children":[]}}},"try_cast":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 '00000000-0000-0000-0000-000000000000'::UUID::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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00000000-0000-0000-0000-000000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"UUID","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.123456789'::DECIMAL(10,9)::VARIANT::DECIMAL(10,8)","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":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.123456789"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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(null),\n\t\t('test'),\n\t\t(null)\n\t) t(a)\n)\nselect\n\ta::UNION(a INTEGER, b BOOLEAN, c VARCHAR)::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":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":32,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":119,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":40,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":38,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":100,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]},{"class":"TYPE","type":"TYPE","alias":"c","query_location":111,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":121,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":134,"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 (v).a, variant_keys(v)\nFROM (\n\tSELECT j::VARIANT AS v\n\tFROM (VALUES ('{\"a\":1,\"a\":2}'::JSON), ('{\"a\":3,\"b\":4,\"a\":5}'::JSON)) t(j)\n);","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":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":27,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":35,"query_location_length":102,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":46,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["j"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":67,"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":91,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"a\":2}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":122,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":3,\"b\":4,\"a\":5}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":124,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}]]},"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":[]},"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 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 a::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NULL"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\": [1,2,true, \"hello\"], \"a\": NULL}"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":136,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":138,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":151,"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 try_cast({'a': true, 'b': 'foo'}::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":74,"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":"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":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":28,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":72,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}]}}},"try_cast":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 s.shredding_state, s.fully_shredded.type, s.has_null, s.fully_shredded.stats.has_null\nFROM (SELECT stats(c::VARIANT) s FROM nn 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":44,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":106,"query_location_length":17,"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":113,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["c"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":115,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":131,"query_location_length":2,"schema_name":"","table_name":"nn","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nn"]}},"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 variant '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 []::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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 [{'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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 {'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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":109,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, v FROM single_update WHERE i BETWEEN 5000 AND 5008 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":"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"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":13,"schema_name":"","table_name":"single_update","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["single_update"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":39,"query_location_length":21,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5000}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5008}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM scatter_test WHERE b != -1.0 AND b = a * 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"scatter_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scatter_test"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":40,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":40,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":-10}}},{"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":1,"column_names":["b"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":58,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM test_stress_update_issue_19688","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":30,"schema_name":"","table_name":"test_stress_update_issue_19688","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_stress_update_issue_19688"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select id, name from student where id=122881;","json":{"error":false,"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":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"student","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["student"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":122881}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t5 WHERE v = id * 10 OR v = id * 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"t5","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t5"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":30,"query_location_length":27,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"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":34,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":49,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from t_comp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_comp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_comp"]}},"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 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":"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":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 tbl 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":27,"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":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 variant_comparator('-0.0'::DOUBLE::VARIANT) = variant_comparator('0.0'::DOUBLE::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":88,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"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":40,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-0.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":42,"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":85,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":79,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 ('0'::BIT::VARIANT),\n ('10101010'::BIT::VARIANT),\n ('00'::BIT::VARIANT),\n ('01'::BIT::VARIANT),\n ('1'::BIT::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":180,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":23,"query_location_length":142,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":44,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":128,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":123,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":125,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":130,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":153,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":148,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":150,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":155,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":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":"FROM test_vector_types({a: 1, b: 2}::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":40,"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":35,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},"column_name_alias":[],"with_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 i, i % 5 AS p\n\tFROM range(1000) tbl(i)\n), w AS (\n\tSELECT i, p, row_number() OVER (PARTITION BY p ORDER BY i DESC) AS rn\n\tFROM t\n), g AS (\n\tSELECT p, max(i) AS max_i\n\tFROM t\n\tGROUP BY p\n)\nSELECT count(*)\nFROM w\nJOIN g USING (p)\nWHERE rn = 1 AND i = max_i","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":"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":"FUNCTION","type":"FUNCTION","alias":"p","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":40,"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":46,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"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":"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":77,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["p"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":83,"query_location_length":50,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["p"]}],"orders":[{"type":"DESCENDING","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":[]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"g","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":166,"query_location_length":1,"column_names":["p"]},{"class":"FUNCTION","type":"FUNCTION","alias":"max_i","query_location":169,"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":173,"query_location_length":1,"column_names":["i"]}}]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":1,"column_names":["p"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":214,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":230,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":228,"query_location_length":1,"schema_name":"","table_name":"w","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["w"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":235,"query_location_length":1,"schema_name":"","table_name":"g","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["g"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["p"],"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":253,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":253,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":253,"query_location_length":2,"column_names":["rn"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":258,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":264,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":264,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":268,"query_location_length":5,"column_names":["max_i"]}}]},"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, NULL::INTEGER)) 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":[]}],"from_table":{"type":"SUBQUERY","alias":"src","sample":null,"query_location":87,"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":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":103,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":105,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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","off"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tSUM(v) OVER (PARTITION BY a, a, b) AS w_aab,\n\tSUM(v) OVER (PARTITION BY a, a, a) AS w_aaa\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":116,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"w_aab","query_location":8,"query_location_length":34,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]},{"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"]}],"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"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"w_aaa","query_location":54,"query_location_length":34,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"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":58,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"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 empno, sum(salary*2) 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":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":14,"query_location_length":56,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"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":18,"query_location_length":6,"column_names":["salary"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"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":"with source as (\n\tselect \n\t\ti, \n\t\t(i + 1) * 3 % 5 as permuted,\n\t\tif(permuted = 4, NULL, permuted) as missing\n\tfrom (\n\t\tfrom range(5) tbl(i)\n\t\tunion all \n\t\tselect NULL::INTEGER as i\n\t) t(i)\n)\nselect\n\ti,\n\tpermuted,\n\tfill(missing order by permuted asc nulls last) over (order by i) as filled\nfrom source\nqualify filled is distinct from 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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},{"class":"CASE","type":"CASE_EXPR","alias":"missing","query_location":65,"query_location_length":32,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":8,"column_names":["permuted"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":8,"column_names":["permuted"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":115,"query_location_length":68,"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":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":"tbl","sample":null,"query_location":124,"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":130,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"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":"CAST","type":"OPERATOR_CAST","alias":"i","query_location":166,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":168,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":8,"column_names":["permuted"]},{"class":"WINDOW","type":"WINDOW_FILL","alias":"filled","query_location":214,"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":276,"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":236,"query_location_length":8,"column_names":["permuted"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":219,"query_location_length":7,"column_names":["missing"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":294,"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_DISTINCT_FROM","alias":"","query_location":309,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":309,"query_location_length":6,"column_names":["filled"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":333,"query_location_length":8,"column_names":["permuted"]}}},"named_param_map":[]}]}} +{"sql":"SELECT\n id,\n user_id,\n order_id,\n NTH_VALUE (order_id, 2 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_NTH_VALUE","alias":"last_order_id","query_location":38,"query_location_length":142,"function_name":"nth_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"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":121,"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":165,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":49,"query_location_length":8,"column_names":["order_id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":203,"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 c1, lead(\"offset\" := 2, col := c1) over (order by c0 rows between 2 preceding and 4 preceding) as b\nfrom (values\n\t(1, 2),\n\t(2, 3),\n\t(3, 4),\n\t(4, 5)\n) a(c0, 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":2,"column_names":["c1"]},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"b","query_location":11,"query_location_length":90,"function_name":"lead","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":2,"column_names":["c0"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_PRECEDING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},"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":"offset","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"offset","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"col","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"col","query_location":38,"query_location_length":2,"column_names":["c1"]}}]}],"from_table":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":112,"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":122,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}]]},"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":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(LIST_EXTRACT(l, 2)) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"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, r//3, mode(r//3) over (order by r rows between 1 preceding and 1 following) \nFROM modes \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":["r"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"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":10,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":16,"query_location_length":69,"function_name":"mode","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":["r"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":21,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"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":"SELECT i\n\t, s\n\t, COUNT(DISTINCT s) OVER( ORDER BY i ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING) 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":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":12,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":17,"query_location_length":76,"function_name":"count","schema":"","catalog":"","partitions":[],"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":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"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":32,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"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 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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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, 1 + empno %3 as offset,\n\tnth_value(empno, 1 + empno %3) 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":210,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"FUNCTION","type":"FUNCTION","alias":"offset","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":27,"query_location_length":5,"column_names":["empno"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]},{"class":"WINDOW","type":"WINDOW_NTH_VALUE","alias":"fv","query_location":48,"query_location_length":134,"function_name":"nth_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":7,"column_names":["depname"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"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":58,"query_location_length":5,"column_names":["empno"]}},{"name":"","expression":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"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":69,"query_location_length":5,"column_names":["empno"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":191,"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(1,2,3) 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":137,"query_location_length":8,"column_names":["TeamName"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"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":60,"function_name":"ntile","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":8,"column_names":["TeamName"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":115,"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 r % 3, r, n, median(n) over (partition by r % 3 order by r)\nFROM (SELECT r, CASE r % 2 WHEN 0 THEN r ELSE NULL END AS n FROM quantiles) nulls\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":158,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":20,"query_location_length":46,"function_name":"median","schema":"","catalog":"","partitions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":49,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"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":["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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["n"]}}]}],"from_table":{"type":"SUBQUERY","alias":"nulls","sample":null,"query_location":72,"query_location_length":70,"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":["r"]},{"class":"CASE","type":"CASE_EXPR","alias":"n","query_location":83,"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":88,"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":88,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":1,"column_names":["r"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":132,"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 r, quantile_cont(i, 0.5) OVER (ORDER BY r ROWS BETWEEN 2 PRECEDING AND 1 FOLLOWING) q\nFROM (VALUES\n\t(0, 0),\n\t(1, 1),\n\t(2, 2),\n\t(3, 3),\n\t(4, 0),\n\t(5, 1)\n\t) tbl(r, i)\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"q","query_location":10,"query_location_length":80,"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":47,"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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":24,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":98,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["r","i"]},"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\t(i * 29) % 11 AS outside,\n\trow_number(ORDER BY (i // 2) DESC) OVER w,\n\tntile(4 ORDER BY (i // 2) DESC) OVER w,\nFROM range(10) tbl(i)\nWINDOW w AS (\n\tORDER BY (i * 29) % 11\n)\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":195,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":"outside","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":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":14,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":40,"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":170,"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":171,"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":171,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}}],"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"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":61,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}],"has_ignore_nulls":false,"arguments":[]},{"class":"WINDOW","type":"WINDOW_NTILE","alias":"","query_location":84,"query_location_length":38,"function_name":"ntile","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"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":171,"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":171,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}}],"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":"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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":129,"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":135,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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, LAG(i, 1, 50) 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_LAG","alias":"i1","query_location":10,"query_location_length":20,"function_name":"lag","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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":42,"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":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 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":[]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},{"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 IDS as (\n select * as idx from generate_series(1,4)\n),DATA as (\n select *, (case when idx != 3 then idx * 1.0 else NULL end) as value from IDS\n)\nSELECT \n last(value ORDER BY idx IGNORE NULLS) OVER (ORDER BY idx ROWS BETWEEN UNBOUNDED PRECEDING AND 0 FOLLOWING)\nFROM DATA","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"IDS","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":"idx","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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"query_location_length":20,"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":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"DATA","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":83,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"CASE","type":"CASE_EXPR","alias":"value","query_location":87,"query_location_length":47,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","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":["idx"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"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":111,"query_location_length":3,"column_names":["idx"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}}]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":150,"query_location_length":3,"schema_name":"","table_name":"IDS","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["IDS"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":165,"query_location_length":106,"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":218,"query_location_length":3,"column_names":["idx"]}}],"start":"UNBOUNDED_PRECEDING","end":"EXPR_FOLLOWING_ROWS","start_expr":null,"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"offset_expr":null,"default_expr":null,"ignore_nulls":true,"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":185,"query_location_length":3,"column_names":["idx"]}}],"has_ignore_nulls":true,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":5,"column_names":["value"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":277,"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 DISTINCT tinyint_min(x) OVER (), max_plus_one(x) OVER () FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":16,"query_location_length":22,"function_name":"tinyint_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":28,"query_location_length":1,"column_names":["x"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":40,"query_location_length":23,"function_name":"max_plus_one","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":53,"query_location_length":1,"column_names":["x"]}}]}],"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":[]}]}} +{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 x, g FROM (SELECT x, g, SUM(x) OVER (PARTITION BY g ORDER BY x ROWS UNBOUNDED PRECEDING) AS zzz67 FROM (SELECT * FROM dbplyr_052 ORDER BY x) dbplyr_053) dbplyr_054 WHERE (zzz67 \u003e 3.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":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["g"]}],"from_table":{"type":"SUBQUERY","alias":"dbplyr_054","sample":null,"query_location":17,"query_location_length":142,"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":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["g"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"zzz67","query_location":31,"query_location_length":64,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["g"]}],"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":["x"]}}],"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":35,"query_location_length":1,"column_names":["x"]}}]}],"from_table":{"type":"SUBQUERY","alias":"dbplyr_053","sample":null,"query_location":110,"query_location_length":37,"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":145,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":118,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"query_location_length":10,"schema_name":"","table_name":"dbplyr_052","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dbplyr_052"]}},"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_GREATERTHAN","alias":"","query_location":178,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":5,"column_names":["zzz67"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":30}}},"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, MEDIAN(DISTINCT s) OVER( ORDER BY i, s NULLS LAST ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING) AS c\nFROM nested\nORDER BY i, s 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":135,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"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":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":17,"query_location_length":91,"function_name":"median","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":["i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["s"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"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":33,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":119,"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 \n\tl_extendedprice, \n\tl_partkey, \n\tl_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":144,"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":155,"query_location_length":10,"column_names":["l_orderkey"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"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":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":90,"query_location_length":9,"column_names":["l_partkey"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"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 NO OTHERS \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":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[]}],"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 NULLS FIRST ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING\n ) FROM t1 ORDER BY 1 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":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":85,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","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":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"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 max(c) OVER win,\n min(c) OVER win,\n count(a) 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":258,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":273,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":288,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":15,"function_name":"max","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["c"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":37,"query_location_length":15,"function_name":"min","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["c"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":67,"query_location_length":17,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"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"]}}]},{"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"]}}]}}]},{"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1999}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":496,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1999}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":531,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 dense_rank() OVER (PARTITION BY four ORDER BY ten) FROM tenk1 WHERE unique2 \u003c 10 ORDER BY four, ten","json":{"error":false,"statements":[{"node":{"type":"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":4,"column_names":["four"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":3,"column_names":["ten"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_RANK_DENSE","alias":"","query_location":7,"query_location_length":50,"function_name":"dense_rank","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":4,"column_names":["four"]}],"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":["ten"]}}],"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"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_LESSTHAN","alias":"","query_location":75,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":7,"column_names":["unique2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT lag(ten, four, 0, 0) OVER (PARTITION BY four ORDER BY ten) lt FROM tenk1 order by four, ten, lt","json":{"error":false,"statements":[{"node":{"type":"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":["four"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["ten"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":2,"column_names":["lt"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_LAG","alias":"lt","query_location":7,"query_location_length":58,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["four"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":3,"column_names":["ten"]}}],"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":3,"column_names":["ten"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":4,"column_names":["four"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"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":[]}]}} diff --git a/parser/transform.go b/parser/transform.go new file mode 100644 index 0000000..75387f3 --- /dev/null +++ b/parser/transform.go @@ -0,0 +1,193 @@ +// transform.go: the transformer registry and shared transform state — the +// port of upstream's PEGTransformerFactory (transformer/peg_transformer.cpp). +// One transform function per grammar rule, registered by rule name; +// rules not in the registry are either consumed structurally by their +// parent's transformer or belong to later milestones (ErrUnsupported). +package parser + +import ( + "github.com/sqlc-dev/darkwing/ast" +) + +// transformContext carries per-statement transform state. +type transformContext struct { + src string + + // Prepared-parameter numbering state (upstream keeps the same + // counters on the transformer). + paramCount int + paramSeen map[string]int // identifier -> index + paramOrder []string + hasNamed bool + hasPosition bool + + // windows maps named WINDOW definitions of the innermost SELECT + // (stack, innermost last). + windows []map[string]*ast.WindowExpression +} + +func newTransformContext(src string) *transformContext { + return &transformContext{src: src, paramSeen: map[string]int{}} +} + +// stmtTransform is a statement-producing transform function. The node is +// the named rule's own list node (e.g. LIST(SelectStatement)). +type stmtTransform func(*transformContext, tnode) ast.Stmt + +// statementTransforms is the registry keyed by grammar rule name, +// populated by the transform_*.go files' init functions. +var statementTransforms = map[string]stmtTransform{} + +func register(rule string, fn stmtTransform) { + if _, dup := statementTransforms[rule]; dup { + panic("duplicate statement transform: " + rule) + } + statementTransforms[rule] = fn +} + +// unsupportedStatements names the Statement alternatives that belong to +// milestone 5; the engine accepts them but Parse reports ErrUnsupported. +var unsupportedStatements = map[string]bool{ + "ExternalResourceStatement": true, // INSTALL/LOAD/UPDATE EXTENSIONS/... + "SetStatement": true, + "PragmaStatement": true, + "CallStatement": true, + "CopyStatement": true, + "ExplainStatement": true, + "PrepareStatement": true, + "ExecuteStatement": true, + "TransactionStatement": true, + "AttachStatement": true, + "UseStatement": true, + "DetachStatement": true, + "CheckpointStatement": true, + "VacuumStatement": true, + "ResetStatement": true, + "ExportStatement": true, + "ImportStatement": true, + "CommentStatement": true, + "DeallocateStatement": true, + "LoadStatement": true, + "InstallStatement": true, + "UpdateExtensionsStatement": true, + "AnalyzeStatement": true, + "ConnectStatement": true, + "DisconnectStatement": true, +} + +// transformStatement dispatches one Statement node (LIST(Statement) +// wrapping a choice of statement rules). +func (tc *transformContext) transformStatement(n tnode) ast.Stmt { + _, inner := n.sole().choice() + name := inner.name() + if fn, ok := statementTransforms[name]; ok { + return fn(tc, inner) + } + if unsupportedStatements[name] { + panic(&internalErrorUnsupported{rule: name}) + } + shapeError(inner, "no statement transform registered") + return nil +} + +// internalErrorUnsupported is panicked for milestone-5 statements and +// converted to *unsupportedError at the Parse boundary. +type internalErrorUnsupported struct { + rule string +} + +// finishStatement attaches the collected parameter map to the statement. +func (tc *transformContext) finishStatement(stmt ast.Stmt) { + if len(tc.paramOrder) == 0 { + return + } + params := make([]ast.NamedParam, 0, len(tc.paramOrder)) + for _, id := range tc.paramOrder { + params = append(params, ast.NamedParam{Name: id, Index: tc.paramSeen[id]}) + } + switch s := stmt.(type) { + case *ast.SelectStatement: + s.NamedParams = params + case *ast.InsertStatement: + s.NamedParams = params + case *ast.UpdateStatement: + s.NamedParams = params + case *ast.DeleteStatement: + s.NamedParams = params + case *ast.MergeIntoStatement: + s.NamedParams = params + case *ast.TruncateStatement: + s.NamedParams = params + case *ast.CreateStatement: + s.NamedParams = params + case *ast.DropStatement: + s.NamedParams = params + case *ast.AlterStatement: + s.NamedParams = params + } +} + +// registerParam assigns a parameter its index, mirroring upstream: `?` +// takes max-seen+1, explicit numbers raise the high-water mark, named +// parameters are numbered by first use, and mixing named with positional +// raises upstream's transformer error. +func (tc *transformContext) registerParam(p *ast.ParameterExpression) { + switch p.Kind { + case ast.ParameterAnonymous: + tc.hasPosition = true + tc.paramCount++ + p.Number = tc.paramCount + case ast.ParameterQuestionNumbered, ast.ParameterNumbered: + tc.hasPosition = true + if p.Number > tc.paramCount { + tc.paramCount = p.Number + } + case ast.ParameterNamed: + tc.hasNamed = true + if idx, ok := tc.paramSeen[p.Name]; ok { + p.Number = idx + } else { + tc.paramCount++ + p.Number = tc.paramCount + } + } + if tc.hasNamed && tc.hasPosition { + raise("Mixing named and positional parameters is not supported yet") + } + id := p.Identifier() + if _, ok := tc.paramSeen[id]; !ok { + tc.paramSeen[id] = p.Number + tc.paramOrder = append(tc.paramOrder, id) + } +} + +// pushWindowScope/popWindowScope bracket a SimpleSelect's named-window +// scope. +func (tc *transformContext) pushWindowScope() { + tc.windows = append(tc.windows, map[string]*ast.WindowExpression{}) +} + +func (tc *transformContext) popWindowScope() { + tc.windows = tc.windows[:len(tc.windows)-1] +} + +// namedWindow resolves a window name in the innermost scope. +func (tc *transformContext) namedWindow(name string) *ast.WindowExpression { + for i := len(tc.windows) - 1; i >= 0; i-- { + if w, ok := tc.windows[i][name]; ok { + return w + } + } + return nil +} + +func (tc *transformContext) defineWindow(name string, w *ast.WindowExpression) { + if len(tc.windows) == 0 { + tc.pushWindowScope() + } + scope := tc.windows[len(tc.windows)-1] + if _, dup := scope[name]; dup { + raise("window \"%s\" is already defined", name) + } + scope[name] = w +} diff --git a/parser/transform_expr.go b/parser/transform_expr.go new file mode 100644 index 0000000..1108589 --- /dev/null +++ b/parser/transform_expr.go @@ -0,0 +1,869 @@ +// transform_expr.go: expression transformers — the port of upstream's +// transformer/expression/*.cpp. One function per rule of expression.gram; +// the precedence ladder rules fold their tail lists exactly as upstream +// does (conjunction flattening, constant folding of negated literals, +// operator calls as FunctionExpressions). +package parser + +import ( + "strings" + + "github.com/sqlc-dev/darkwing/ast" + "github.com/sqlc-dev/darkwing/internal/matcher" +) + +// ---- small builders ---------------------------------------------------- + +func fnCall(sp ast.Span, name string, args ...ast.Expr) *ast.FunctionExpression { + f := &ast.FunctionExpression{FunctionName: name} + f.SetSpan(sp) + for _, a := range args { + f.Arguments = append(f.Arguments, ast.FunctionArgument{Expr: a}) + } + return f +} + +func opCall(sp ast.Span, name string, args ...ast.Expr) *ast.FunctionExpression { + f := fnCall(sp, name, args...) + f.IsOperator = true + return f +} + +func opExpr(sp ast.Span, t ast.ExpressionType, children ...ast.Expr) *ast.OperatorExpression { + o := &ast.OperatorExpression{Type: t, Operands: children} + o.SetSpan(sp) + return o +} + +func notExpr(sp ast.Span, child ast.Expr) *ast.OperatorExpression { + return opExpr(sp, ast.OperatorNot, child) +} + +func constExpr(sp ast.Span, v ast.Value) *ast.ConstantExpression { + c := &ast.ConstantExpression{Value: v} + c.SetSpan(sp) + return c +} + +func varcharValue(s string) ast.Value { + return ast.Value{Type: ast.LogicalType{ID: "VARCHAR"}, Kind: ast.ValueString, Str: s} +} + +// point collapses a span to its start (upstream often stores a bare token +// offset with no length). +func point(sp ast.Span) ast.Span { return ast.Span{Start: sp.Start, End: sp.Start} } + +// ---- entry points ------------------------------------------------------ + +// 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()) +} + +// transformExpressionList unwraps List(Expression). +func (tc *transformContext) transformExpressionList(n tnode) []ast.Expr { + elems := n.listElems() + out := make([]ast.Expr, len(elems)) + for i, e := range elems { + out[i] = tc.transformExpression(e) + } + return out +} + +// ---- 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 { + return tc.transformConjunction(n, ast.ConjunctionOr, tc.transformLogicalAnd) +} + +func (tc *transformContext) transformLogicalAnd(n tnode) ast.Expr { + return tc.transformConjunction(n, ast.ConjunctionAnd, tc.transformLogicalNot) +} + +func (tc *transformContext) transformConjunction(n tnode, t ast.ExpressionType, next func(tnode) ast.Expr) ast.Expr { + first := next(n.child(0)) + tails := n.child(1).repeat() + if len(tails) == 0 { + return first + } + children := appendConjunction(nil, t, first) + for _, tail := range tails { + children = appendConjunction(children, t, next(tail.child(1))) + } + c := &ast.ConjunctionExpression{Type: t, Operands: children} + c.SetSpan(n.span()) + return c +} + +// appendConjunction splices nested conjunctions of the same type into +// the parent (upstream flattens through parentheses). +func appendConjunction(children []ast.Expr, t ast.ExpressionType, e ast.Expr) []ast.Expr { + if nested, ok := e.(*ast.ConjunctionExpression); ok && nested.Type == t { + return append(children, nested.Operands...) + } + return append(children, e) +} + +// LogicalNotExpression <- NotExpression? IsExpression +func (tc *transformContext) transformLogicalNot(n tnode) ast.Expr { + expr := tc.transformIs(n.child(1)) + if notNode, ok := n.child(0).opt(); ok { + // NotExpression <- NotKeyword+ + end := n.span().End + nots := notNode.sole().repeat() + for i := len(nots) - 1; i >= 0; i-- { + expr = notExpr(ast.Span{Start: nots[i].sole().span().Start, End: end}, expr) + } + } + return expr +} + +// IsExpression <- IsDistinctFromExpression IsTest* +func (tc *transformContext) transformIs(n tnode) ast.Expr { + expr := tc.transformIsDistinctFrom(n.child(0)) + for _, test := range n.child(1).repeat() { + expr = tc.transformIsTest(expr, test) + } + return expr +} + +func (tc *transformContext) transformIsTest(input ast.Expr, n tnode) ast.Expr { + _, alt := n.sole().choice() + sp := ast.Span{Start: n.span().Start, End: n.span().End} + switch alt.name() { + case "IsLiteral": + // 'IS' 'NOT'? IsLiteralValue + _, negated := alt.child(1).opt() + _, value := alt.child(2).sole().choice() + switch value.name() { + case "NullLiteral": + if negated { + return opExpr(sp, ast.OperatorIsNotNull, input) + } + return opExpr(sp, ast.OperatorIsNull, input) + case "UnknownLiteral": + if negated { + return opExpr(sp, ast.OperatorIsNotNull, input) + } + return opExpr(sp, ast.OperatorIsNull, input) + case "TrueLiteral", "FalseLiteral": + // IS [NOT] TRUE/FALSE: (CAST(x AS BOOLEAN)) IS [NOT] DISTINCT FROM literal + cast := &ast.CastExpression{Child: input, ResolvedType: "BOOLEAN"} + cast.SetSpan(invalidSpan) + lit := constExpr(invalidSpan, ast.Value{ + Type: ast.LogicalType{ID: "BOOLEAN"}, Kind: ast.ValueBool, + Bool: value.name() == "TrueLiteral", + }) + t := ast.CompareNotDistinctFrom + if negated { + t = ast.CompareDistinctFrom + } + cmp := &ast.ComparisonExpression{Type: t, Left: cast, Right: lit} + cmp.SetSpan(sp) + return cmp + } + case "NotNull": + return opExpr(sp, ast.OperatorIsNotNull, input) + case "IsNull": + return opExpr(sp, ast.OperatorIsNull, input) + } + shapeError(alt, "unknown IsTest") + return nil +} + +// IsDistinctFromExpression <- ComparisonExpression IsDistinctFromTail* +func (tc *transformContext) transformIsDistinctFrom(n tnode) ast.Expr { + expr := tc.transformComparison(n.child(0)) + for _, tail := range n.child(1).repeat() { + // IsDistinctFromTail <- IsDistinctFromOp ComparisonExpression + op := tail.child(0) // 'IS' 'NOT'? 'DISTINCT' 'FROM' + _, negated := op.child(1).opt() + t := ast.CompareDistinctFrom + if negated { + t = ast.CompareNotDistinctFrom + } + right := tc.transformComparison(tail.child(1)) + cmp := &ast.ComparisonExpression{Type: t, Left: expr, Right: right} + cmp.SetSpan(ast.Span{Start: n.span().Start, End: tail.span().End}) + expr = cmp + } + return expr +} + +var comparisonOps = map[string]ast.ExpressionType{ + "OperatorEqual": ast.CompareEqual, + "OperatorNotEqual": ast.CompareNotEqual, + "OperatorLessThan": ast.CompareLessThan, + "OperatorGreaterThan": ast.CompareGreaterThan, + "OperatorLessThanEquals": ast.CompareLessThanOrEqual, + "OperatorGreaterThanEquals": ast.CompareGreaterThanOrEqual, +} + +// ComparisonExpression <- BetweenInLikeExpression ComparisonExpressionTail* +func (tc *transformContext) transformComparison(n tnode) ast.Expr { + expr := tc.transformBetweenInLike(n.child(0)) + tails := n.child(1).repeat() + if len(tails) == 0 { + return expr + } + if len(tails) > 1 { + // upstream bans chained comparisons in the transformer + raise("Chained comparisons (e.g. a < b < c) are not supported") + } + tail := tails[0] + _, opAlt := tail.child(0).sole().choice() + t, ok := comparisonOps[opAlt.name()] + if !ok { + shapeError(opAlt, "unknown comparison operator") + } + right := tc.transformBetweenInLike(tail.child(2)) + if notNode, hasNot := tail.child(1).opt(); hasNot { + nots := notNode.sole().repeat() + for i := len(nots) - 1; i >= 0; i-- { + right = notExpr(ast.Span{Start: nots[i].sole().span().Start, End: right.End()}, right) + } + } + cmp := &ast.ComparisonExpression{Type: t, Left: expr, Right: right} + cmp.SetSpan(n.span()) + return cmp +} + +// BetweenInLikeExpression <- OtherOperatorExpression BetweenInLikeOp? +func (tc *transformContext) transformBetweenInLike(n tnode) ast.Expr { + expr := tc.transformOtherOperator(n.child(0)) + opNode, ok := n.child(1).opt() + if !ok { + return expr + } + // BetweenInLikeOp <- 'NOT'? BetweenInLikeOpExpression + _, negated := opNode.child(0).opt() + _, alt := opNode.child(1).sole().choice() + // the whole-expression span, used by the NOT wrapper + wholeSp := ast.Span{Start: n.span().Start, End: alt.span().End} + var result ast.Expr + switch alt.name() { + case "BetweenClause": + lower := tc.transformOtherOperator(alt.child(1)) + upper := tc.transformOtherOperator(alt.child(3)) + b := &ast.BetweenExpression{Input: expr, Lower: lower, Upper: upper} + b.SetSpan(alt.span()) + result = b + case "InClause": + result = tc.transformInClause(expr, alt) + case "LikeClause": + result = tc.transformLikeClause(expr, alt, negated, wholeSp) + // like handles its own negation + return result + } + if negated { + result = notExpr(wholeSp, result) + } + return result +} + +// InClause <- 'IN' InExpression: the result's location is the IN target +// (the parenthesized list/subquery), matching upstream. +func (tc *transformContext) transformInClause(input ast.Expr, n tnode) ast.Expr { + _, alt := n.child(1).sole().choice() + switch alt.name() { + case "InExpressionList": + list := tc.transformExpressionList(alt.parens()) + // a single scalar subquery in the list is the subquery form + if len(list) == 1 { + if sub, ok := list[0].(*ast.SubqueryExpression); ok && sub.SubqueryType == ast.SubqueryScalar { + sub.SubqueryType = ast.SubqueryAny + sub.Child = input + sub.ComparisonType = ast.CompareEqual + sub.SetSpan(alt.span()) + return sub + } + } + children := append([]ast.Expr{input}, list...) + return opExpr(alt.span(), ast.CompareIn, children...) + case "InSelectStatement": + stmt := tc.transformSelectInternalStatement(alt.parens()) + sub := &ast.SubqueryExpression{ + SubqueryType: ast.SubqueryAny, + Subquery: stmt, + Child: input, + ComparisonType: ast.CompareEqual, + } + sub.SetSpan(alt.span()) + return sub + case "InContainsExpression": + // x IN y -> contains(y, x) + haystack := tc.transformOtherOperator(alt.sole()) + return fnCall(alt.span(), "contains", haystack, input) + } + shapeError(alt, "unknown InExpression") + return nil +} + +// likeFunc maps the like-variation rule (plus negation) to the function +// upstream emits: (name, is_operator, wrapInNot). +func likeFunc(variation string, negated bool) (string, bool, bool) { + switch variation { + case "LikeToken": + if negated { + return "!~~", true, false + } + return "~~", true, false + case "ILikeToken": + if negated { + return "!~~*", true, false + } + return "~~*", true, false + case "GlobToken": + return "~~~", true, negated + case "SimilarToToken": + return "regexp_full_match", false, negated + case "RegexMatchToken": + return "regexp_matches", false, negated + case "RegexInsensitiveMatchToken": + return "regexp_matches", false, negated // + 'i' flag argument + case "NotLikeOp": + return "!~~", true, negated + case "NotILikeOp": + return "!~~*", true, negated + case "NotRegexInsensitiveMatchOp": + return "regexp_matches", false, !negated // + 'i' flag + case "NotSimilarToOp": + // '!~' is the negated regex match operator + return "regexp_matches", false, !negated + } + return "", false, false +} + +// LikeClause <- LikeVariations OtherOperatorExpression EscapeClause? +// The function's location is the like clause itself; a NOT wrapper covers +// the whole expression (wholeSp). +func (tc *transformContext) transformLikeClause(input ast.Expr, n tnode, negated bool, wholeSp ast.Span) ast.Expr { + sp := n.span() + _, variation := n.child(0).sole().choice() + pattern := tc.transformOtherOperator(n.child(1)) + name, isOp, wrapNot := likeFunc(variation.name(), negated) + if name == "" { + shapeError(variation, "unknown like variation") + } + args := []ast.Expr{input, pattern} + insensitiveRegex := variation.name() == "RegexInsensitiveMatchToken" || variation.name() == "NotRegexInsensitiveMatchOp" + if insensitiveRegex { + args = append(args, constExpr(invalidSpan, varcharValue("i"))) + } + if escNode, ok := n.child(2).opt(); ok { + // EscapeClause <- 'ESCAPE' ComparisonExpression; negation stays a + // NOT wrapper around the positive escape function + esc := tc.transformComparison(escNode.child(1)) + switch name { + case "~~": + name, isOp = "like_escape", true + case "!~~": + name, isOp, wrapNot = "like_escape", true, !wrapNot + case "~~*": + name, isOp = "ilike_escape", true + case "!~~*": + name, isOp, wrapNot = "ilike_escape", true, !wrapNot + default: + raise("ESCAPE is only supported for LIKE/ILIKE") + } + args = append(args, esc) + } + var result ast.Expr + if isOp { + result = opCall(sp, name, args...) + } else { + result = fnCall(sp, name, args...) + } + if wrapNot { + result = notExpr(wholeSp, result) + } + return result +} + +// negatedComparison maps an ExpressionType to its negation (for ALL +// desugaring: x > ALL(...) becomes NOT(x <= ANY(...))). +var negatedComparison = map[ast.ExpressionType]ast.ExpressionType{ + ast.CompareEqual: ast.CompareNotEqual, + ast.CompareNotEqual: ast.CompareEqual, + ast.CompareLessThan: ast.CompareGreaterThanOrEqual, + ast.CompareGreaterThan: ast.CompareLessThanOrEqual, + ast.CompareLessThanOrEqual: ast.CompareGreaterThan, + ast.CompareGreaterThanOrEqual: ast.CompareLessThan, +} + +// comparisonFromOpText maps an operator spelling to a comparison type +// (nil for non-comparison operators). +func comparisonFromOpText(op string) (ast.ExpressionType, bool) { + switch op { + case "=", "==": + return ast.CompareEqual, true + case "!=", "<>": + return ast.CompareNotEqual, true + case "<": + return ast.CompareLessThan, true + case ">": + return ast.CompareGreaterThan, true + case "<=": + return ast.CompareLessThanOrEqual, true + case ">=": + return ast.CompareGreaterThanOrEqual, true + } + return "", false +} + +// OtherOperatorExpression <- BitwiseExpression OtherOperatorTail* +func (tc *transformContext) transformOtherOperator(n tnode) ast.Expr { + expr := tc.transformBitwise(n.child(0)) + for _, tail := range n.child(1).repeat() { + _, opAlt := tail.child(0).sole().choice() + rhsNode := tail.child(1) + switch opAlt.name() { + case "AnyAllParsedOperator": + expr = tc.transformAnyAll(expr, opAlt.sole(), rhsNode, n.span().Start) + case "NamedOtherOperator": + expr = tc.transformNamedOperator(expr, opAlt.sole(), rhsNode, n.span().Start) + default: + shapeError(opAlt, "unknown other-operator") + } + } + return expr +} + +// AnyAllOperator <- AnyOp AnyOrAll +func (tc *transformContext) transformAnyAll(input ast.Expr, n tnode, rhsNode tnode, exprStart int) ast.Expr { + opText := n.child(0).keyword() + cmp, ok := comparisonFromOpText(opText) + if !ok { + raise("Unsupported comparison \"%s\" for ANY/ALL", opText) + } + _, anyOrAll := n.child(1).sole().choice() + isAll := anyOrAll.name() == "SubqueryAll" + if isAll { + cmp = negatedComparison[cmp] + } + rhs := tc.transformBitwise(rhsNode) + whole := ast.Span{Start: exprStart, End: rhsNode.span().End} + sub := tc.anySubquery(input, rhs, cmp) + if isAll { + // x > ALL(...) becomes NOT(x <= ANY(...)); the synthesized + // subquery node carries no location, the NOT the full extent + sub.SetSpan(invalidSpan) + return notExpr(whole, sub) + } + sub.SetSpan(whole) + return sub +} + +// 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 { + var stmt *ast.SelectStatement + if sub, ok := rhs.(*ast.SubqueryExpression); ok && sub.SubqueryType == ast.SubqueryScalar { + stmt = sub.Subquery + } else { + sel := &ast.SelectNode{ + SelectList: []ast.Expr{fnCall(invalidSpan, "unnest", rhs)}, + AggregateHandling: ast.StandardHandling, + } + sel.SetSpan(invalidSpan) + empty := &ast.EmptyTableRef{} + empty.SetSpan(invalidSpan) + sel.FromTable = empty + stmt = &ast.SelectStatement{Node: sel} + } + out := &ast.SubqueryExpression{ + SubqueryType: ast.SubqueryAny, + Subquery: stmt, + Child: input, + ComparisonType: cmp, + } + return out +} + +// NamedOtherOperator <- QualifiedOperator / InetOperator / JsonOperator / +// ListOperator / StringOperator / OperatorLiteral +func (tc *transformContext) transformNamedOperator(input ast.Expr, n tnode, rhsNode tnode, exprStart int) ast.Expr { + _, alt := n.choice() + rhs := tc.transformBitwise(rhsNode) + var opText string + switch alt.name() { + case "QualifiedOperator": + // OPERATOR(schema.op): the qualification is dropped by upstream + contents := alt.parens() + opText = contents.child(1).keyword() + case "InetOperator", "JsonOperator", "ListOperator", "StringOperator": + opText = alt.sole().keyword() + default: + // OperatorLiteral: a free operator token + op, ok := alt.r.(*matcher.OperatorResult) + if !ok { + shapeError(alt, "want operator literal, got %T", alt.r) + } + opText = op.Operator + } + sp := ast.Span{Start: exprStart, End: rhsNode.span().End} + if cmp, isCmp := comparisonFromOpText(opText); isCmp { + c := &ast.ComparisonExpression{Type: cmp, Left: input, Right: rhs} + c.SetSpan(sp) + return c + } + return opCall(sp, opText, input, rhs) +} + +// binaryLadder folds `X <- Y Tail*` with Tail = [op, Y] into left-assoc +// operator function calls. Additive operators carry a bare op-token +// location; every other level spans the whole expression (upstream's +// inconsistency, pinned by the conformance suite). +func (tc *transformContext) binaryLadder(n tnode, next func(tnode) ast.Expr, opTokenLoc bool) ast.Expr { + expr := next(n.child(0)) + tails := n.child(1).repeat() + for i, tail := range tails { + opNode := tail.child(0) + opText := keywordOfOp(opNode) + rhs := next(tail.child(1)) + var sp ast.Span + switch { + case opTokenLoc: + sp = point(opNode.span()) + case i == len(tails)-1: + // only the outermost fold of a chain carries a location + sp = ast.Span{Start: n.span().Start, End: tail.span().End} + default: + sp = invalidSpan + } + expr = opCall(sp, opText, expr, rhs) + } + return expr +} + +// keywordOfOp extracts the operator spelling from an op rule node (a +// keyword, or a single-child rule wrapping one). +func keywordOfOp(n tnode) string { + switch r := n.r.(type) { + case *matcher.KeywordResult: + return r.Keyword + case *matcher.ListResult: + if len(r.Children) == 1 { + return keywordOfOp(tnode{r.Children[0]}) + } + case *matcher.ChoiceResult: + return keywordOfOp(tnode{r.Result}) + } + shapeError(n, "cannot extract operator text (%T)", n.r) + return "" +} + +func (tc *transformContext) transformBitwise(n tnode) ast.Expr { + return tc.binaryLadder(n, tc.transformAdditive, false) +} + +func (tc *transformContext) transformAdditive(n tnode) ast.Expr { + return tc.binaryLadder(n, tc.transformMultiplicative, true) +} + +func (tc *transformContext) transformMultiplicative(n tnode) ast.Expr { + return tc.binaryLadder(n, tc.transformExponentiation, false) +} + +func (tc *transformContext) transformExponentiation(n tnode) ast.Expr { + return tc.binaryLadder(n, tc.transformCollate, false) +} + +// CollateExpression <- AtTimeZoneExpression CollateExpressionTail* +func (tc *transformContext) transformCollate(n tnode) ast.Expr { + expr := tc.transformAtTimeZone(n.child(0)) + for _, tail := range n.child(1).repeat() { + rhs := tc.transformAtTimeZone(tail.child(1)) + collation := collationName(rhs) + c := &ast.CollateExpression{Child: expr, Collation: collation} + c.SetSpan(ast.Span{Start: n.span().Start, End: tail.span().End}) + expr = c + } + return expr +} + +// collationName extracts the collation name from the right-hand +// expression of COLLATE (a bare identifier chain). +func collationName(e ast.Expr) string { + ref, ok := e.(*ast.ColumnRefExpression) + if !ok { + raise("COLLATE expects a collation name") + } + return strings.Join(ref.ColumnNames, ".") +} + +// AtTimeZoneExpression <- PrefixExpression AtTimeZoneExpressionTail* +// x AT TIME ZONE tz -> timezone(tz, x) +func (tc *transformContext) transformAtTimeZone(n tnode) ast.Expr { + expr := tc.transformPrefix(n.child(0)) + for _, tail := range n.child(1).repeat() { + rhs := tc.transformPrefix(tail.child(1)) + expr = fnCall(ast.Span{Start: n.span().Start, End: tail.span().End}, "timezone", rhs, expr) + } + return expr +} + +// PrefixExpression <- PrefixOperator* BaseExpression +func (tc *transformContext) transformPrefix(n tnode) ast.Expr { + expr := tc.transformBase(n.child(1)) + ops := n.child(0).repeat() + end := n.span().End + for i := len(ops) - 1; i >= 0; i-- { + _, alt := ops[i].sole().choice() + // only the outermost prefix operator carries a location + sp := invalidSpan + if i == 0 { + sp = ast.Span{Start: alt.span().Start, End: end} + } + switch alt.name() { + case "MinusPrefixOperator": + if folded, ok := negateConstant(expr, alt.span().Start, end, i == 0); ok { + expr = folded + continue + } + expr = opCall(sp, "-", expr) + case "PlusPrefixOperator": + expr = opCall(sp, "+", expr) + case "TildePrefixOperator": + expr = opCall(sp, "~", expr) + case "QualifiedOperator": + contents := alt.parens() + opText := contents.child(1).keyword() + expr = opCall(sp, opText, expr) + default: + shapeError(alt, "unknown prefix operator") + } + } + return expr +} + +// negateConstant folds `-literal` into a negative constant, mirroring +// upstream's constant folding for numeric literals; the folded constant's +// location grows to include the minus sign. +func negateConstant(e ast.Expr, opStart, end int, outermost bool) (ast.Expr, bool) { + c, ok := e.(*ast.ConstantExpression) + if !ok { + return nil, false + } + v := c.Value + switch v.Kind { + case ast.ValueInt64: + v.Int64 = -v.Int64 + case ast.ValueDouble: + v.Float64 = -v.Float64 + case ast.ValueHugeint: + v.Hugeint = negateHugeint(v.Hugeint) + if v.Type.ID == "UHUGEINT" { + // -(2^127) is representable as HUGEINT; larger magnitudes + // stay unfolded + if uint64(v.Hugeint.Upper) < 1<<63 && !(v.Hugeint.Upper == 0 && v.Hugeint.Lower == 0) { + return nil, false + } + v.Type = ast.LogicalType{ID: "HUGEINT"} + } + // a negated HUGEINT that now fits an int64 demotes (the INT64_MIN + // literal is only representable negated) — but only when this + // minus is the outermost prefix operator + if outermost && v.Hugeint.Upper == -1 && v.Hugeint.Lower >= 1<<63 { + v.Kind = ast.ValueInt64 + v.Int64 = int64(v.Hugeint.Lower) + v.Hugeint = ast.Hugeint{} + } + default: + return nil, false + } + // negating can shrink or widen the integer class (e.g. the INT32_MIN + // literal is only representable negated); DECIMAL keeps its type + if v.Kind == ast.ValueInt64 && v.Type.ID != "DECIMAL" { + v.Type = ast.LogicalType{ID: integerTypeFor(v.Int64)} + } + out := &ast.ConstantExpression{Value: v} + if outermost { + // the folded constant spans the operator through the operand + // (parentheses included) + out.SetSpan(ast.Span{Start: opStart, End: end}) + } else { + out.SetSpan(invalidSpan) + } + return out, true +} + +func negateHugeint(h ast.Hugeint) ast.Hugeint { + // two's complement negation of the 128-bit value + upper := ^h.Upper + lower := ^h.Lower + 1 + if lower == 0 { + upper++ + } + return ast.Hugeint{Upper: upper, Lower: lower} +} + +// BaseExpression <- SingleExpression IndirectionList? +func (tc *transformContext) transformBase(n tnode) ast.Expr { + single := n.child(0) + expr := tc.transformSingle(single) + // dot indirection behaves differently on a bare column reference + // (qualified function names, column path extension) than on any other + // base — including a parenthesized column reference + _, singleAlt := single.sole().choice() + bare := singleAlt.name() == "ColumnReference" + if indirections, ok := n.child(1).opt(); ok { + items := indirections.sole().repeat() + for i, ind := range items { + expr, bare = tc.transformIndirection(expr, ind, n.span().Start, bare, i == len(items)-1) + } + } + return expr +} + +// Indirection <- CastOperator / DotOperator / SliceExpression / PostfixOperator +// baseStart is the whole base expression's starting offset (dot and +// postfix operators span from there). bare reports whether the base is +// still a bare column-reference chain; the return value updates it. +func (tc *transformContext) transformIndirection(base ast.Expr, n tnode, baseStart int, bare, last bool) (ast.Expr, bool) { + _, alt := n.sole().choice() + switch alt.name() { + case "CastOperator": + // '::' Type — the cast's location is the operator through the type + cast := &ast.CastExpression{Child: base, CastType: tc.transformType(alt.child(1))} + cast.SetSpan(alt.span()) + return cast, false + case "DotOperator": + return tc.transformDot(base, alt, baseStart, bare, last) + case "SliceExpression": + return tc.transformSlice(base, alt), false + case "PostfixOperator": + return fnCall(alt.span(), "factorial", base), false + } + shapeError(alt, "unknown indirection") + return nil, false +} + +// transformDot handles `.name` and `.method(...)` indirection. +func (tc *transformContext) transformDot(base ast.Expr, n tnode, baseStart int, bare, last bool) (ast.Expr, bool) { + _, alt := n.sole().choice() + switch alt.name() { + case "DotColumnOperator": + name := identifierText(alt.child(1)) + if ref, ok := base.(*ast.ColumnRefExpression); ok && bare { + if len(ref.ColumnNames) < 4 { + out := &ast.ColumnRefExpression{ColumnNames: append(append([]string{}, ref.ColumnNames...), name)} + out.SetSpan(ast.Span{Start: ref.Pos(), End: alt.span().End}) + return out, true + } + } + key := constExpr(alt.span(), varcharValue(name)) + // only the outermost extraction carries a location + sp := invalidSpan + if last { + sp = ast.Span{Start: baseStart, End: alt.span().End} + } + return opExpr(sp, ast.StructExtract, base, key), false + case "DotMethodOperator": + // MethodExpression <- ColLabel MethodExpressionArguments + method := alt.child(1) + name := identifierText(method.child(0)) + f := tc.transformFunctionArgumentsInto(method.child(1).parens(), name) + // a bare column-ref base becomes the function's qualification; + // any other base is prepended as the first argument + if ref, ok := base.(*ast.ColumnRefExpression); ok && bare { + if len(ref.ColumnNames) > 2 { + raise("syntax error at or near \"(\"") + } + if len(ref.ColumnNames) == 1 { + f.Schema = ref.ColumnNames[0] + } else { + f.Catalog = ref.ColumnNames[0] + f.Schema = ref.ColumnNames[1] + } + f.SetSpan(ast.Span{Start: base.Pos(), End: alt.span().End}) + return f, false + } + f.SetSpan(method.span()) + f.Arguments = append([]ast.FunctionArgument{{Expr: base}}, f.Arguments...) + return f, false + } + shapeError(alt, "unknown dot operator") + return nil, false +} + +// emptyListValue is the sentinel constant upstream uses for omitted slice +// bounds: an empty LIST(INTEGER). +func emptyListValue(sp ast.Span) *ast.ConstantExpression { + return constExpr(sp, ast.Value{ + Type: ast.LogicalType{ID: "LIST", Child: &ast.LogicalType{ID: "INTEGER"}}, + Kind: ast.ValueEmptyList, + }) +} + +// SliceExpression <- '[' SliceBound ']' +// SliceBound <- Expression? EndSliceBound? StepSliceBound? +func (tc *transformContext) transformSlice(base ast.Expr, n tnode) ast.Expr { + bound := n.child(1) + // the slice operator's location is the bracketed subscript itself + sp := n.span() + var start ast.Expr + if s, ok := bound.child(0).opt(); ok { + start = tc.transformExpression(s) + } + endBound, hasEnd := bound.child(1).opt() + if !hasEnd { + if start == nil { + raise("empty subscript is not allowed") + } + return opExpr(sp, ast.ArrayExtract, base, start) + } + // an omitted start bound has no location; an omitted end bound sits + // on the ':' + colon := endBound.child(0).span() + sentinelSpan := ast.Span{Start: colon.Start, End: colon.Start + 1} + if start == nil { + start = emptyListValue(invalidSpan) + } + // EndSliceBound <- ':' EndSliceValue? + var end ast.Expr + if ev, ok := endBound.child(1).opt(); ok { + _, alt := ev.sole().choice() + if alt.name() == "EndSliceMinus" { + // explicit '-': open end, sentinel located on the '-' + minus := alt.sole().span() + end = emptyListValue(ast.Span{Start: minus.Start, End: minus.Start + 1}) + } else { + end = tc.transformExpression(alt) + } + } + if end == nil { + end = emptyListValue(sentinelSpan) + } + children := []ast.Expr{base, start, end} + if stepBound, ok := bound.child(2).opt(); ok { + // StepSliceBound <- ':' Expression? + if sv, ok := stepBound.child(1).opt(); ok { + children = append(children, tc.transformExpression(sv)) + } + } + return opExpr(sp, ast.ArraySlice, children...) +} diff --git a/parser/transform_func.go b/parser/transform_func.go new file mode 100644 index 0000000..c36eae9 --- /dev/null +++ b/parser/transform_func.go @@ -0,0 +1,972 @@ +// transform_func.go: function calls, window functions, the special +// function forms (EXTRACT, TRIM, SUBSTRING, ...), list/struct/map +// constructors, comprehensions and interval literals. Port of upstream's +// transform_function.cpp / transform_interval.cpp / transform_lambda.cpp. +package parser + +import ( + "strconv" + "strings" + + "github.com/sqlc-dev/darkwing/ast" +) + +// typeCastFunctions maps type-named single-argument calls to the +// resolved logical type they cast to. +var typeCastFunctions = map[string]string{ + "date": "DATE", + "time": "TIME", + "timestamp": "TIMESTAMP", + "interval": "INTERVAL", +} + +// windowTypes maps unqualified function names to specialized window +// expression types. +var windowTypes = map[string]ast.ExpressionType{ + "row_number": "WINDOW_ROW_NUMBER", + "rank": "WINDOW_RANK", + "rank_dense": "WINDOW_RANK_DENSE", + "dense_rank": "WINDOW_RANK_DENSE", + "percent_rank": "WINDOW_PERCENT_RANK", + "cume_dist": "WINDOW_CUME_DIST", + "ntile": "WINDOW_NTILE", + "lead": "WINDOW_LEAD", + "lag": "WINDOW_LAG", + "first_value": "WINDOW_FIRST_VALUE", + "first": "WINDOW_FIRST_VALUE", + "last_value": "WINDOW_LAST_VALUE", + "last": "WINDOW_LAST_VALUE", + "nth_value": "WINDOW_NTH_VALUE", + "fill": "WINDOW_FILL", +} + +// functionParts is the pre-window shape of a call. +type functionParts struct { + distinct bool + args []ast.FunctionArgument + orderBys []ast.OrderByNode + ignoreNulls bool + hasNullsOpt bool +} + +// FunctionExpression <- FunctionIdentifier FunctionExpressionArguments +// WithinGroupClause? FilterClause? ExportClause? OverClause? +func (tc *transformContext) transformFunction(n tnode) ast.Expr { + catalog, schema, name := tc.transformFunctionIdentifier(n.child(0)) + parts := tc.transformFunctionArgumentList(n.child(1).sole().parens()) + starCallRewrite(&parts) + if wg, ok := n.child(2).opt(); ok { + // WITHIN GROUP (ORDER BY ...): the ordering becomes the + // function's ORDER BY, and the percentile functions are renamed + // to their quantile implementations + orderBy := wg.child(2).parens() + parts.orderBys = append(parts.orderBys, tc.transformOrderByClause(orderBy)...) + switch name { + case "percentile_cont": + name = "quantile_cont" + case "percentile_disc": + name = "quantile_disc" + } + } + var filter ast.Expr + if fc, ok := n.child(3).opt(); ok { + // FilterClause <- 'FILTER' Parens('WHERE'? Expression) + contents := fc.child(1).sole().parens() + filter = tc.transformExpression(contents.child(1)) + } + _, exportState := n.child(4).opt() + + if over, ok := n.child(5).opt(); ok { + return tc.transformOver(over, catalog, schema, name, parts, filter, n.span()) + } + if parts.hasNullsOpt { + raise("RESPECT/IGNORE NULLS is not supported for non-window functions") + } + // zero-argument count() is count_star(), for non-window calls only + if name == "count" && len(parts.args) == 0 && schema == "" && catalog == "" { + name = "count_star" + } + // single-argument calls named after a type are casts (DATE('...')) + if id, isType := typeCastFunctions[name]; isType && schema == "" && catalog == "" && + len(parts.args) == 1 && parts.args[0].Name == "" && !parts.distinct && filter == nil { + cast := &ast.CastExpression{Child: parts.args[0].Expr, ResolvedType: id} + cast.SetSpan(n.span()) + return cast + } + if (name == "if" || name == "ifnull") && schema == "" && catalog == "" && + !parts.distinct && filter == nil && len(parts.orderBys) == 0 { + if name == "if" && len(parts.args) == 3 { + c := &ast.CaseExpression{ + CaseChecks: []ast.CaseCheck{{When: parts.args[0].Expr, Then: parts.args[1].Expr}}, + ElseExpr: parts.args[2].Expr, + } + c.SetSpan(n.span()) + return c + } + if name == "ifnull" && len(parts.args) == 2 { + return opExpr(n.span(), ast.OperatorCoalesce, parts.args[0].Expr, parts.args[1].Expr) + } + } + if name == "construct_array" && schema == "" && catalog == "" && !parts.distinct && filter == nil { + // construct_array(...) is the ARRAY[...] operator + var children []ast.Expr + for _, a := range parts.args { + children = append(children, a.Expr) + } + return opExpr(n.span(), ast.ArrayConstructor, children...) + } + f := &ast.FunctionExpression{ + Catalog: catalog, + Schema: schema, + FunctionName: name, + Arguments: parts.args, + Distinct: parts.distinct, + ExportState: exportState, + Filter: filter, + OrderBys: parts.orderBys, + } + f.SetSpan(n.span()) + return f +} + +// FunctionIdentifier <- CatalogReservedSchemaFunctionName / +// SchemaReservedFunctionName / FunctionNameAsQualifiedName +func (tc *transformContext) transformFunctionIdentifier(n tnode) (catalog, schema, name string) { + _, alt := n.sole().choice() + switch alt.name() { + case "CatalogReservedSchemaFunctionName": + // CatalogQualification ReservedSchemaQualification? ReservedFunctionName + catalog = identifierText(alt.child(0).child(0)) + if sq, ok := alt.child(1).opt(); ok { + schema = identifierText(sq.child(0)) + } + name = identifierText(alt.child(2)) + case "SchemaReservedFunctionName": + schema = identifierText(alt.child(0).child(0)) + name = identifierText(alt.child(1)) + case "FunctionNameAsQualifiedName": + name = identifierText(alt.sole()) + default: + shapeError(alt, "unknown function identifier") + } + // a catalog with no schema is really a schema qualification + if catalog != "" && schema == "" { + catalog, schema = "", catalog + } + return catalog, schema, strings.ToLower(name) +} + +// transformFunctionArgumentList handles FunctionExpressionArgumentList +// and MethodExpressionArgumentList (same shape): +// DistinctOrAll? FunctionArgumentList? OrderByClause? IgnoreOrRespectNulls? +func (tc *transformContext) transformFunctionArgumentList(n tnode) functionParts { + var parts functionParts + if da, ok := n.child(0).opt(); ok { + _, kind := da.sole().choice() + parts.distinct = kind.name() == "DistinctKeyword" + } + if list, ok := n.child(1).opt(); ok { + for _, argNode := range list.sole().listElems() { + parts.args = append(parts.args, tc.transformFunctionArgument(argNode)) + } + } + if ob, ok := n.child(2).opt(); ok { + parts.orderBys = tc.transformOrderByClause(ob) + } + if irn, ok := n.child(3).opt(); ok { + parts.hasNullsOpt = true + _, kind := irn.sole().choice() + parts.ignoreNulls = kind.name() == "IgnoreNulls" + } + return parts +} + +// starCallRewrite ports upstream's bare-star call handling: a single +// unmodified `*` argument of a non-DISTINCT call is dropped. +func starCallRewrite(parts *functionParts) { + if parts.distinct || len(parts.args) != 1 || parts.args[0].Name != "" { + return + } + star, ok := parts.args[0].Expr.(*ast.StarExpression) + if !ok || star.Columns || star.RelationName != "" || star.Expr != nil || + len(star.ExcludeList) != 0 || len(star.QualifiedExcludeList) != 0 || + len(star.ReplaceList) != 0 || len(star.RenameList) != 0 { + return + } + parts.args = nil +} + +// transformFunctionArgumentsInto is the method-call variant used by +// `expr.f(...)`: it builds a bare FunctionExpression from an argument +// list node. +func (tc *transformContext) transformFunctionArgumentsInto(argList tnode, name string) *ast.FunctionExpression { + parts := tc.transformFunctionArgumentList(argList) + if parts.hasNullsOpt { + raise("RESPECT/IGNORE NULLS is not supported for non-window functions") + } + return &ast.FunctionExpression{ + FunctionName: strings.ToLower(name), + Arguments: parts.args, + Distinct: parts.distinct, + OrderBys: parts.orderBys, + } +} + +// FunctionArgument <- NamedFunctionArgument / PositionalFunctionArgument +func (tc *transformContext) transformFunctionArgument(n tnode) ast.FunctionArgument { + _, alt := n.sole().choice() + switch alt.name() { + case "NamedFunctionArgument": + // NamedParameter <- TypeFuncName Type? NamedParameterAssignment Expression + np := alt.sole() + name := identifierText(np.child(0)) + expr := tc.transformExpression(np.child(3)) + // upstream also stamps the argument name as the expression alias + expr.SetAlias(name) + return ast.FunctionArgument{Name: name, Expr: expr} + case "PositionalFunctionArgument": + return ast.FunctionArgument{Expr: tc.transformExpression(alt.sole())} + } + shapeError(alt, "unknown function argument") + return ast.FunctionArgument{} +} + +// ---- window functions -------------------------------------------------- + +// transformOver builds the WindowExpression for a call with an OVER +// clause. +func (tc *transformContext) transformOver(n tnode, catalog, schema, name string, parts functionParts, filter ast.Expr, sp ast.Span) ast.Expr { + w := &ast.WindowExpression{ + Catalog: catalog, + Schema: schema, + FunctionName: name, + Arguments: parts.args, + Distinct: parts.distinct, + IgnoreNulls: parts.ignoreNulls, + HasIgnoreNulls: parts.hasNullsOpt, + FilterExpr: filter, + ArgOrders: parts.orderBys, + FrameStart: ast.WindowUnboundedPreceding, + FrameEnd: ast.WindowCurrentRowRange, + ExcludeClause: ast.WindowExcludeNoOther, + } + w.SetSpan(sp) + if t, ok := windowTypes[name]; ok && schema == "" && catalog == "" { + w.Type = t + // the short spellings serialize under their canonical names + switch name { + case "first": + w.FunctionName = "first_value" + case "last": + w.FunctionName = "last_value" + } + } else { + w.Type = "WINDOW_AGGREGATE" + } + // WindowFrame <- ParensIdentifier / WindowFrameDefinition / IdentifierWindowFrame + _, frame := n.child(1).sole().choice() + switch frame.name() { + case "ParensIdentifier": + tc.applyNamedWindow(w, identifierText(frame.sole().parens())) + case "IdentifierWindowFrame": + tc.applyNamedWindow(w, identifierText(frame.sole())) + case "WindowFrameDefinition": + tc.transformWindowFrameDefinition(w, frame) + default: + shapeError(frame, "unknown window frame") + } + return w +} + +// applyNamedWindow copies a named WINDOW definition into w. +func (tc *transformContext) applyNamedWindow(w *ast.WindowExpression, name string) { + base := tc.namedWindow(name) + if base == nil { + raise("window \"%s\" does not exist", name) + } + copyWindowSpec(w, base) +} + +func copyWindowSpec(dst, src *ast.WindowExpression) { + dst.Partitions = append([]ast.Expr{}, src.Partitions...) + dst.Orders = append([]ast.OrderByNode{}, src.Orders...) + dst.FrameStart = src.FrameStart + dst.FrameEnd = src.FrameEnd + dst.StartExpr = src.StartExpr + dst.EndExpr = src.EndExpr + dst.ExcludeClause = src.ExcludeClause +} + +// transformWindowFrameDefinition fills w from a WindowFrameDefinition +// node (used both for OVER (...) and WINDOW name AS (...)). +func (tc *transformContext) transformWindowFrameDefinition(w *ast.WindowExpression, n tnode) { + _, alt := n.sole().choice() + var contents tnode + switch alt.name() { + case "WindowFrameNameContentsParens": + inner := alt.sole().parens() + // WindowFrameNameContents <- BaseWindowName? WindowFrameContents + if baseName, ok := inner.child(0).opt(); ok { + tc.applyNamedWindow(w, identifierText(baseName)) + } + contents = inner.child(1) + case "WindowFrameContentsParens": + contents = alt.sole().parens() + default: + shapeError(alt, "unknown window frame definition") + } + // WindowFrameContents <- WindowPartition? OrderByClause? FrameClause? + if part, ok := contents.child(0).opt(); ok { + w.Partitions = tc.transformExpressionList(part.child(2)) + } + if ob, ok := contents.child(1).opt(); ok { + w.Orders = append(w.Orders, tc.transformOrderByClause(ob)...) + } + if fc, ok := contents.child(2).opt(); ok { + tc.transformFrameClause(w, fc) + } +} + +// transformFrameClause fills the frame bounds. +// FrameClause <- Framing FrameExtent WindowExcludeClause? +func (tc *transformContext) transformFrameClause(w *ast.WindowExpression, n tnode) { + _, framing := n.child(0).sole().choice() + kind := "RANGE" + switch framing.name() { + case "RowsFraming": + kind = "ROWS" + case "GroupsFraming": + kind = "GROUPS" + } + _, extent := n.child(1).sole().choice() + switch extent.name() { + case "SingleFrameExtent": + start, startExpr := tc.transformFrameBound(extent.sole(), kind, true) + w.FrameStart, w.StartExpr = start, startExpr + switch kind { + case "ROWS": + w.FrameEnd = ast.WindowCurrentRowRows + case "GROUPS": + w.FrameEnd = ast.WindowCurrentRowGroups + default: + w.FrameEnd = ast.WindowCurrentRowRange + } + case "BetweenFrameExtent": + start, startExpr := tc.transformFrameBound(extent.child(1), kind, true) + end, endExpr := tc.transformFrameBound(extent.child(3), kind, false) + w.FrameStart, w.StartExpr = start, startExpr + w.FrameEnd, w.EndExpr = end, endExpr + default: + shapeError(extent, "unknown frame extent") + } + if excl, ok := n.child(2).opt(); ok { + _, e := excl.child(1).sole().choice() + switch e.name() { + case "ExcludeCurrentRow": + w.ExcludeClause = ast.WindowExcludeCurrentRow + case "ExcludeGroup": + w.ExcludeClause = ast.WindowExcludeGroup + case "ExcludeTies": + w.ExcludeClause = ast.WindowExcludeTies + case "ExcludeNoOthers": + w.ExcludeClause = ast.WindowExcludeNoOther + } + } +} + +// transformFrameBound maps one FrameBound to (boundary, expr). +func (tc *transformContext) transformFrameBound(n tnode, kind string, isStart bool) (ast.WindowBoundary, ast.Expr) { + _, alt := n.sole().choice() + switch alt.name() { + case "FrameUnbounded": + if preceding(alt.child(1)) { + return ast.WindowUnboundedPreceding, nil + } + return ast.WindowUnboundedFollowing, nil + case "FrameCurrentRow": + switch kind { + case "ROWS": + return ast.WindowCurrentRowRows, nil + case "GROUPS": + return ast.WindowCurrentRowGroups, nil + } + return ast.WindowCurrentRowRange, nil + case "FrameExpression": + expr := tc.transformExpression(alt.child(0)) + dir := "FOLLOWING" + if preceding(alt.child(1)) { + dir = "PRECEDING" + } + return ast.WindowBoundary("EXPR_" + dir + "_" + kind), expr + } + shapeError(alt, "unknown frame bound") + return "", nil +} + +func preceding(n tnode) bool { + _, alt := n.sole().choice() + return alt.name() == "PrecedingFrame" +} + +// ---- special function forms ------------------------------------------- + +func (tc *transformContext) transformSpecialFunction(n tnode) ast.Expr { + _, alt := n.sole().choice() + sp := alt.span() + switch alt.name() { + case "CoalesceExpression": + return opExpr(sp, ast.OperatorCoalesce, tc.transformExpressionList(alt.child(1).parens())...) + case "UnpackExpression": + return opExpr(sp, ast.OperatorUnpack, tc.transformExpression(alt.child(1).parens())) + case "TryExpression": + return opExpr(sp, ast.OperatorTry, tc.transformExpression(alt.child(1).parens())) + case "ColumnsExpression": + return tc.transformColumnsExpr(alt) + case "ExtractExpression": + args := alt.child(1).parens() + part := extractPartName(args.child(0)) + expr := tc.transformExpression(args.child(2)) + return fnCall(sp, "date_part", constExpr(args.child(0).span(), varcharValue(part)), expr) + case "LambdaExpression": + params := identifierList(alt.child(1)) + body := tc.transformExpression(alt.child(3)) + l := &ast.LambdaExpression{LHS: lambdaParams(sp, params), Expr: body, SyntaxType: ast.LambdaKeyword} + l.SetSpan(sp) + return l + case "NullIfExpression": + args := alt.child(1).parens() + return fnCall(sp, "nullif", tc.transformExpression(args.child(0)), tc.transformExpression(args.child(2))) + case "PositionExpression": + args := alt.child(1).parens() + needle := tc.transformOtherOperator(args.child(0)) + haystack := tc.transformExpression(args.child(2)) + return fnCall(sp, "position", haystack, needle) + case "RowExpression": + var args []ast.Expr + if list, ok := alt.child(1).parens().opt(); ok { + args = tc.transformExpressionList(list) + } + return fnCall(sp, "row", args...) + case "SubstringExpression": + return tc.transformSubstring(alt, sp) + case "TrimExpression": + return tc.transformTrim(alt, sp) + case "OverlayExpression": + return tc.transformOverlay(alt, sp) + } + shapeError(alt, "unknown special function") + return nil +} + +// datePartNames maps the grammar's date part keyword rules to DuckDB's +// DatePartSpecifier spelling (microseconds and milliseconds are plural). +var datePartNames = map[string]string{ + "YearKeyword": "YEAR", + "MonthKeyword": "MONTH", + "DayKeyword": "DAY", + "HourKeyword": "HOUR", + "MinuteKeyword": "MINUTE", + "SecondKeyword": "SECOND", + "MillisecondKeyword": "MILLISECONDS", + "MicrosecondKeyword": "MICROSECONDS", + "WeekKeyword": "WEEK", + "QuarterKeyword": "QUARTER", + "DecadeKeyword": "DECADE", + "CenturyKeyword": "CENTURY", + "MillenniumKeyword": "MILLENNIUM", +} + +// extractPartName returns the date part of an EXTRACT: keyword parts use +// their canonical enum spelling, identifier and string parts stay +// verbatim. +func extractPartName(n tnode) string { + _, alt := n.sole().choice() + switch alt.name() { + case "ExtractDatePartArgument": + _, kw := alt.sole().sole().choice() + if name, ok := datePartNames[kw.name()]; ok { + return name + } + return strings.ToUpper(identifierText(alt.sole())) + case "ExtractIdentifierArgument", "ExtractStringArgument": + return identifierText(alt.sole()) + } + shapeError(alt, "unknown extract argument") + return "" +} + +// lambdaParams builds the lambda LHS: one param is a bare column ref, a +// list becomes row(...). +func lambdaParams(sp ast.Span, names []string) ast.Expr { + refs := make([]ast.Expr, len(names)) + for i, name := range names { + r := &ast.ColumnRefExpression{ColumnNames: []string{name}} + r.SetSpan(invalidSpan) + refs[i] = r + } + if len(refs) == 1 { + return refs[0] + } + return fnCall(invalidSpan, "row", refs...) +} + +// ColumnsExpression <- StarSymbol? 'COLUMNS' Parens(Expression) +func (tc *transformContext) transformColumnsExpr(n tnode) ast.Expr { + _, unpack := n.child(0).opt() + inner := tc.transformExpression(n.child(2).parens()) + star := &ast.StarExpression{Columns: true} + star.SetSpan(n.span()) + if innerStar, ok := inner.(*ast.StarExpression); ok && !innerStar.Columns && + innerStar.RelationName == "" && innerStar.Expr == nil && + len(innerStar.ExcludeList) == 0 && len(innerStar.ReplaceList) == 0 && + len(innerStar.QualifiedExcludeList) == 0 && len(innerStar.RenameList) == 0 { + // COLUMNS(*): a bare star collapses to expr == nil, keeping the + // inner star's location + star.SetSpan(ast.Span{Start: innerStar.Pos(), End: innerStar.End()}) + } else if lambda, ok := inner.(*ast.LambdaExpression); ok { + // COLUMNS(c -> ...) filters the star through the lambda + innerStar := &ast.StarExpression{} + innerStar.SetSpan(invalidSpan) + star.Expr = fnCall(invalidSpan, "list_filter", innerStar, lambda) + } else if innerStar, ok := inner.(*ast.StarExpression); ok && !innerStar.Columns { + // COLUMNS(* EXCLUDE (...)): keep the star's modifiers and location + star.ExcludeList = innerStar.ExcludeList + star.QualifiedExcludeList = innerStar.QualifiedExcludeList + star.ReplaceList = innerStar.ReplaceList + star.RenameList = innerStar.RenameList + star.RelationName = innerStar.RelationName + star.SetSpan(ast.Span{Start: innerStar.Pos(), End: innerStar.End()}) + } else { + star.Expr = inner + } + if unpack { + if star.Expr != nil { + star.SetSpan(invalidSpan) + } + return opExpr(n.span(), ast.OperatorUnpack, star) + } + return star +} + +// SubstringArguments <- SubstringParameters / SubstringExpressionList +func (tc *transformContext) transformSubstring(n tnode, sp ast.Span) ast.Expr { + _, alt := n.child(1).parens().sole().choice() + switch alt.name() { + case "SubstringExpressionList": + return fnCall(sp, "substring", tc.transformExpressionList(alt.sole())...) + case "SubstringParameters": + // Expression SubstringFromFor + src := tc.transformExpression(alt.child(0)) + _, ff := alt.child(1).sole().choice() + args := []ast.Expr{src} + switch ff.name() { + case "SubstringFromOptionalFor": + args = append(args, tc.transformExpression(ff.child(0).child(1))) + if forNode, ok := ff.child(1).opt(); ok { + args = append(args, tc.transformExpression(forNode.child(1))) + } + case "SubstringFor": + // substring(s FOR n) == substring(s, 1, n) + one := constExpr(invalidSpan, ast.Value{Type: ast.LogicalType{ID: "INTEGER"}, Kind: ast.ValueInt64, Int64: 1}) + args = append(args, one, tc.transformExpression(ff.sole().child(1))) + } + return fnCall(sp, "substring", args...) + } + shapeError(alt, "unknown substring arguments") + return nil +} + +// TrimArguments <- TrimDirection? TrimSource? List(Expression) +func (tc *transformContext) transformTrim(n tnode, sp ast.Span) ast.Expr { + args := n.child(1).parens() + name := "trim" + if dir, ok := args.child(0).opt(); ok { + _, d := dir.sole().choice() + switch d.name() { + case "TrimLeading": + name = "ltrim" + case "TrimTrailing": + name = "rtrim" + } + } + var sourceChars ast.Expr + if src, ok := args.child(1).opt(); ok { + // TrimSource <- Expression? 'FROM' + if e, ok := src.child(0).opt(); ok { + sourceChars = tc.transformExpression(e) + } + } + list := tc.transformExpressionList(args.child(2)) + var callArgs []ast.Expr + callArgs = append(callArgs, list...) + if sourceChars != nil { + callArgs = append(callArgs, sourceChars) + } + return fnCall(sp, name, callArgs...) +} + +// OverlayArguments <- OverlayParameters / OverlayExpressionList +func (tc *transformContext) transformOverlay(n tnode, sp ast.Span) ast.Expr { + _, alt := n.child(1).parens().sole().choice() + switch alt.name() { + case "OverlayExpressionList": + return fnCall(sp, "overlay", tc.transformExpressionList(alt.sole())...) + case "OverlayParameters": + // Expression 'PLACING' Expression FromExpression ForExpression? + args := []ast.Expr{ + tc.transformExpression(alt.child(0)), + tc.transformExpression(alt.child(2)), + tc.transformExpression(alt.child(3).child(1)), + } + if forNode, ok := alt.child(4).opt(); ok { + args = append(args, tc.transformExpression(forNode.child(1))) + } + return fnCall(sp, "overlay", args...) + } + shapeError(alt, "unknown overlay arguments") + return nil +} + +// ---- constructors ------------------------------------------------------ + +// ListExpression <- ArrayBoundedListExpression / ArrayParensSelect +func (tc *transformContext) transformList(n tnode) ast.Expr { + _, alt := n.sole().choice() + sp := alt.span() + switch alt.name() { + case "ArrayBoundedListExpression": + _, hasArray := alt.child(0).opt() + bounded := alt.child(1) + var elems []ast.Expr + if list, ok := bounded.child(1).opt(); ok { + elems = tc.transformExpressionList(list) + } + if hasArray { + return opExpr(sp, ast.ArrayConstructor, elems...) + } + return fnCall(sp, "list_value", elems...) + case "ArrayParensSelect": + // ARRAY(SELECT ...) desugars to a scalar subquery: + // SELECT CASE WHEN array_agg(#1) IS NULL THEN list_value() + // ELSE array_agg(#1) END FROM () + stmt := tc.transformSelectInternalStatement(alt.child(1).parens()) + src := &ast.SubqueryRef{Subquery: stmt} + src.SetSpan(invalidSpan) + // a plain select aggregates its first item (#1); set operations + // and other node shapes aggregate *COLUMNS(*) + aggArg := func() ast.Expr { + if _, isSelect := stmt.Node.(*ast.SelectNode); isSelect { + p := &ast.PositionalReferenceExpression{Index: 1} + p.SetSpan(invalidSpan) + return p + } + star := &ast.StarExpression{Columns: true} + star.SetSpan(invalidSpan) + return star + } + aggOrders := tc.arrayAggOrders(stmt.Node) + agg := func() ast.Expr { + f := fnCall(invalidSpan, "array_agg", aggArg()) + f.OrderBys = aggOrders + return f + } + caseExpr := &ast.CaseExpression{ + CaseChecks: []ast.CaseCheck{{ + When: opExpr(invalidSpan, ast.OperatorIsNull, agg()), + Then: fnCall(invalidSpan, "list_value"), + }}, + ElseExpr: agg(), + } + caseExpr.SetSpan(invalidSpan) + node := &ast.SelectNode{ + SelectList: []ast.Expr{caseExpr}, + FromTable: src, + AggregateHandling: ast.StandardHandling, + } + node.SetSpan(invalidSpan) + sub := &ast.SubqueryExpression{ + SubqueryType: ast.SubqueryScalar, + Subquery: &ast.SelectStatement{Node: node}, + ComparisonType: ast.InvalidExpressionType, + } + sub.SetSpan(sp) + return sub + } + shapeError(alt, "unknown list expression") + return nil +} + +// StructExpression <- '{' List(StructField)? '}' +func (tc *transformContext) transformStruct(n tnode) ast.Expr { + f := fnCall(n.span(), "struct_pack") + if list, ok := n.child(1).opt(); ok { + for _, field := range list.listElems() { + // StructField <- ColIdOrString ':' Expression + name := identifierText(field.child(0)) + expr := tc.transformExpression(field.child(2)) + expr.SetAlias(name) + f.Arguments = append(f.Arguments, ast.FunctionArgument{Name: name, Expr: expr}) + } + } + return f +} + +// MapExpression <- 'MAP' MapStructExpression +// MAP {k: v, ...} -> map(list_value(keys...), list_value(values...)) +func (tc *transformContext) transformMap(n tnode) ast.Expr { + sp := n.span() + var keys, values []ast.Expr + inner := n.child(1) + if list, ok := inner.child(1).opt(); ok { + for _, field := range list.listElems() { + // MapStructField <- Expression ':' Expression + keys = append(keys, tc.transformExpression(field.child(0))) + values = append(values, tc.transformExpression(field.child(2))) + } + } + return fnCall(sp, "map", fnCall(invalidSpan, "list_value", keys...), fnCall(invalidSpan, "list_value", values...)) +} + +// ListComprehensionExpression <- +// +// '[' Expression 'FOR' List(ColIdOrString) 'IN' Expression ListComprehensionFilter? ']' +// +// Desugars exactly as upstream: list_apply(list_filter(list_apply(src, +// lambda v: struct_pack(filter := cond, result := expr)), lambda elem: +// elem.filter), lambda elem: elem.result) — or plain list_apply without +// the filter. +func (tc *transformContext) transformListComprehension(n tnode) ast.Expr { + sp := n.span() + expr := tc.transformExpression(n.child(1)) + params := identifierList(n.child(3)) + src := tc.transformExpression(n.child(5)) + lhs := lambdaParams(sp, params) + + filterNode, hasFilter := n.child(6).opt() + if !hasFilter { + l := &ast.LambdaExpression{LHS: lhs, Expr: expr, SyntaxType: ast.LambdaKeyword} + l.SetSpan(invalidSpan) + return fnCall(sp, "list_apply", src, l) + } + _ = sp + cond := tc.transformExpression(filterNode.child(1)) + + pack := &ast.FunctionExpression{ + FunctionName: "struct_pack", + Arguments: []ast.FunctionArgument{ + {Name: "filter", Expr: cond}, + {Name: "result", Expr: expr}, + }, + } + pack.SetSpan(invalidSpan) + inner := &ast.LambdaExpression{LHS: lhs, Expr: pack, SyntaxType: ast.LambdaKeyword} + inner.SetSpan(invalidSpan) + // only the outermost call carries the comprehension's location + mapped := fnCall(invalidSpan, "list_apply", src, inner) + filtered := fnCall(invalidSpan, "list_filter", mapped, extractLambda(invalidSpan, "filter")) + return fnCall(sp, "list_apply", filtered, extractLambda(invalidSpan, "result")) +} + +// extractLambda builds `lambda elem: struct_extract(elem, 'field')`. +func extractLambda(sp ast.Span, field string) ast.Expr { + elem := &ast.ColumnRefExpression{ColumnNames: []string{"elem"}} + elem.SetSpan(invalidSpan) + body := fnCall(invalidSpan, "struct_extract", elem, constExpr(invalidSpan, varcharValue(field))) + lhs := &ast.ColumnRefExpression{ColumnNames: []string{"elem"}} + lhs.SetSpan(invalidSpan) + l := &ast.LambdaExpression{ + LHS: lhs, + Expr: body, + SyntaxType: ast.LambdaKeyword, + } + l.SetSpan(sp) + return l +} + +// ---- interval literals ------------------------------------------------- + +// arrayAggOrders ports upstream's ARRAY(...) ordering: an inner ORDER BY +// is mirrored on the array_agg. Constant integer keys become positional +// references; other keys are appended to a select node's list under +// synthesized __array_internal_idx_ aliases and referenced by name. +func (tc *transformContext) arrayAggOrders(node ast.QueryNode) []ast.OrderByNode { + var orderMod *ast.OrderModifier + for _, m := range *node.ModifiersRef() { + if om, ok := m.(*ast.OrderModifier); ok { + orderMod = om + break + } + } + if orderMod == nil { + return nil + } + sel, isSelect := node.(*ast.SelectNode) + var out []ast.OrderByNode + for i, o := range orderMod.Orders { + entry := ast.OrderByNode{Type: o.Type, NullOrder: o.NullOrder} + if c, ok := o.Expression.(*ast.ConstantExpression); ok && c.Value.Kind == ast.ValueInt64 { + p := &ast.PositionalReferenceExpression{Index: uint64(c.Value.Int64)} + p.SetSpan(invalidSpan) + entry.Expression = p + } else if isSelect { + alias := "__array_internal_idx_" + itoa(i+1) + copyExpr := cloneWithAlias(o.Expression, alias) + sel.SelectList = append(sel.SelectList, copyExpr) + ref := &ast.ColumnRefExpression{ColumnNames: []string{alias}} + ref.SetSpan(invalidSpan) + entry.Expression = ref + } else { + expr := o.Expression + // a qualified column key on a set operation keeps only its + // final name (the qualifier cannot bind across the union) + if ref, ok := expr.(*ast.ColumnRefExpression); ok && len(ref.ColumnNames) > 1 { + stripped := &ast.ColumnRefExpression{ColumnNames: ref.ColumnNames[len(ref.ColumnNames)-1:]} + stripped.SetSpan(ref.Span) + expr = stripped + } + entry.Expression = expr + } + out = append(out, entry) + } + return out +} + +func itoa(n int) string { return strconv.Itoa(n) } + +// cloneWithAlias shallow-copies an expression node with a new alias (the +// original keeps its own). +func cloneWithAlias(e ast.Expr, alias string) ast.Expr { + switch x := e.(type) { + case *ast.ColumnRefExpression: + c := *x + c.Alias = alias + return &c + case *ast.ConstantExpression: + c := *x + c.Alias = alias + return &c + case *ast.FunctionExpression: + c := *x + c.Alias = alias + return &c + case *ast.ComparisonExpression: + c := *x + c.Alias = alias + return &c + case *ast.CastExpression: + c := *x + c.Alias = alias + return &c + case *ast.OperatorExpression: + c := *x + c.Alias = alias + return &c + case *ast.CaseExpression: + c := *x + c.Alias = alias + return &c + case *ast.SubqueryExpression: + c := *x + c.Alias = alias + return &c + case *ast.BetweenExpression: + c := *x + c.Alias = alias + return &c + case *ast.WindowExpression: + c := *x + c.Alias = alias + return &c + case *ast.CollateExpression: + c := *x + c.Alias = alias + return &c + case *ast.LambdaExpression: + c := *x + c.Alias = alias + return &c + case *ast.PositionalReferenceExpression: + c := *x + c.Alias = alias + return &c + case *ast.ParameterExpression: + c := *x + c.Alias = alias + return &c + } + return e +} + +// intervalFuncs maps the *Keyword rules to conversion functions. +var intervalFuncs = map[string]string{ + "YearKeyword": "to_years", + "MonthKeyword": "to_months", + "DayKeyword": "to_days", + "HourKeyword": "to_hours", + "MinuteKeyword": "to_minutes", + "SecondKeyword": "to_seconds", + "MillisecondKeyword": "to_milliseconds", + "MicrosecondKeyword": "to_microseconds", + "WeekKeyword": "to_weeks", + "QuarterKeyword": "to_quarters", + "DecadeKeyword": "to_decades", + "CenturyKeyword": "to_centuries", + "MillenniumKeyword": "to_millennia", +} + +// IntervalLiteral <- 'INTERVAL' IntervalParameter Interval? +func (tc *transformContext) transformIntervalLiteral(n tnode) ast.Expr { + sp := n.span() + _, param := n.child(1).sole().choice() + var value ast.Expr + isString := false + switch param.name() { + case "IntervalStringParameter": + s, _ := param.sole().stringLit() + value = constExpr(param.span(), varcharValue(s)) + isString = true + case "NumberLiteral": + value = numberConstant(param.span(), param.number()) + case "ParensExpression": + value = tc.transformExpression(param.sole().parens()) + default: + shapeError(param, "unknown interval parameter") + } + unitNode, hasUnit := n.child(2).opt() + if !hasUnit { + // INTERVAL '3 months' -> CAST(str AS INTERVAL) + cast := &ast.CastExpression{Child: value, ResolvedType: "INTERVAL"} + cast.SetSpan(sp) + return cast + } + _, unit := unitNode.sole().choice() + if unit.name() == "IntervalToInterval" { + raise("interval range specifiers (e.g. YEAR TO MONTH) are not supported in interval literals") + } + fname, ok := intervalFuncs[unit.name()] + if !ok { + shapeError(unit, "unknown interval unit") + } + _ = isString + // the synthesized casts carry no location. Seconds and milliseconds + // keep their fraction — to_(CAST(v AS DOUBLE)); other units + // truncate: to_(CAST(trunc(CAST(v AS DOUBLE)) AS )), with + // BIGINT for the fine units and INTEGER for day and coarser. + toDouble := &ast.CastExpression{Child: value, ResolvedType: "DOUBLE"} + toDouble.SetSpan(invalidSpan) + switch unit.name() { + case "SecondKeyword", "MillisecondKeyword": + return fnCall(sp, fname, toDouble) + } + intType := "INTEGER" + switch unit.name() { + case "HourKeyword", "MinuteKeyword", "MicrosecondKeyword": + intType = "BIGINT" + } + trunc := fnCall(invalidSpan, "trunc", toDouble) + toInt := &ast.CastExpression{Child: trunc, ResolvedType: intType} + toInt.SetSpan(invalidSpan) + return fnCall(sp, fname, toInt) +} + +var _ = strconv.Itoa diff --git a/parser/transform_select.go b/parser/transform_select.go new file mode 100644 index 0000000..d52a490 --- /dev/null +++ b/parser/transform_select.go @@ -0,0 +1,876 @@ +// transform_select.go: the SELECT query tree — query nodes, set +// operations, CTEs, result modifiers, GROUP BY and samples. Port of +// upstream's transform_select_node.cpp / transform_setop.cpp / +// transform_cte.cpp / transform_groupby.cpp / transform_sample.cpp. +package parser + +import ( + "sort" + "strconv" + "strings" + + "github.com/sqlc-dev/darkwing/ast" + "github.com/sqlc-dev/darkwing/internal/serialize" +) + +func init() { + register("SelectStatement", func(tc *transformContext, n tnode) ast.Stmt { + return tc.transformSelectInternalStatement(n.sole()) + }) +} + +// invalidSpan marks synthesized nodes with no source location; the +// serializer renders it as DuckDB's INVALID_INDEX. +var invalidSpan = ast.Span{Start: -1, End: -1} + +// transformSelectInternalStatement wraps a SelectStatementInternal node +// into a SelectStatement. +func (tc *transformContext) transformSelectInternalStatement(n tnode) *ast.SelectStatement { + stmt := &ast.SelectStatement{Node: tc.transformSelectInternal(n)} + stmt.SetSpan(n.span()) + return stmt +} + +// SelectStatementInternal <- WithClause? SelectSetOpChain ResultModifiers? +func (tc *transformContext) transformSelectInternal(n tnode) ast.QueryNode { + var ctes ast.CTEMap + if wc, ok := n.child(0).opt(); ok { + ctes = tc.transformWithClause(wc) + } + node := tc.transformSetOpChain(n.child(1)) + if rm, ok := n.child(2).opt(); ok { + tc.applyResultModifiers(node, rm) + } + if len(ctes.Entries) > 0 { + cteRef := node.CTEMapRef() + cteRef.Entries = append(ctes.Entries, cteRef.Entries...) + } + return node +} + +// ---- WITH clauses ------------------------------------------------------ + +// WithClause <- 'WITH' Recursive? List(WithStatement) +func (tc *transformContext) transformWithClause(n tnode) ast.CTEMap { + _, recursive := n.child(1).opt() + var out ast.CTEMap + for _, ws := range n.child(2).listElems() { + name, cte := tc.transformWithStatement(ws, recursive) + out.Entries = append(out.Entries, ast.CTEMapEntry{Name: name, CTE: cte}) + } + return out +} + +// WithStatement <- ColIdOrString InsertColumnList? UsingKey? 'AS' Materialized? CTEBody +func (tc *transformContext) transformWithStatement(n tnode, recursive bool) (string, *ast.CommonTableExpr) { + name := identifierText(n.child(0)) + cte := &ast.CommonTableExpr{Materialized: ast.CTEMaterializeDefault} + cte.SetSpan(n.span()) + if cols, ok := n.child(1).opt(); ok { + cte.Aliases = identifierList(cols.sole().parens()) + } + if uk, ok := n.child(2).opt(); ok { + // UsingKey <- 'USING' 'KEY' Parens(TargetList) + for _, e := range uk.child(2).parens().listElems() { + cte.KeyTargets = append(cte.KeyTargets, tc.transformAliasedExpression(e)) + } + } + if mat, ok := n.child(4).opt(); ok { + // Materialized <- 'NOT'? 'MATERIALIZED' + if _, not := mat.child(0).opt(); not { + cte.Materialized = ast.CTEMaterializeNever + } else { + cte.Materialized = ast.CTEMaterializeAlways + } + } + // CTEBody <- CTESelectBody / CTEDMLBody + _, body := n.child(5).sole().choice() + switch body.name() { + case "CTESelectBody": + cte.Query = tc.transformSelectInternal(body.sole().parens()) + case "CTEDMLBody": + stmt := tc.transformStatement(body.sole().parens()) + sel, ok := stmt.(*ast.SelectStatement) + if !ok { + raise("can only use SELECT statements (or DML in milestone 5) inside a CTE") + } + cte.Query = sel.Node + default: + shapeError(body, "unknown CTE body") + } + if recursive { + if setop, ok := cte.Query.(*ast.SetOperationNode); ok && setop.SetOpType == ast.SetOpUnion && len(setop.Inputs) == 2 { + rec := &ast.RecursiveCTENode{ + CTEName: name, + UnionAll: setop.SetOpAll, + Left: setop.Inputs[0], + Right: setop.Inputs[1], + Aliases: cte.Aliases, + KeyTargets: cte.KeyTargets, + } + rec.Modifiers = setop.Modifiers + rec.CTEs = setop.CTEs + rec.SetSpan(ast.Span{Start: setop.Pos(), End: setop.End()}) + cte.Query = rec + } + } + return name, cte +} + +// ---- set operation chains --------------------------------------------- + +// SelectSetOpChain <- IntersectChain SelectSetOpChainTail* +func (tc *transformContext) transformSetOpChain(n tnode) ast.QueryNode { + node := tc.transformIntersectChain(n.child(0)) + 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) + } + return node +} + +// SetopClause <- SetopType DistinctOrAll? ByName? +func (tc *transformContext) buildSetOp(left, right ast.QueryNode, clause tnode) ast.QueryNode { + _, kind := clause.child(0).sole().choice() + setopType := ast.SetOpUnion + if kind.name() == "SetopExcept" { + setopType = ast.SetOpExcept + } + all := false + if da, ok := clause.child(1).opt(); ok { + _, d := da.sole().choice() + all = d.name() == "AllKeyword" + } + if _, byName := clause.child(2).opt(); byName { + if setopType != ast.SetOpUnion { + raise("BY NAME is only supported for UNION") + } + 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 { + ls.Inputs = append(ls.Inputs, right) + ls.SetSpan(ast.Span{Start: ls.Pos(), End: right.End()}) + return ls + } + } + node := &ast.SetOperationNode{SetOpType: setopType, SetOpAll: all, Inputs: []ast.QueryNode{left, right}} + node.SetSpan(ast.Span{Start: left.Pos(), End: right.End()}) + return node +} + +// IntersectChain <- SelectAtom IntersectChainTail* +func (tc *transformContext) transformIntersectChain(n tnode) ast.QueryNode { + node := tc.transformSelectAtom(n.child(0)) + for _, tail := range n.child(1).repeat() { + // IntersectChainTail <- SetIntersectClause SelectAtom + clause := tail.child(0) // 'INTERSECT' DistinctOrAll? + right := tc.transformSelectAtom(tail.child(1)) + all := false + if da, ok := clause.child(1).opt(); ok { + _, d := da.sole().choice() + all = d.name() == "AllKeyword" + } + setop := &ast.SetOperationNode{SetOpType: ast.SetOpIntersect, SetOpAll: all, Inputs: []ast.QueryNode{node, right}} + setop.SetSpan(ast.Span{Start: node.Pos(), End: right.End()}) + node = setop + } + return node +} + +// SelectAtom <- SelectParens / SelectStatementType +func (tc *transformContext) transformSelectAtom(n tnode) ast.QueryNode { + _, alt := n.sole().choice() + switch alt.name() { + case "SelectParens": + return tc.transformSelectInternal(alt.sole().parens()) + case "SelectStatementType": + return tc.transformSelectStatementType(alt) + } + shapeError(alt, "unknown select atom") + return nil +} + +// SelectStatementType <- OptionalParensSimpleSelect / ValuesClause / +// DescribeStatement / TableStatement / PivotStatement / UnpivotStatement +func (tc *transformContext) transformSelectStatementType(n tnode) ast.QueryNode { + _, alt := n.sole().choice() + switch alt.name() { + case "OptionalParensSimpleSelect": + _, inner := alt.sole().choice() + if inner.name() == "SimpleSelectParens" { + return tc.transformSimpleSelect(inner.sole().parens()) + } + return tc.transformSimpleSelect(inner) + case "ValuesClause": + ref := tc.transformValuesClause(alt) + ref.Alias = "valueslist" + return starSelect(ref, alt.span()) + case "DescribeStatement": + return tc.transformDescribe(alt) + case "TableStatement": + // 'TABLE' BaseTableName — synthesized SELECT * FROM t, no locations + ref := &ast.BaseTableRef{} + tc.fillBaseTableName(ref, alt.child(1)) + ref.SetSpan(invalidSpan) + return starSelect(ref, invalidSpan) + case "PivotStatement": + return tc.transformPivotStatement(alt) + case "UnpivotStatement": + return tc.transformUnpivotStatement(alt) + } + shapeError(alt, "unknown select statement type") + return nil +} + +// starSelect builds SELECT * FROM ref — the desugaring for VALUES, +// TABLE, PIVOT and SHOW forms. +func starSelect(ref ast.TableRef, sp ast.Span) *ast.SelectNode { + star := &ast.StarExpression{} + star.SetSpan(invalidSpan) + node := &ast.SelectNode{ + SelectList: []ast.Expr{star}, + FromTable: ref, + AggregateHandling: ast.StandardHandling, + } + node.SetSpan(sp) + return node +} + +// SimpleSelect <- SelectFrom WhereClause? GroupByClause? HavingClause? +// WindowClause? QualifyClause? SampleClause? +func (tc *transformContext) transformSimpleSelect(n tnode) ast.QueryNode { + node := &ast.SelectNode{AggregateHandling: ast.StandardHandling} + node.SetSpan(n.span()) + tc.pushWindowScope() + defer tc.popWindowScope() + + // named windows resolve while transforming the select list, so the + // WINDOW clause (child 4) is processed first + if wc, ok := n.child(4).opt(); ok { + // WindowClause <- 'WINDOW' List(WindowDefinition) + for _, def := range wc.child(1).listElems() { + // WindowDefinition <- Identifier 'AS' WindowFrameDefinition + w := &ast.WindowExpression{ + FrameStart: ast.WindowUnboundedPreceding, FrameEnd: ast.WindowCurrentRowRange, + ExcludeClause: ast.WindowExcludeNoOther, + } + tc.transformWindowFrameDefinition(w, def.child(2)) + tc.defineWindow(identifierText(def.child(0)), w) + } + } + + // SelectFrom <- SelectFromClause / FromSelectClause + _, sf := n.child(0).sole().choice() + var selectClause, fromClause tnode + var hasSelect, hasFrom bool + switch sf.name() { + case "SelectFromClause": + selectClause, hasSelect = sf.child(0), true + fromClause, hasFrom = sf.child(1).opt() + case "FromSelectClause": + fromClause, hasFrom = sf.child(0), true + selectClause, hasSelect = sf.child(1).opt() + default: + shapeError(sf, "unknown select-from") + } + + if hasFrom { + node.FromTable = tc.transformFromClause(fromClause) + } else { + empty := &ast.EmptyTableRef{} + empty.SetSpan(invalidSpan) + node.FromTable = empty + } + + if hasSelect { + // SelectClause <- 'SELECT' DistinctClause? TargetList? + if dc, ok := selectClause.child(1).opt(); ok { + tc.applyDistinct(node, dc) + } + if tl, ok := selectClause.child(2).opt(); ok { + for _, e := range tl.listElems() { + node.SelectList = append(node.SelectList, tc.transformAliasedExpression(e)) + } + } + } else { + star := &ast.StarExpression{} + star.SetSpan(invalidSpan) + node.SelectList = []ast.Expr{star} + } + + if wc, ok := n.child(1).opt(); ok { + node.Where = tc.transformExpression(wc.child(1)) + } + if gb, ok := n.child(2).opt(); ok { + tc.transformGroupBy(node, gb) + } + if hv, ok := n.child(3).opt(); ok { + node.Having = tc.transformExpression(hv.child(1)) + } + if qc, ok := n.child(5).opt(); ok { + node.Qualify = tc.transformExpression(qc.child(1)) + } + if sc, ok := n.child(6).opt(); ok { + node.Sample = tc.transformSampleClause(sc) + } + return node +} + +// applyDistinct appends the DISTINCT modifier. +// DistinctClause <- DistinctOn / DistinctAll +func (tc *transformContext) applyDistinct(node *ast.SelectNode, n tnode) { + _, alt := n.sole().choice() + if alt.name() != "DistinctOn" { + return // ALL is the default + } + mod := &ast.DistinctModifier{} + mod.SetSpan(alt.span()) + if targets, ok := alt.child(1).opt(); ok { + mod.DistinctOnTargets = tc.transformExpressionList(targets.child(1).parens()) + } + node.Modifiers = append(node.Modifiers, mod) +} + +// AliasedExpression <- ColIdExpression / ExpressionAsCollabel / ExpressionOptIdentifier +func (tc *transformContext) transformAliasedExpression(n tnode) ast.Expr { + _, alt := n.sole().choice() + switch alt.name() { + case "ColIdExpression": + // prefix alias: `alias: expr` + expr := tc.transformExpression(alt.child(2)) + expr.SetAlias(identifierText(alt.child(0))) + return expr + case "ExpressionAsCollabel": + expr := tc.transformExpression(alt.child(0)) + expr.SetAlias(identifierText(alt.child(2))) + return expr + case "ExpressionOptIdentifier": + expr := tc.transformExpression(alt.child(0)) + if id, ok := alt.child(1).opt(); ok { + expr.SetAlias(identifierText(id)) + } + return expr + case "Expression": + // ExpressionAlias (expression statements) reuses this dispatch + return tc.transformExpression(alt) + } + shapeError(alt, "unknown aliased expression") + return nil +} + +// ---- GROUP BY ---------------------------------------------------------- + +// GroupByClause <- 'GROUP' 'BY' GroupByExpressions +func (tc *transformContext) transformGroupBy(node *ast.SelectNode, n tnode) { + _, alt := n.child(2).sole().choice() + if alt.name() == "GroupByAll" { + node.AggregateHandling = ast.ForceAggregates + return + } + // GROUP BY * is another spelling of GROUP BY ALL + if elems := alt.sole().listElems(); len(elems) == 1 { + if star, ok := tc.peekBareStar(elems[0]); ok && star { + node.AggregateHandling = ast.ForceAggregates + return + } + } + // GroupByList <- List(GroupByExpression); each entry contributes a + // list of grouping sets, combined as a cross product (upstream's + // transform_group_by.cpp). + sets := []ast.GroupingSet{{}} + for _, entry := range alt.sole().listElems() { + entrySets := tc.transformGroupByExpressionEntry(node, entry) + var combined []ast.GroupingSet + for _, base := range sets { + for _, es := range entrySets { + combined = append(combined, mergeSet(base, es)) + } + } + sets = combined + } + node.GroupSets = sets +} + +func mergeSet(a, b ast.GroupingSet) ast.GroupingSet { + return normalizeSet(append(append(ast.GroupingSet{}, a...), b...)) +} + +// normalizeSet sorts and deduplicates a grouping set (upstream stores +// std::set). +func normalizeSet(s ast.GroupingSet) ast.GroupingSet { + sort.Ints(s) + out := ast.GroupingSet{} + for i, v := range s { + if i == 0 || v != s[i-1] { + out = append(out, v) + } + } + return out +} + +// peekBareStar reports whether a GroupByExpression entry is a bare `*`. +func (tc *transformContext) peekBareStar(n tnode) (bool, bool) { + _, alt := n.sole().choice() + if alt.name() != "GroupByBaseExpression" { + return false, false + } + expr := tc.transformExpression(alt.sole()) + star, ok := expr.(*ast.StarExpression) + if !ok || star.Columns || star.Expr != nil || star.RelationName != "" || + len(star.ExcludeList) != 0 || len(star.ReplaceList) != 0 || + len(star.QualifiedExcludeList) != 0 || len(star.RenameList) != 0 { + return false, false + } + return true, true +} + +// groupByUnit registers one GROUP BY element: a parenthesized list +// (parsed as a row constructor) expands into its parts, all in one +// grouping set. +func (tc *transformContext) groupByUnit(node *ast.SelectNode, expr ast.Expr) ast.GroupingSet { + if row, ok := expr.(*ast.FunctionExpression); ok && row.FunctionName == "row" && + row.Schema == "" && !row.IsOperator && len(row.Arguments) > 0 { + set := ast.GroupingSet{} + for _, a := range row.Arguments { + set = append(set, addGroupExpression(node, a.Expr)) + } + return normalizeSet(set) + } + return ast.GroupingSet{addGroupExpression(node, expr)} +} + +// addGroupExpression appends expr to the group list, returning its +// index; a structurally identical expression reuses its earlier index +// (upstream deduplicates group expressions). +func addGroupExpression(node *ast.SelectNode, expr ast.Expr) int { + fp := serialize.Fingerprint(expr) + for i, e := range node.GroupExpressions { + if serialize.Fingerprint(e) == fp { + return i + } + } + node.GroupExpressions = append(node.GroupExpressions, expr) + return len(node.GroupExpressions) - 1 +} + +// GroupByExpression <- EmptyGroupingItem / CubeOrRollupClause / +// GroupingSetsClause / GroupByBaseExpression +func (tc *transformContext) transformGroupByExpressionEntry(node *ast.SelectNode, n tnode) []ast.GroupingSet { + _, alt := n.sole().choice() + switch alt.name() { + case "EmptyGroupingItem": + return []ast.GroupingSet{{}} + case "GroupByBaseExpression": + return []ast.GroupingSet{tc.groupByUnit(node, tc.transformExpression(alt.sole()))} + case "CubeOrRollupClause": + // CubeOrRollup Parens(List(Expression)?): each element is one + // unit (a parenthesized list counts as a single unit) + _, kind := alt.child(0).sole().choice() + var units []ast.GroupingSet + if list, ok := alt.child(1).parens().opt(); ok { + for _, e := range list.listElems() { + units = append(units, tc.groupByUnit(node, tc.transformExpression(e))) + } + } + if kind.name() == "CubeKeyword" { + return normalizeSets(cubeSets(units)) + } + return normalizeSets(rollupSets(units)) + case "GroupingSetsClause": + // 'GROUPING' 'SETS' Parens(List(GroupByExpression)) + var out []ast.GroupingSet + for _, e := range alt.child(2).parens().listElems() { + out = append(out, tc.transformGroupByExpressionEntry(node, e)...) + } + return out + } + shapeError(alt, "unknown group-by expression") + return nil +} + +func normalizeSets(sets []ast.GroupingSet) []ast.GroupingSet { + for i := range sets { + sets[i] = normalizeSet(sets[i]) + } + return sets +} + +// rollupSets returns increasing prefixes — (), (0), (0,1) — matching +// upstream's serialization order. Units are unioned in order. +func rollupSets(units []ast.GroupingSet) []ast.GroupingSet { + out := []ast.GroupingSet{{}} + prefix := ast.GroupingSet{} + for _, u := range units { + prefix = append(prefix, u...) + out = append(out, append(ast.GroupingSet{}, prefix...)) + } + return out +} + +// cubeSets returns all unit subsets in upstream's DFS pre-order: (), +// (0), (0,1), (1) for two units. +func cubeSets(units []ast.GroupingSet) []ast.GroupingSet { + var out []ast.GroupingSet + var walk func(prefix ast.GroupingSet, from int) + walk = func(prefix ast.GroupingSet, from int) { + out = append(out, append(ast.GroupingSet{}, prefix...)) + for i := from; i < len(units); i++ { + walk(append(prefix, units[i]...), i+1) + } + } + walk(ast.GroupingSet{}, 0) + return out +} + +// ---- result modifiers -------------------------------------------------- + +// ResultModifiers <- OrderByClause? LimitOffset? +func (tc *transformContext) applyResultModifiers(node ast.QueryNode, n tnode) { + mods := node.ModifiersRef() + if ob, ok := n.child(0).opt(); ok { + om := &ast.OrderModifier{Orders: tc.transformOrderByClause(ob)} + om.SetSpan(ob.span()) + *mods = append(*mods, om) + } + if lo, ok := n.child(1).opt(); ok { + *mods = append(*mods, tc.transformLimitOffset(lo)...) + } +} + +// transformOrderByClause handles OrderByClause ('ORDER' 'BY' +// OrderByExpressions). +func (tc *transformContext) transformOrderByClause(n tnode) []ast.OrderByNode { + _, alt := n.child(2).sole().choice() + switch alt.name() { + case "OrderByAll": + // ORDER BY ALL DescOrAsc? NullsFirstOrLast? — upstream represents + // ALL as a synthesized COLUMNS(*) star + star := &ast.StarExpression{Columns: true} + star.SetSpan(invalidSpan) + return []ast.OrderByNode{{ + Type: orderTypeOf(alt.child(1)), + NullOrder: nullOrderOf(alt.child(2)), + Expression: star, + }} + case "OrderByExpressionList": + var out []ast.OrderByNode + for _, e := range alt.sole().listElems() { + // OrderByExpression <- Expression DescOrAsc? NullsFirstOrLast? + out = append(out, ast.OrderByNode{ + Type: orderTypeOf(e.child(1)), + NullOrder: nullOrderOf(e.child(2)), + Expression: tc.transformExpression(e.child(0)), + }) + } + return out + } + shapeError(alt, "unknown order-by expressions") + return nil +} + +func orderTypeOf(n tnode) ast.OrderType { + da, ok := n.opt() + if !ok { + return ast.OrderDefault + } + _, alt := da.sole().choice() + if alt.name() == "DescendingOrder" { + return ast.OrderDescending + } + return ast.OrderAscending +} + +func nullOrderOf(n tnode) ast.NullOrder { + nf, ok := n.opt() + if !ok { + return ast.NullOrderDefault + } + _, alt := nf.sole().choice() + if alt.name() == "NullsFirst" { + return ast.NullsFirst + } + return ast.NullsLast +} + +// LimitOffset <- LimitOffsetClause / OffsetFetchClause / OffsetLimitClause / FetchOnlyClause +func (tc *transformContext) transformLimitOffset(n tnode) []ast.ResultModifier { + _, alt := n.sole().choice() + mod := &ast.LimitModifier{LimitType: ast.LimitRowCount} + mod.SetSpan(alt.span()) + switch alt.name() { + case "LimitOffsetClause": + tc.applyLimitClause(mod, alt.child(0)) + if oc, ok := alt.child(1).opt(); ok { + mod.Offset = tc.transformOffsetValue(oc) + } + case "OffsetLimitClause": + mod.Offset = tc.transformOffsetValue(alt.child(0)) + if lc, ok := alt.child(1).opt(); ok { + tc.applyLimitClause(mod, lc) + } + case "OffsetFetchClause": + mod.Offset = tc.transformOffsetValue(alt.child(0)) + mod.Limit = tc.transformFetchValue(alt.child(1)) + case "FetchOnlyClause": + mod.Limit = tc.transformFetchValue(alt.sole()) + default: + shapeError(alt, "unknown limit/offset") + } + return []ast.ResultModifier{mod} +} + +// applyLimitClause fills limit/limit-type from a LimitClause +// ('LIMIT' LimitValue). +func (tc *transformContext) applyLimitClause(mod *ast.LimitModifier, n tnode) { + _, alt := n.child(1).sole().choice() + switch alt.name() { + case "LimitAll": + // LIMIT ALL is an explicit NULL limit + mod.Limit = constExpr(invalidSpan, ast.Value{Type: ast.LogicalType{ID: "NULL"}, IsNull: true, Kind: ast.ValueNull}) + case "LimitLiteralPercent": + mod.Limit = numberConstant(alt.child(0).span(), alt.child(0).number()) + mod.LimitType = ast.LimitPercentage + case "LimitExpression": + // Expression '%'? + mod.Limit = tc.transformExpression(alt.child(0)) + if _, pct := alt.child(1).opt(); pct { + mod.LimitType = ast.LimitPercentage + } + default: + shapeError(alt, "unknown limit value") + } +} + +// OffsetValue <- Expression RowOrRows? +func (tc *transformContext) transformOffsetValue(n tnode) ast.Expr { + return tc.transformExpression(n.child(1).child(0)) +} + +// FetchClause <- 'FETCH' FirstOrNext FetchValue RowOrRows 'ONLY' +func (tc *transformContext) transformFetchValue(n tnode) ast.Expr { + return tc.transformExpression(n.child(2).sole()) +} + +// ---- SHOW / DESCRIBE / SUMMARIZE -------------------------------------- + +// specialShowNames are the unqualified SHOW/DESCRIBE targets that stay +// symbolic (SHOW TABLES, SHOW DATABASES, ...) instead of describing a +// relation. +var specialShowNames = map[string]bool{ + "tables": true, + "databases": true, + "schemas": true, + "variables": true, +} + +// DescribeStatement <- ShowTables / ShowSelect / ShowAllTables / ShowQualifiedName +// All SHOW/DESCRIBE desugaring uses synthesized (location-free) nodes, +// mirroring upstream. +func (tc *transformContext) transformDescribe(n tnode) ast.QueryNode { + _, alt := n.sole().choice() + ref := &ast.ShowRef{ShowType: ast.ShowTypeDescribe} + ref.SetSpan(invalidSpan) + switch alt.name() { + case "ShowSelect": + if isSummarize(alt.child(0)) { + ref.ShowType = ast.ShowTypeSummary + } + ref.Query = tc.transformSelectInternal(alt.child(1)) + case "ShowAllTables": + ref.ShowType = ast.ShowTypeShowUnqualified + ref.TableName = "__show_tables_expanded" + case "ShowQualifiedName": + if isSummarize(alt.child(0)) { + ref.ShowType = ast.ShowTypeSummary + } + target, ok := alt.child(1).opt() + if !ok { + shapeError(alt, "SHOW without a target") + } + _, t := target.sole().choice() + switch t.name() { + case "DescribeBaseTableName": + btr := &ast.BaseTableRef{} + btr.SetSpan(invalidSpan) + tc.fillBaseTableName(btr, t.sole()) + if btr.CatalogName == "" && btr.SchemaName == "" && + ref.ShowType == ast.ShowTypeDescribe && specialShowNames[strings.ToLower(btr.TableName)] { + ref.ShowType = ast.ShowTypeShowUnqualified + ref.TableName = "\"" + strings.ToLower(btr.TableName) + "\"" + break + } + // DESCRIBE/SUMMARIZE t wraps the relation as SELECT * FROM t + ref.Query = starSelect(btr, invalidSpan) + case "DescribeStringLiteral": + // DESCRIBE 'file.csv' wraps SELECT * FROM 'file.csv' + s, _ := t.sole().stringLit() + btr := &ast.BaseTableRef{TableName: s} + btr.SetSpan(invalidSpan) + ref.Query = starSelect(btr, invalidSpan) + } + case "ShowTables": + // 'SHOW' 'TABLES' 'FROM' QualifiedName + ref.ShowType = ast.ShowTypeShowFrom + cat, schema, name := tc.transformQualifiedNameParts(alt.child(3)) + if cat == "" && schema == "" { + schema = name + } else if cat == "" { + cat, schema = schema, name + } + ref.CatalogName, ref.SchemaName = cat, schema + default: + shapeError(alt, "unknown describe statement") + } + return starSelect(ref, invalidSpan) +} + +// isSummarize reports whether a ShowOrDescribeOrSummarize (or +// ShowOrDescribe) node spelled SUMMARIZE. +func isSummarize(n tnode) bool { + _, alt := n.sole().choice() + return alt.name() == "Summarize" +} + +// ---- samples ----------------------------------------------------------- + +// SampleClause <- (TableSample / UsingSample) SampleEntry +func (tc *transformContext) transformSampleClause(n tnode) *ast.SampleOptions { + s := &ast.SampleOptions{Seed: -1} + s.SetSpan(n.span()) + // SampleEntry <- SampleEntryFunction / SampleEntryCount + _, entry := n.child(1).sole().choice() + switch entry.name() { + case "SampleEntryCount": + // SampleCount Parens(SampleProperties)? + tc.applySampleCount(s, entry.child(0), "") + if props, ok := entry.child(1).opt(); ok { + // SampleProperties <- ColId (',' SampleSeed)? + inner := props.parens() + s.Method = formatSampleMethod(identifierText(inner.child(0))) + if seedPart, ok := inner.child(1).opt(); ok { + s.Seed = parseSeed(seedPart.child(1).sole().number()) + s.Repeatable = true + } + } + case "SampleEntryFunction": + // SampleFunction? Parens(SampleCount) RepeatableSample? + method := "" + if fn, ok := entry.child(0).opt(); ok { + method = identifierText(fn.sole()) + } + tc.applySampleCount(s, entry.child(1).parens(), method) + if rep, ok := entry.child(2).opt(); ok { + // RepeatableSample <- 'REPEATABLE' Parens(SampleSeed) + s.Seed = parseSeed(rep.child(1).parens().sole().number()) + s.Repeatable = true + } + default: + shapeError(entry, "unknown sample entry") + } + return s +} + +func parseSeed(text string) int64 { + v, err := strconv.ParseInt(text, 10, 64) + if err != nil { + raise("invalid sample seed") + } + return v +} + +// applySampleCount fills size/percentage/method from a SampleCount node. +// SampleCount <- SampleValue SampleUnit? +func (tc *transformContext) applySampleCount(s *ast.SampleOptions, n tnode, method string) { + value := n.child(0) + isPercent := false + hasUnit := false + if unit, ok := n.child(1).opt(); ok { + hasUnit = true + _, u := unit.sole().choice() + isPercent = u.name() == "SamplePercentage" + } + _ = hasUnit // a bare count is a row count + s.IsPercentage = isPercent + _, v := value.sole().choice() + if v.name() != "NumberLiteral" { + raise("parameters are not supported in SAMPLE clauses yet") + } + text := v.number() + if isPercent { + f, err := strconv.ParseFloat(text, 64) + if err != nil { + raise("invalid sample size") + } + s.SampleSize = ast.Value{Type: ast.LogicalType{ID: "DOUBLE"}, Kind: ast.ValueDouble, Float64: f} + if method == "" { + method = "system" + } + } else { + iv, err := strconv.ParseInt(text, 10, 64) + if err != nil { + raise("invalid sample size") + } + s.SampleSize = ast.Value{Type: ast.LogicalType{ID: "BIGINT"}, Kind: ast.ValueInt64, Int64: iv} + if method == "" { + method = "reservoir" + } + } + s.Method = formatSampleMethod(method) +} + +// formatSampleMethod capitalizes the method name the way DuckDB +// serializes it ("System", "Reservoir", "Bernoulli"). +func formatSampleMethod(m string) ast.SampleMethod { + if m == "" { + return "" + } + lower := strings.ToLower(m) + return ast.SampleMethod(strings.ToUpper(lower[:1]) + lower[1:]) +} + +// ExpressionStatement <- List(ExpressionAlias): a bare expression list is +// a SELECT without a FROM clause. +func init() { + register("ExpressionStatement", func(tc *transformContext, n tnode) ast.Stmt { + node := &ast.SelectNode{AggregateHandling: ast.StandardHandling} + node.SetSpan(n.span()) + empty := &ast.EmptyTableRef{} + empty.SetSpan(invalidSpan) + node.FromTable = empty + for _, e := range n.sole().listElems() { + node.SelectList = append(node.SelectList, tc.transformAliasedExpression(e)) + } + // a single bare column reference is a table query (`foo` is + // upstream's SELECT * FROM foo) + if len(node.SelectList) == 1 { + if ref, ok := node.SelectList[0].(*ast.ColumnRefExpression); ok && ref.GetAlias() == "" && len(ref.ColumnNames) <= 3 { + table := &ast.BaseTableRef{} + table.SetSpan(invalidSpan) + names := ref.ColumnNames + table.TableName = names[len(names)-1] + if len(names) >= 2 { + table.SchemaName = names[len(names)-2] + } + if len(names) == 3 { + table.CatalogName = names[0] + } + sel := starSelect(table, n.span()) + stmt := &ast.SelectStatement{Node: sel} + stmt.SetSpan(n.span()) + return stmt + } + } + stmt := &ast.SelectStatement{Node: node} + stmt.SetSpan(n.span()) + return stmt + }) +} + +// normalizeKeyword upper-cases a keyword spelling for comparisons. +func normalizeKeyword(s string) string { return strings.ToUpper(s) } diff --git a/parser/transform_single.go b/parser/transform_single.go new file mode 100644 index 0000000..96f16a3 --- /dev/null +++ b/parser/transform_single.go @@ -0,0 +1,664 @@ +// transform_single.go: the SingleExpression alternatives — literals, +// parameters, function calls, CASE/CAST/star/subquery and the special +// function forms. Port of upstream's transformer/expression/*.cpp +// (transform_constant, transform_function, transform_case, ...). +package parser + +import ( + "math" + "strconv" + "strings" + + "github.com/sqlc-dev/darkwing/ast" + "github.com/sqlc-dev/darkwing/internal/matcher" +) + +// identifierText descends single-child rules and choices to the +// identifier/keyword/string token below and returns its text. +func identifierText(n tnode) string { + switch r := n.r.(type) { + case *matcher.IdentifierResult: + return r.Identifier + case *matcher.StringResult: + return r.Value + case *matcher.KeywordResult: + return r.Keyword + case *matcher.ChoiceResult: + return identifierText(tnode{r.Result}) + case *matcher.ListResult: + if len(r.Children) == 1 { + return identifierText(tnode{r.Children[0]}) + } + case *matcher.OptionalResult: + if r.Result != nil { + return identifierText(tnode{r.Result}) + } + } + shapeError(n, "cannot extract identifier text (%T)", n.r) + return "" +} + +// identifierList maps List(X) of identifier-ish rules to their texts. +func identifierList(n tnode) []string { + elems := n.listElems() + out := make([]string, len(elems)) + for i, e := range elems { + out[i] = identifierText(e) + } + return out +} + +func (tc *transformContext) transformSingle(n tnode) ast.Expr { + _, alt := n.sole().choice() + switch alt.name() { + case "ParensExpression": + return tc.transformExpression(alt.parens()) + case "LiteralExpression": + return tc.transformLiteral(alt) + case "Parameter": + return tc.transformParameter(alt) + case "SubqueryExpression": + return tc.transformSubqueryExpr(alt) + case "SpecialFunctionExpression": + return tc.transformSpecialFunction(alt) + case "ParenthesisExpression": + // row constructor: (a, b, ...) + sp := alt.span() + inner, ok := alt.sole().parens().opt() + if !ok { + raise("empty parenthesis expression is not allowed") + } + return fnCall(sp, "row", tc.transformExpressionList(inner)...) + case "IntervalLiteral": + return tc.transformIntervalLiteral(alt) + case "TypeLiteral": + // Type StringLiteral: DATE '2020-01-01' -> CAST('...' AS DATE); + // the string constant carries no location + str, _ := alt.child(1).stringLit() + child := constExpr(invalidSpan, varcharValue(str)) + return tc.castTo(alt.span(), child, alt.child(0)) + case "CaseExpression": + return tc.transformCase(alt) + case "StarExpression": + return tc.transformStar(alt) + case "CastExpression": + // CastOrTryCast Parens(CastArguments) + _, kind := alt.child(0).sole().choice() + args := alt.child(1).parens() + child := tc.transformExpression(args.child(0)) + cast := tc.castTo(alt.span(), child, args.child(2)) + cast.TryCast = kind.name() == "TryCastKeyword" + return cast + case "GroupingExpression": + args, ok := alt.child(1).parens().opt() + var children []ast.Expr + if ok { + children = tc.transformExpressionList(args) + } + return opExpr(alt.span(), ast.GroupingFunction, children...) + case "MapExpression": + return tc.transformMap(alt) + case "FunctionExpression": + return tc.transformFunction(alt) + case "ColumnReference": + return tc.transformColumnReference(alt) + case "ListComprehensionExpression": + return tc.transformListComprehension(alt) + case "ListExpression": + return tc.transformList(alt) + case "StructExpression": + return tc.transformStruct(alt) + case "PositionalExpression": + idx, err := strconv.ParseUint(alt.child(1).number(), 10, 64) + if err != nil { + raise("invalid positional reference") + } + p := &ast.PositionalReferenceExpression{Index: idx} + p.SetSpan(alt.span()) + return p + case "DefaultExpression": + d := &ast.DefaultExpression{} + d.SetSpan(alt.span()) + return d + } + shapeError(alt, "unknown SingleExpression alternative") + return nil +} + +// castTo builds a CastExpression to the given Type rule node. Explicit +// casts always stay unbound (only the interval-literal desugaring +// pre-resolves types). +func (tc *transformContext) castTo(sp ast.Span, child ast.Expr, typeNode tnode) *ast.CastExpression { + cast := &ast.CastExpression{Child: child, CastType: tc.transformType(typeNode)} + cast.SetSpan(sp) + return cast +} + +// ---- literals ---------------------------------------------------------- + +func (tc *transformContext) transformLiteral(n tnode) ast.Expr { + _, alt := n.sole().choice() + switch { + case alt.name() == "StringLiteral" || alt.isString(): + s, kind := alt.stringLit() + return tc.stringConstant(alt.span(), s, kind) + case alt.name() == "NumberLiteral": + return numberConstant(alt.span(), alt.number()) + case alt.name() == "ConstantLiteral": + _, lit := alt.sole().choice() + sp := lit.sole().span() + switch lit.name() { + case "NullLiteral": + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "NULL"}, IsNull: true, Kind: ast.ValueNull}) + case "TrueLiteral": + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "BOOLEAN"}, Kind: ast.ValueBool, Bool: true}) + case "FalseLiteral": + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "BOOLEAN"}, Kind: ast.ValueBool, Bool: false}) + } + } + shapeError(alt, "unknown literal") + return nil +} + +// stringConstant builds the constant for a string literal, honoring the +// prefix kind. +func (tc *transformContext) stringConstant(sp ast.Span, s string, kind matcher.StringKind) ast.Expr { + switch kind { + case matcher.StringHexadecimal: + // X'FF' -> BLOB \xFF + blob, ok := hexToBlob(s) + if !ok { + raise("invalid hexadecimal string literal") + } + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "BLOB"}, Kind: ast.ValueString, Str: blob}) + case matcher.StringBit: + // B'1010' stays a VARCHAR "b1010" at parse time (the binder + // converts it) + return constExpr(sp, varcharValue("b"+s)) + case matcher.StringNational: + // N'abc' -> CAST('abc' AS VARCHAR) + child := constExpr(invalidSpan, varcharValue(s)) + cast := &ast.CastExpression{Child: child, ResolvedType: "VARCHAR"} + cast.SetSpan(sp) + return cast + case matcher.StringEscape: + return constExpr(sp, varcharValue(unescapeString(s))) + default: + return constExpr(sp, varcharValue(s)) + } +} + +// unescapeString processes E'...' backslash escapes the way upstream +// does: the C escapes, \xHH hex and \ooo octal; any other escaped +// character stands for itself. +func unescapeString(s string) string { + var sb strings.Builder + for i := 0; i < len(s); i++ { + c := s[i] + if c != '\\' || i+1 >= len(s) { + sb.WriteByte(c) + continue + } + i++ + switch e := s[i]; e { + case 'b': + sb.WriteByte('\b') + case 'f': + sb.WriteByte('\f') + case 'n': + sb.WriteByte('\n') + case 'r': + sb.WriteByte('\r') + case 't': + sb.WriteByte('\t') + case 'x': + v, n := 0, 0 + for n < 2 && i+1 < len(s) && isHexDigit(s[i+1]) { + i++ + n++ + v = v*16 + hexVal(s[i]) + } + if n == 0 { + sb.WriteByte('x') + } else { + sb.WriteByte(byte(v)) + } + case '0', '1', '2', '3', '4', '5', '6', '7': + v := int(e - '0') + for n := 1; n < 3 && i+1 < len(s) && s[i+1] >= '0' && s[i+1] <= '7'; n++ { + i++ + v = v*8 + int(s[i]-'0') + } + sb.WriteByte(byte(v)) + default: + sb.WriteByte(e) + } + } + return sb.String() +} + +func isHexDigit(c byte) bool { + return c >= '0' && c <= '9' || c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F' +} + +func hexVal(c byte) int { + switch { + case c >= '0' && c <= '9': + return int(c - '0') + case c >= 'a' && c <= 'f': + return int(c-'a') + 10 + default: + return int(c-'A') + 10 + } +} + +func hexToBlob(s string) (string, bool) { + if len(s)%2 != 0 { + return "", false + } + var sb strings.Builder + for i := 0; i < len(s); i += 2 { + b, err := strconv.ParseUint(s[i:i+2], 16, 8) + if err != nil { + return "", false + } + sb.WriteByte(byte(b)) + } + return sb.String(), true +} + +// integerTypeFor picks the narrowest DuckDB integer class upstream uses +// for integer literals. +func integerTypeFor(v int64) string { + if v >= math.MinInt32 && v <= math.MaxInt32 { + return "INTEGER" + } + return "BIGINT" +} + +// numberConstant ports upstream's TransformNumberLiteral: integers become +// INTEGER/BIGINT/HUGEINT (then DOUBLE), plain decimals become DECIMAL +// with derived width/scale (up to width 38), exponent forms become +// DOUBLE. +func numberConstant(sp ast.Span, text string) ast.Expr { + clean := strings.ReplaceAll(text, "_", "") + lower := strings.ToLower(clean) + if strings.ContainsAny(lower, "e") { + f, err := strconv.ParseFloat(clean, 64) + if err != nil { + raise("invalid number literal \"%s\"", text) + } + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "DOUBLE"}, Kind: ast.ValueDouble, Float64: f}) + } + if dot := strings.IndexByte(clean, '.'); dot >= 0 { + return decimalConstant(sp, clean, dot) + } + // integer path + if v, err := strconv.ParseInt(clean, 10, 64); err == nil { + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: integerTypeFor(v)}, Kind: ast.ValueInt64, Int64: v}) + } + if h, ok := parseHugeint(clean); ok { + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "HUGEINT"}, Kind: ast.ValueHugeint, Hugeint: h}) + } + if h, ok := parseUint128(clean); ok { + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "UHUGEINT"}, Kind: ast.ValueHugeint, Hugeint: h}) + } + f, err := strconv.ParseFloat(clean, 64) + if err != nil { + raise("invalid number literal \"%s\"", text) + } + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "DOUBLE"}, Kind: ast.ValueDouble, Float64: f}) +} + +// decimalConstant derives DECIMAL(width, scale) from the literal's +// digits: width counts the integer digits as written (leading zeros +// included) plus the scale; literals too wide for DECIMAL(38) fall back +// to DOUBLE. +func decimalConstant(sp ast.Span, clean string, dot int) ast.Expr { + intPart := strings.TrimLeft(clean[:dot], "+-") + fracPart := clean[dot+1:] + digits := strings.TrimLeft(intPart, "0") + scale := len(fracPart) + width := len(intPart) + scale + if width == 0 { + width = 1 + } + if width > 38 { + f, err := strconv.ParseFloat(clean, 64) + if err != nil { + raise("invalid number literal \"%s\"", clean) + } + return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "DOUBLE"}, Kind: ast.ValueDouble, Float64: f}) + } + unscaled := digits + fracPart + if unscaled == "" { + unscaled = "0" + } + typ := ast.LogicalType{ID: "DECIMAL", Width: width, Scale: scale} + if v, err := strconv.ParseInt(unscaled, 10, 64); err == nil && width <= 18 { + return constExpr(sp, ast.Value{Type: typ, Kind: ast.ValueInt64, Int64: v}) + } + h, ok := parseHugeint(unscaled) + if !ok { + raise("invalid number literal \"%s\"", clean) + } + return constExpr(sp, ast.Value{Type: typ, Kind: ast.ValueHugeint, Hugeint: h}) +} + +// parseHugeint parses a decimal digit string into a 128-bit integer. +func parseHugeint(s string) (ast.Hugeint, bool) { + neg := false + if strings.HasPrefix(s, "-") { + neg, s = true, s[1:] + } else if strings.HasPrefix(s, "+") { + s = s[1:] + } + if s == "" { + return ast.Hugeint{}, false + } + var hi uint64 // upper 64 bits (unsigned during accumulation) + var lo uint64 + for i := 0; i < len(s); i++ { + c := s[i] + if c < '0' || c > '9' { + return ast.Hugeint{}, false + } + // value = value*10 + d, 128-bit + var carry uint64 + lo, carry = mul64(lo, 10) + hiNew := hi*10 + carry + if hiNew < carry { + return ast.Hugeint{}, false + } + hi = hiNew + lo += uint64(c - '0') + if lo < uint64(c-'0') { + hi++ + if hi == 0 { + return ast.Hugeint{}, false + } + } + } + // range check: |v| < 2^127 (DuckDB's HUGEINT min is -(2^127-1)) + if hi > math.MaxInt64 { + return ast.Hugeint{}, false + } + h := ast.Hugeint{Upper: int64(hi), Lower: lo} + if neg { + h = negateHugeint(h) + } + return h, true +} + +// parseUint128 parses literals in (2^127-1, 2^128-1] as UHUGEINT. +func parseUint128(s string) (ast.Hugeint, bool) { + if strings.HasPrefix(s, "+") { + s = s[1:] + } + if s == "" || strings.HasPrefix(s, "-") { + return ast.Hugeint{}, false + } + var hi, lo uint64 + for i := 0; i < len(s); i++ { + c := s[i] + if c < '0' || c > '9' { + return ast.Hugeint{}, false + } + var carry uint64 + lo, carry = mul64(lo, 10) + if hi > (math.MaxUint64-carry)/10 { + return ast.Hugeint{}, false + } + hi = hi*10 + carry + d := uint64(c - '0') + lo += d + if lo < d { + if hi == math.MaxUint64 { + return ast.Hugeint{}, false + } + hi++ + } + } + return ast.Hugeint{Upper: int64(hi), Lower: lo}, true +} + +func mul64(v, by uint64) (lo, carry uint64) { + const mask = 0xffffffff + vlo := v & mask + vhi := v >> 32 + l := vlo * by + h := vhi*by + (l >> 32) + return (h&mask)<<32 | (l & mask), h >> 32 +} + +// ---- parameters -------------------------------------------------------- + +func (tc *transformContext) transformParameter(n tnode) ast.Expr { + _, alt := n.sole().choice() + p := &ast.ParameterExpression{} + p.SetSpan(alt.span()) + switch alt.name() { + case "QuestionMarkNumberedParameter": + p.Kind = ast.ParameterQuestionNumbered + p.Number = atoiOrRaise(alt.child(1).number()) + case "AnonymousParameter": + p.Kind = ast.ParameterAnonymous + case "NumberedParameter": + p.Kind = ast.ParameterNumbered + p.Number = atoiOrRaise(alt.child(1).number()) + case "ColLabelParameter": + p.Kind = ast.ParameterNamed + p.Name = identifierText(alt.child(1)) + default: + shapeError(alt, "unknown parameter form") + } + tc.registerParam(p) + return p +} + +func atoiOrRaise(s string) int { + v, err := strconv.Atoi(s) + if err != nil { + raise("invalid parameter number \"%s\"", s) + } + return v +} + +// ---- subqueries, case, star ------------------------------------------- + +// SubqueryExpression <- SubqueryNot? SubqueryExists? SubqueryReference +func (tc *transformContext) transformSubqueryExpr(n tnode) ast.Expr { + _, hasNot := n.child(0).opt() + _, hasExists := n.child(1).opt() + stmt := tc.transformSelectInternalStatement(n.child(2).sole().parens()) + sub := &ast.SubqueryExpression{Subquery: stmt, ComparisonType: ast.InvalidExpressionType} + sub.SetSpan(n.span()) + if hasExists { + sub.SubqueryType = ast.SubqueryExists + } else { + sub.SubqueryType = ast.SubqueryScalar + } + if hasNot { + return notExpr(n.span(), sub) + } + return sub +} + +// CaseExpression <- 'CASE' Expression? CaseWhenThen+ CaseElse? 'END' +func (tc *transformContext) transformCase(n tnode) ast.Expr { + c := &ast.CaseExpression{} + c.SetSpan(n.span()) + var operand ast.Expr + if op, ok := n.child(1).opt(); ok { + operand = tc.transformExpression(op) + } + for _, arm := range n.child(2).repeat() { + when := tc.transformExpression(arm.child(1)) + then := tc.transformExpression(arm.child(3)) + if operand != nil { + // synthesized `operand = when`, location-free like upstream + cmp := &ast.ComparisonExpression{Type: ast.CompareEqual, Left: operand, Right: when} + cmp.SetSpan(invalidSpan) + when = cmp + } + c.CaseChecks = append(c.CaseChecks, ast.CaseCheck{When: when, Then: then}) + } + if els, ok := n.child(3).opt(); ok { + c.ElseExpr = tc.transformExpression(els.child(1)) + } else { + c.ElseExpr = constExpr(invalidSpan, ast.Value{Type: ast.LogicalType{ID: "NULL"}, IsNull: true, Kind: ast.ValueNull}) + } + return c +} + +// StarExpression <- StarQualifierList? '*' ExcludeList? ReplaceList? RenameList? +func (tc *transformContext) transformStar(n tnode) ast.Expr { + star := &ast.StarExpression{} + star.SetSpan(n.span()) + if quals, ok := n.child(0).opt(); ok { + var parts []string + for _, q := range quals.sole().repeat() { + parts = append(parts, identifierText(q.child(0))) + } + star.RelationName = strings.Join(parts, ".") + } + if excl, ok := n.child(2).opt(); ok { + // ExcludeList <- ExcludeOrExcept ExcludeNames + _, names := excl.child(1).sole().choice() + var entries []tnode + if names.name() == "ExcludeNameList" { + entries = names.sole().parens().listElems() + } else { + entries = []tnode{names.sole()} + } + for _, e := range entries { + path := excludeNamePath(e) + if len(path) == 1 { + star.ExcludeList = append(star.ExcludeList, path[0]) + } else { + star.QualifiedExcludeList = append(star.QualifiedExcludeList, ast.QualifiedColumnName{Path: path}) + } + } + + } + if repl, ok := n.child(3).opt(); ok { + // ReplaceList <- 'REPLACE' ReplaceEntries + _, entriesAlt := repl.child(1).sole().choice() + var entries []tnode + if entriesAlt.name() == "ReplaceEntryList" { + entries = entriesAlt.sole().parens().listElems() + } else { + entries = []tnode{entriesAlt.sole()} + } + for _, e := range entries { + // ReplaceEntry <- Expression 'AS' ColumnReference + expr := tc.transformExpression(e.child(0)) + ref := tc.transformColumnReference(e.child(2)) + cr, ok := ref.(*ast.ColumnRefExpression) + if !ok || len(cr.ColumnNames) != 1 { + raise("REPLACE target must be a single column name") + } + star.ReplaceList = append(star.ReplaceList, ast.StarReplaceEntry{Key: cr.ColumnNames[0], Expr: expr}) + } + } + if ren, ok := n.child(4).opt(); ok { + // RenameList <- 'RENAME' RenameEntries + _, entriesAlt := ren.child(1).sole().choice() + var entries []tnode + if entriesAlt.name() == "RenameEntryList" { + entries = entriesAlt.sole().parens().listElems() + } else { + entries = []tnode{entriesAlt.sole()} + } + for _, e := range entries { + // RenameEntry <- ExcludeName 'AS' Identifier + path := excludeNamePath(e.child(0)) + star.RenameList = append(star.RenameList, ast.StarRenameEntry{ + Key: ast.QualifiedColumnName{Path: path}, + Name: identifierText(e.child(2)), + }) + } + } + return star +} + +// excludeNamePath extracts the dotted path of an ExcludeName. +func excludeNamePath(n tnode) []string { + _, alt := n.sole().choice() + switch alt.name() { + case "ExcludeDottedName": + // DottedIdentifier <- Identifier DotColLabel* + d := alt.sole() + path := []string{identifierText(d.child(0))} + for _, dot := range d.child(1).repeat() { + path = append(path, identifierText(dot.child(1))) + } + return path + case "ExcludeColumnName": + return []string{identifierText(alt.sole())} + } + shapeError(alt, "unknown exclude name") + return nil +} + +// ---- column references ------------------------------------------------- + +func (tc *transformContext) transformColumnReference(n tnode) ast.Expr { + _, alt := n.sole().choice() + var names []string + switch alt.name() { + case "CatalogReservedSchemaTableColumnName": + names = qualificationChain(alt, 4) + case "SchemaReservedTableColumnName": + names = qualificationChain(alt, 3) + case "TableReservedColumnName": + names = qualificationChain(alt, 2) + case "NestedColumnName": + // IdentifierDot* ColumnName + var spans []ast.Span + for _, id := range alt.child(0).repeat() { + names = append(names, identifierText(id.child(0))) + spans = append(spans, id.child(0).span()) + } + names = append(names, identifierText(alt.child(1))) + spans = append(spans, alt.child(1).span()) + if len(names) > 4 { + return deepColumnRef(n.span(), names, spans) + } + default: + shapeError(alt, "unknown column reference") + } + ref := &ast.ColumnRefExpression{ColumnNames: names} + ref.SetSpan(n.span()) + return ref +} + +// deepColumnRef splits a >4-part dotted path: the first four parts stay +// a column reference (catalog.schema.table.column), the rest become +// struct extraction. Only the outermost extract carries the full +// location; the keys span their dot through their identifier. +func deepColumnRef(whole ast.Span, names []string, spans []ast.Span) ast.Expr { + ref := &ast.ColumnRefExpression{ColumnNames: names[:4]} + ref.SetSpan(ast.Span{Start: whole.Start, End: spans[3].End}) + var out ast.Expr = ref + for i := 4; i < len(names); i++ { + key := constExpr(ast.Span{Start: spans[i-1].End, End: spans[i].End}, varcharValue(names[i])) + sp := invalidSpan + if i == len(names)-1 { + sp = whole + } + out = opExpr(sp, ast.StructExtract, out, key) + } + return out +} + +// qualificationChain reads count-1 qualification nodes (each `Name '.'`) +// plus the final name from a qualification rule node. +func qualificationChain(n tnode, count int) []string { + names := make([]string, 0, count) + for i := 0; i < count-1; i++ { + names = append(names, identifierText(n.child(i).child(0))) + } + names = append(names, identifierText(n.child(count-1))) + return names +} diff --git a/parser/transform_tableref.go b/parser/transform_tableref.go new file mode 100644 index 0000000..255ef7f --- /dev/null +++ b/parser/transform_tableref.go @@ -0,0 +1,847 @@ +// transform_tableref.go: FROM-clause table references — base tables, +// subqueries, table functions, joins, VALUES lists and PIVOT/UNPIVOT. +// Port of upstream's transform_tableref/*.cpp. +package parser + +import ( + "strconv" + "strings" + "time" + + "github.com/sqlc-dev/darkwing/ast" +) + +// FromClause <- 'FROM' List(TableRef): comma entries fold into implicit +// cross joins. +func (tc *transformContext) transformFromClause(n tnode) ast.TableRef { + refs := n.child(1).listElems() + result := tc.transformTableRef(refs[0]) + for _, r := range refs[1:] { + right := tc.transformTableRef(r) + join := &ast.JoinRef{ + Left: result, Right: right, + JoinType: ast.JoinInner, RefType: ast.JoinRefCross, + IsImplicit: true, + NearestCount: 1, + NearestOrderType: ast.OrderAscending, + } + // only the outermost implicit join carries the FROM clause's + // location; inner ones have none + join.SetSpan(invalidSpan) + result = join + } + if join, ok := result.(*ast.JoinRef); ok && join.IsImplicit { + join.SetSpan(n.span()) + } + return result +} + +func newJoinRef(left, right ast.TableRef) *ast.JoinRef { + j := &ast.JoinRef{ + Left: left, Right: right, + JoinType: ast.JoinInner, RefType: ast.JoinRefRegular, + NearestCount: 1, + NearestOrderType: ast.OrderAscending, + } + if left != nil && right != nil { + j.SetSpan(ast.Span{Start: left.Pos(), End: right.End()}) + } + return j +} + +// TableRef <- InnerTableRef JoinOrPivot* +func (tc *transformContext) transformTableRef(n tnode) ast.TableRef { + ref := tc.transformInnerTableRef(n.child(0)) + for _, jp := range n.child(1).repeat() { + ref = tc.transformJoinOrPivot(ref, jp) + } + return ref +} + +// InnerTableRef <- ValuesRef / TableFunction / TableSubquery / BaseTableRef / ParensTableRef +func (tc *transformContext) transformInnerTableRef(n tnode) ast.TableRef { + _, alt := n.sole().choice() + switch alt.name() { + case "ValuesRef": + // ValuesClause TableAlias? — a VALUES ref in FROM position is + // always wrapped in a subquery (SELECT * FROM valueslist), the + // alias landing on the wrapper + ref := tc.transformValuesClause(alt.child(0)) + ref.Alias = "valueslist" + sub := &ast.SubqueryRef{Subquery: &ast.SelectStatement{Node: starSelect(ref, invalidSpan)}} + sub.SetSpan(alt.span()) + if aliasNode, ok := alt.child(1).opt(); ok { + sub.Alias, sub.ColumnNameAlias = tc.transformTableAlias(aliasNode) + } + return sub + case "TableFunction": + return tc.transformTableFunction(alt) + case "TableSubquery": + // Lateral? SubqueryReference TableAlias? — the location covers only + // the parenthesized subquery, not the alias + ref := &ast.SubqueryRef{Subquery: tc.transformSelectInternalStatement(alt.child(1).sole().parens())} + ref.SetSpan(alt.child(1).span()) + if aliasNode, ok := alt.child(2).opt(); ok { + ref.Alias, ref.ColumnNameAlias = tc.transformTableAlias(aliasNode) + } + return ref + 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 + } + shapeError(alt, "unknown inner table ref") + return nil +} + +// setRefAlias assigns the alias on any table ref type. +func setRefAlias(ref ast.TableRef, alias string) { + switch r := ref.(type) { + case *ast.BaseTableRef: + r.Alias = alias + case *ast.SubqueryRef: + r.Alias = alias + case *ast.TableFunctionRef: + r.Alias = alias + case *ast.ExpressionListRef: + r.Alias = alias + case *ast.JoinRef: + r.Alias = alias + case *ast.PivotRef: + r.Alias = alias + case *ast.ShowRef: + r.Alias = alias + case *ast.EmptyTableRef: + r.Alias = alias + } +} + +// setRefColumnAliases assigns column aliases on any table ref type. +func setRefColumnAliases(ref ast.TableRef, cols []string) { + switch r := ref.(type) { + case *ast.BaseTableRef: + r.ColumnNameAlias = cols + case *ast.SubqueryRef: + r.ColumnNameAlias = cols + case *ast.TableFunctionRef: + r.ColumnNameAlias = cols + case *ast.ExpressionListRef: + r.ExpectedNames = cols + case *ast.JoinRef: + r.ColumnNameAlias = cols + case *ast.PivotRef: + r.ColumnNameAlias = cols + } +} + +func setRefSample(ref ast.TableRef, sample *ast.SampleOptions) { + switch r := ref.(type) { + case *ast.BaseTableRef: + r.Sample = sample + case *ast.SubqueryRef: + r.Sample = sample + case *ast.TableFunctionRef: + r.Sample = sample + case *ast.ExpressionListRef: + r.Sample = sample + case *ast.JoinRef: + r.Sample = sample + case *ast.PivotRef: + r.Sample = sample + } +} + +// BaseTableRef <- TableAliasColon? BaseTableName TableAlias? AtClause? SampleClause? +func (tc *transformContext) transformBaseTableRef(n tnode) ast.TableRef { + ref := &ast.BaseTableRef{} + // the ref's location spans the name plus alias/AT clauses + ref.SetSpan(n.span()) + tc.fillBaseTableName(ref, n.child(1)) + if colon, ok := n.child(0).opt(); ok { + ref.Alias = identifierText(colon.child(0)) + } + if aliasNode, ok := n.child(2).opt(); ok { + ref.Alias, ref.ColumnNameAlias = tc.transformTableAlias(aliasNode) + } + if at, ok := n.child(3).opt(); ok { + ref.At = tc.transformAtClause(at) + } + if sc, ok := n.child(4).opt(); ok { + ref.Sample = tc.transformSampleClause(sc) + } + return ref +} + +// fillBaseTableName fills catalog/schema/table from a BaseTableName node. +// BaseTableName <- CatalogReservedSchemaTable / SchemaReservedTable / +// UnqualifiedBaseTableName +func (tc *transformContext) fillBaseTableName(ref *ast.BaseTableRef, n tnode) { + _, alt := n.sole().choice() + switch alt.name() { + case "CatalogReservedSchemaTable": + ref.CatalogName = identifierText(alt.child(0).child(0)) + ref.SchemaName = identifierText(alt.child(1).child(0)) + ref.TableName = identifierText(alt.child(2)) + case "SchemaReservedTable": + ref.SchemaName = identifierText(alt.child(0).child(0)) + ref.TableName = identifierText(alt.child(1)) + case "UnqualifiedBaseTableName": + ref.TableName = identifierText(alt.sole()) + default: + shapeError(alt, "unknown base table name") + } +} + +// transformQualifiedNameParts splits a QualifiedName rule node. +// QualifiedName <- CatalogReservedSchemaIdentifier / +// SchemaReservedIdentifierOrStringLiteral / IdentifierOrStringLiteral +func (tc *transformContext) transformQualifiedNameParts(n tnode) (catalog, schema, name string) { + _, alt := n.sole().choice() + switch alt.name() { + case "CatalogReservedSchemaIdentifier": + catalog = identifierText(alt.child(0).child(0)) + schema = identifierText(alt.child(1).child(0)) + name = identifierText(alt.child(2)) + case "SchemaReservedIdentifierOrStringLiteral": + schema = identifierText(alt.child(0).child(0)) + name = identifierText(alt.child(1)) + case "IdentifierOrStringLiteral": + name = identifierText(alt) + default: + shapeError(alt, "unknown qualified name") + } + return catalog, schema, name +} + +// TableAlias <- TableAliasAs / TableAliasWithoutAs +func (tc *transformContext) transformTableAlias(n tnode) (string, []string) { + _, alt := n.sole().choice() + var alias string + var colNode tnode + var hasCols bool + switch alt.name() { + case "TableAliasAs": + alias = identifierText(alt.child(1)) + colNode, hasCols = alt.child(2).opt() + case "TableAliasWithoutAs": + alias = identifierText(alt.child(0)) + colNode, hasCols = alt.child(1).opt() + default: + shapeError(alt, "unknown table alias") + } + var cols []string + if hasCols { + cols = identifierList(colNode.sole().parens()) + } + return alias, cols +} + +// AtClause <- 'AT' Parens(AtSpecifier) +func (tc *transformContext) transformAtClause(n tnode) *ast.AtClause { + spec := n.child(1).parens() + at := &ast.AtClause{} + at.SetSpan(n.span()) + _, unit := spec.child(0).sole().choice() + if unit.name() == "VersionAtUnit" { + at.Unit = ast.AtVersion + } else { + at.Unit = ast.AtTimestamp + } + at.Expr = tc.transformExpression(spec.child(2)) + return at +} + +// ValuesClause <- 'VALUES' List(ValuesExpressions) +func (tc *transformContext) transformValuesClause(n tnode) *ast.ExpressionListRef { + ref := &ast.ExpressionListRef{} + ref.SetSpan(invalidSpan) + for _, row := range n.child(1).listElems() { + ref.Values = append(ref.Values, tc.transformExpressionList(row.sole().parens())) + } + return ref +} + +// TableFunction <- TableFunctionLateralOpt / TableFunctionAliasColon +func (tc *transformContext) transformTableFunction(n tnode) ast.TableRef { + _, alt := n.sole().choice() + ref := &ast.TableFunctionRef{} + ref.SetSpan(alt.span()) + var qualified, args, ordinality tnode + switch alt.name() { + case "TableFunctionLateralOpt": + // Lateral? QualifiedTableFunction TableFunctionArguments WithOrdinality? TableAlias? + qualified, args, ordinality = alt.child(1), alt.child(2), alt.child(3) + if aliasNode, ok := alt.child(4).opt(); ok { + ref.Alias, ref.ColumnNameAlias = tc.transformTableAlias(aliasNode) + } + case "TableFunctionAliasColon": + // TableAliasColon QualifiedTableFunction TableFunctionArguments WithOrdinality? SampleClause? + ref.Alias = identifierText(alt.child(0).child(0)) + qualified, args, ordinality = alt.child(1), alt.child(2), alt.child(3) + if sc, ok := alt.child(4).opt(); ok { + ref.Sample = tc.transformSampleClause(sc) + } + default: + shapeError(alt, "unknown table function") + } + if _, ok := ordinality.opt(); ok { + ref.WithOrdinality = true + } + // QualifiedTableFunction <- CatalogQualification? SchemaQualification? TableFunctionName + fn := &ast.FunctionExpression{} + fn.SetSpan(invalidSpan) + if cq, ok := qualified.child(0).opt(); ok { + fn.Catalog = identifierText(cq.child(0)) + } + if sq, ok := qualified.child(1).opt(); ok { + fn.Schema = identifierText(sq.child(0)) + } + if fn.Catalog != "" && fn.Schema == "" { + fn.Catalog, fn.Schema = "", fn.Catalog + } + fn.FunctionName = strings.ToLower(identifierText(qualified.child(2))) + // TableFunctionArguments <- Parens(List(FunctionArgument)?) + if list, ok := args.sole().parens().opt(); ok { + for _, a := range list.listElems() { + fn.Arguments = append(fn.Arguments, tc.transformFunctionArgument(a)) + } + } + // values(...) is a VALUES list, wrapped like any FROM-position VALUES + if fn.FunctionName == "values" && fn.Schema == "" && fn.Catalog == "" { + el := &ast.ExpressionListRef{} + el.SetSpan(invalidSpan) + el.Alias = "valueslist" + var row []ast.Expr + for _, a := range fn.Arguments { + row = append(row, a.Expr) + } + el.Values = [][]ast.Expr{row} + sub := &ast.SubqueryRef{Subquery: &ast.SelectStatement{Node: starSelect(el, invalidSpan)}} + sub.SetSpan(alt.span()) + sub.Alias, sub.ColumnNameAlias = ref.Alias, ref.ColumnNameAlias + return sub + } + ref.Function = fn + return ref +} + +// ---- joins ------------------------------------------------------------- + +// JoinOrPivot <- JoinClause / TablePivotClause / TableUnpivotClause +func (tc *transformContext) transformJoinOrPivot(left ast.TableRef, n tnode) ast.TableRef { + _, alt := n.sole().choice() + switch alt.name() { + case "JoinClause": + out := tc.transformJoinClause(left, alt) + if j, ok := out.(*ast.JoinRef); ok { + // the join's location is the join clause itself + j.SetSpan(alt.span()) + } + return out + case "TablePivotClause": + return tc.transformTablePivot(left, alt) + case "TableUnpivotClause": + return tc.transformTableUnpivot(left, alt) + } + shapeError(alt, "unknown join-or-pivot") + return nil +} + +// JoinClause <- JoinByClause / RegularJoinClause / JoinWithoutOnClause / NearestJoinClause +func (tc *transformContext) transformJoinClause(left ast.TableRef, n tnode) ast.TableRef { + _, alt := n.sole().choice() + switch alt.name() { + case "RegularJoinClause": + // Asof? JoinType? 'JOIN' TableRef JoinQualifier + join := newJoinRef(left, tc.transformTableRef(alt.child(3))) + if _, asof := alt.child(0).opt(); asof { + join.RefType = ast.JoinRefAsof + } + if jt, ok := alt.child(1).opt(); ok { + join.JoinType = joinTypeOf(jt) + } + tc.applyJoinQualifier(join, alt.child(4)) + return join + case "JoinByClause": + // 'JOIN' 'BY' Parens('TYPE' ColLabel) TableRef JoinQualifier + join := newJoinRef(left, tc.transformTableRef(alt.child(3))) + label := identifierText(alt.child(2).parens().child(1)) + join.JoinType = joinTypeFromLabel(label) + tc.applyJoinQualifier(join, alt.child(4)) + return join + case "JoinWithoutOnClause": + // JoinPrefix 'JOIN' InnerTableRef + join := newJoinRef(left, tc.transformInnerTableRef(alt.child(2))) + _, prefix := alt.child(0).sole().choice() + switch prefix.name() { + case "CrossJoinPrefix": + join.RefType = ast.JoinRefCross + case "NaturalJoinPrefix": + join.RefType = ast.JoinRefNatural + if jt, ok := prefix.child(1).opt(); ok { + join.JoinType = joinTypeOf(jt) + } + case "PositionalJoinPrefix": + join.RefType = ast.JoinRefPositional + } + return join + case "NearestJoinClause": + return tc.transformNearestJoin(left, alt) + } + shapeError(alt, "unknown join clause") + return nil +} + +// joinTypeOf maps a JoinType rule node. +func joinTypeOf(n tnode) ast.JoinType { + _, alt := n.sole().choice() + switch alt.name() { + case "FullJoin": + return ast.JoinFull + case "LeftJoin": + return ast.JoinLeft + case "RightJoin": + return ast.JoinRight + case "SemiJoin": + return ast.JoinSemi + case "AntiJoin": + return ast.JoinAnti + } + return ast.JoinInner +} + +func joinTypeFromLabel(label string) ast.JoinType { + switch normalizeKeyword(label) { + case "FULL", "OUTER": + return ast.JoinFull + case "LEFT": + return ast.JoinLeft + case "RIGHT": + return ast.JoinRight + case "SEMI": + return ast.JoinSemi + case "ANTI": + return ast.JoinAnti + case "INNER": + return ast.JoinInner + } + raise("unsupported join type \"%s\" in JOIN BY", label) + return ast.JoinInner +} + +// applyJoinQualifier fills ON/USING. +// JoinQualifier <- OnClause / UsingClause +func (tc *transformContext) applyJoinQualifier(join *ast.JoinRef, n tnode) { + _, alt := n.sole().choice() + switch alt.name() { + case "OnClause": + join.Condition = tc.transformExpression(alt.child(1)) + case "UsingClause": + join.UsingColumns = identifierList(alt.child(1).parens()) + default: + shapeError(alt, "unknown join qualifier") + } +} + +// NearestJoinClause <- NearestJoinBare / NearestJoinAliased +func (tc *transformContext) transformNearestJoin(left ast.TableRef, n tnode) ast.TableRef { + _, alt := n.sole().choice() + var right ast.TableRef + switch alt.name() { + case "NearestJoinAliased": + right = tc.transformTableRef(alt.child(2)) + case "NearestJoinBare": + right = tc.transformNearestBareRef(alt.child(2)) + default: + shapeError(alt, "unknown nearest join") + } + join := newJoinRef(left, right) + join.RefType = ast.JoinRefNearest + if jt, ok := alt.child(0).opt(); ok { + join.JoinType = joinTypeOf(jt) + } + if ae, ok := alt.child(3).opt(); ok { + _, kind := ae.sole().choice() + join.NearestApprox = kind.name() == "NearestApprox" + } + if num, ok := alt.child(5).opt(); ok { + v, err := strconv.ParseInt(num.number(), 10, 64) + if err != nil { + raise("invalid NEAREST count") + } + join.NearestCount = v + } + _, ds := alt.child(7).sole().choice() + if ds.name() == "NearestSimilarity" { + join.NearestOrderType = ast.OrderDescending + } else { + join.NearestOrderType = ast.OrderAscending + } + join.RankingExpression = tc.transformExpression(alt.child(8)) + return join +} + +// NearestBareTableRef <- NearestValuesRef / NearestTableFunction / +// NearestTableSubquery / NearestBaseTableRef / NearestParensTableRef +func (tc *transformContext) transformNearestBareRef(n tnode) ast.TableRef { + _, alt := n.sole().choice() + switch alt.name() { + case "NearestValuesRef": + return tc.transformValuesClause(alt.sole()) + case "NearestTableFunction": + // Lateral? QualifiedTableFunction TableFunctionArguments WithOrdinality? + ref := &ast.TableFunctionRef{} + ref.SetSpan(alt.span()) + qualified := alt.child(1) + fn := &ast.FunctionExpression{FunctionName: strings.ToLower(identifierText(qualified.child(2)))} + if cq, ok := qualified.child(0).opt(); ok { + fn.Schema = identifierText(cq.child(0)) + } + if sq, ok := qualified.child(1).opt(); ok { + if fn.Schema != "" { + fn.Catalog, fn.Schema = fn.Schema, identifierText(sq.child(0)) + } else { + fn.Schema = identifierText(sq.child(0)) + } + } + if list, ok := alt.child(2).sole().parens().opt(); ok { + for _, a := range list.listElems() { + fn.Arguments = append(fn.Arguments, tc.transformFunctionArgument(a)) + } + } + if _, ok := alt.child(3).opt(); ok { + ref.WithOrdinality = true + } + ref.Function = fn + return ref + case "NearestTableSubquery": + ref := &ast.SubqueryRef{Subquery: tc.transformSelectInternalStatement(alt.child(1).sole().parens())} + ref.SetSpan(alt.span()) + return ref + case "NearestBaseTableRef": + ref := &ast.BaseTableRef{} + ref.SetSpan(alt.span()) + tc.fillBaseTableName(ref, alt.child(0)) + if at, ok := alt.child(1).opt(); ok { + ref.At = tc.transformAtClause(at) + } + if sc, ok := alt.child(2).opt(); ok { + ref.Sample = tc.transformSampleClause(sc) + } + return ref + case "NearestParensTableRef": + inner := tc.transformTableRef(alt.child(0).parens()) + if sc, ok := alt.child(1).opt(); ok { + setRefSample(inner, tc.transformSampleClause(sc)) + } + return inner + } + shapeError(alt, "unknown nearest bare table ref") + return nil +} + +// ---- PIVOT / UNPIVOT --------------------------------------------------- + +// TablePivotClause <- 'PIVOT' Parens(TablePivotClauseBody) TableAlias? +func (tc *transformContext) transformTablePivot(left ast.TableRef, n tnode) ast.TableRef { + body := n.child(1).parens() + ref := &ast.PivotRef{Source: left} + // the ref's location is the parenthesized pivot body + ref.SetSpan(body.span()) + // TablePivotClauseBody <- TargetList 'FOR' PivotValueList+ PivotGroupByList? + for _, e := range body.child(0).listElems() { + ref.Aggregates = append(ref.Aggregates, tc.transformAliasedExpression(e)) + } + for _, pv := range body.child(2).repeat() { + ref.Pivots = append(ref.Pivots, tc.transformPivotValueList(pv, true)) + } + if gb, ok := body.child(3).opt(); ok { + ref.GroupBy = identifierList(gb.child(2)) + } + if aliasNode, ok := n.child(2).opt(); ok { + ref.Alias, ref.ColumnNameAlias = tc.transformTableAlias(aliasNode) + } + return ref +} + +// PivotValueList <- PivotHeader 'IN' PivotValueTarget +// expandHeader: the table-ref FOR form expands a parenthesized header +// into its parts; the statement ON form keeps it whole. +func (tc *transformContext) transformPivotValueList(n tnode, expandHeader bool) ast.PivotColumn { + var col ast.PivotColumn + header := tc.transformBaseExprNode(n.child(0).sole()) + if expandHeader { + col.PivotExpressions = rowParts(header) + } else { + col.PivotExpressions = []ast.Expr{header} + } + _, target := n.child(2).sole().choice() + switch target.name() { + case "PivotEnumTarget": + col.PivotEnum = identifierText(target.sole()) + case "PivotListTarget": + // PivotTargetList <- Parens(TargetList) + for _, e := range target.sole().sole().parens().listElems() { + col.Entries = append(col.Entries, tc.pivotEntry(e)) + } + default: + shapeError(target, "unknown pivot value target") + } + return col +} + +// pivotEntry converts one aliased expression into a pivot IN-list entry: +// constants keep their value, a bare column name is stringified (PIVOT +// ... IN (c) pivots on the value "c"), anything else stays an expression. +func (tc *transformContext) pivotEntry(n tnode) ast.PivotColumnEntry { + expr := tc.transformAliasedExpression(n) + entry := ast.PivotColumnEntry{Alias: expr.GetAlias()} + expr.SetAlias("") + parts := rowParts(expr) + values := make([]ast.Value, 0, len(parts)) + for _, part := range parts { + switch e := part.(type) { + case *ast.ConstantExpression: + values = append(values, e.Value) + case *ast.ColumnRefExpression: + if len(e.ColumnNames) == 1 { + values = append(values, ast.Value{Type: ast.LogicalType{ID: "VARCHAR"}, Kind: ast.ValueString, Str: e.ColumnNames[0]}) + continue + } + case *ast.CastExpression: + // fold constant casts: integer casts of integer constants + // (`1::INT`) and ISO dates (`'2022-01-01'::DATE`) + if c, isConst := e.Child.(*ast.ConstantExpression); isConst && e.CastType != nil && + e.CastType.Schema == "" && len(e.CastType.Args) == 0 { + if id, isInt := integerTypeNames[e.CastType.TypeName]; isInt && c.Value.Kind == ast.ValueInt64 { + v := c.Value + v.Type = ast.LogicalType{ID: id} + values = append(values, v) + continue + } + if e.CastType.TypeName == "DATE" && c.Value.Kind == ast.ValueString { + if days, ok := isoDateToDays(c.Value.Str); ok { + values = append(values, ast.Value{Type: ast.LogicalType{ID: "DATE"}, Kind: ast.ValueInt64, Int64: days}) + continue + } + } + } + } + } + if len(values) == len(parts) { + entry.Values = values + } else { + // any unfoldable part keeps the whole entry as an expression + entry.StarExpr = expr + } + return entry +} + +// isoDateToDays parses a YYYY-MM-DD date into days since 1970-01-01. +func isoDateToDays(s string) (int64, bool) { + t, err := time.Parse("2006-01-02", s) + if err != nil { + return 0, false + } + return int64(t.Unix() / 86400), true +} + +// integerTypeNames maps unbound integer type spellings to logical type +// ids (used to fold constant casts in pivot IN entries). +var integerTypeNames = map[string]string{ + "INTEGER": "INTEGER", + "BIGINT": "BIGINT", + "SMALLINT": "SMALLINT", + "TINYINT": "TINYINT", + "HUGEINT": "HUGEINT", +} + +// rowParts flattens a row(...) constructor into its parts (multi-column +// pivot IN entries), leaving other expressions intact. +func rowParts(e ast.Expr) []ast.Expr { + if f, ok := e.(*ast.FunctionExpression); ok && f.FunctionName == "row" && f.Schema == "" && !f.IsOperator { + parts := make([]ast.Expr, 0, len(f.Arguments)) + for _, a := range f.Arguments { + parts = append(parts, a.Expr) + } + return parts + } + return []ast.Expr{e} +} + +// unpivotEntry keeps the expression as star_expr (upstream's UNPIVOT +// entries are expressions, not values; the alias stays on both). +func (tc *transformContext) unpivotEntry(n tnode) ast.PivotColumnEntry { + expr := tc.transformAliasedExpression(n) + entry := ast.PivotColumnEntry{Alias: expr.GetAlias()} + entry.StarExpr = expr + return entry +} + +// transformBaseExprNode transforms a BaseExpression rule node. +func (tc *transformContext) transformBaseExprNode(n tnode) ast.Expr { + return tc.transformBase(n) +} + +// TableUnpivotClause <- 'UNPIVOT' IncludeOrExcludeNulls? Parens(TableUnpivotClauseBody) TableAlias? +func (tc *transformContext) transformTableUnpivot(left ast.TableRef, n tnode) ast.TableRef { + ref := &ast.PivotRef{Source: left} + ref.SetSpan(n.span()) + if ien, ok := n.child(1).opt(); ok { + _, kind := ien.sole().choice() + ref.IncludeNulls = kind.name() == "IncludeNulls" + } + body := n.child(2).parens() + // TableUnpivotClauseBody <- UnpivotHeader 'FOR' UnpivotValueList+ + ref.UnpivotNames = tc.transformUnpivotHeader(body.child(0)) + for _, uv := range body.child(2).repeat() { + // UnpivotValueList <- UnpivotHeader 'IN' UnpivotTargetList + var col ast.PivotColumn + col.UnpivotNames = tc.transformUnpivotHeader(uv.child(0)) + for _, e := range uv.child(2).sole().sole().parens().listElems() { + col.Entries = append(col.Entries, tc.unpivotEntry(e)) + } + ref.Pivots = append(ref.Pivots, col) + } + if aliasNode, ok := n.child(3).opt(); ok { + ref.Alias, ref.ColumnNameAlias = tc.transformTableAlias(aliasNode) + } + return ref +} + +// UnpivotHeader <- UnpivotHeaderSingle / UnpivotHeaderList +func (tc *transformContext) transformUnpivotHeader(n tnode) []string { + _, alt := n.sole().choice() + switch alt.name() { + case "UnpivotHeaderSingle": + return []string{identifierText(alt.sole())} + case "UnpivotHeaderList": + return identifierList(alt.sole().parens()) + } + shapeError(alt, "unknown unpivot header") + return nil +} + +// ---- PIVOT / UNPIVOT statement forms ---------------------------------- + +// PivotStatement <- PivotKeyword TableRef PivotOn? PivotUsing? PivotGroupByList? +func (tc *transformContext) transformPivotStatement(n tnode) ast.QueryNode { + ref := &ast.PivotRef{Source: tc.transformTableRef(n.child(1))} + ref.SetSpan(invalidSpan) + if on, ok := n.child(2).opt(); ok { + // PivotOn <- 'ON' PivotColumnList + for _, e := range on.child(1).sole().listElems() { + ref.Pivots = append(ref.Pivots, tc.transformPivotColumnEntry(e)) + } + } + if using, ok := n.child(3).opt(); ok { + for _, e := range using.child(1).listElems() { + ref.Aggregates = append(ref.Aggregates, tc.transformAliasedExpression(e)) + } + } + if gb, ok := n.child(4).opt(); ok { + ref.GroupBy = identifierList(gb.child(2)) + } + if len(ref.Pivots) > 0 && len(ref.Aggregates) == 0 { + // pivots without USING default to count_star() + ref.Aggregates = []ast.Expr{fnCall(invalidSpan, "count_star")} + } + if len(ref.Pivots) == 0 { + // PIVOT without ON is a plain grouped aggregate: + // SELECT , FROM source GROUP BY + node := &ast.SelectNode{AggregateHandling: ast.StandardHandling} + node.SetSpan(invalidSpan) + node.FromTable = ref.Source + for i, g := range ref.GroupBy { + col := &ast.ColumnRefExpression{ColumnNames: []string{g}} + col.SetSpan(invalidSpan) + node.SelectList = append(node.SelectList, col) + groupCol := &ast.ColumnRefExpression{ColumnNames: []string{g}} + groupCol.SetSpan(invalidSpan) + node.GroupExpressions = append(node.GroupExpressions, groupCol) + _ = i + } + if len(node.GroupExpressions) > 0 { + set := ast.GroupingSet{} + for i := range node.GroupExpressions { + set = append(set, i) + } + node.GroupSets = []ast.GroupingSet{set} + } + node.SelectList = append(node.SelectList, ref.Aggregates...) + return node + } + return starSelect(ref, n.span()) +} + +// PivotColumnEntry <- PivotColumnSubquery / PivotValueList / PivotColumnExpression +func (tc *transformContext) transformPivotColumnEntry(n tnode) ast.PivotColumn { + _, alt := n.sole().choice() + switch alt.name() { + case "PivotColumnSubquery": + // BaseExpression 'IN' Parens(SelectStatementInternal) + return ast.PivotColumn{ + PivotExpressions: []ast.Expr{tc.transformBaseExprNode(alt.child(0).sole())}, + Subquery: tc.transformSelectInternalStatement(alt.child(2).parens()), + } + case "PivotValueList": + return tc.transformPivotValueList(alt, false) + case "PivotColumnExpression": + return ast.PivotColumn{PivotExpressions: []ast.Expr{tc.transformExpression(alt.sole())}} + } + shapeError(alt, "unknown pivot column entry") + return ast.PivotColumn{} +} + +// UnpivotStatement <- UnpivotKeyword TableRef 'ON' TargetList IntoNameValues? +func (tc *transformContext) transformUnpivotStatement(n tnode) ast.QueryNode { + ref := &ast.PivotRef{Source: tc.transformTableRef(n.child(1))} + ref.SetSpan(invalidSpan) + var col ast.PivotColumn + for _, e := range n.child(3).listElems() { + col.Entries = append(col.Entries, tc.unpivotEntry(e)) + } + if into, ok := n.child(4).opt(); ok { + // IntoNameValues <- 'INTO' 'NAME' ColIdOrString ValueOrValues List(Identifier) + col.UnpivotNames = []string{identifierText(into.child(2))} + ref.UnpivotNames = identifierList(into.child(4)) + } else { + col.UnpivotNames = []string{"name"} + ref.UnpivotNames = []string{"value"} + } + ref.Pivots = []ast.PivotColumn{col} + return starSelect(ref, n.span()) +} diff --git a/parser/transform_type.go b/parser/transform_type.go new file mode 100644 index 0000000..d947ac9 --- /dev/null +++ b/parser/transform_type.go @@ -0,0 +1,289 @@ +// transform_type.go: the Type rule of common.gram — producing unbound +// TypeExpressions (DuckDB v2 resolves type names at bind time, so the +// parser records the spelled name plus modifier/child expressions). Port +// of upstream's transform_type.cpp. +package parser + +import ( + "github.com/sqlc-dev/darkwing/ast" +) + +func typeExpr(sp ast.Span, name string, args ...ast.Expr) *ast.TypeExpression { + t := &ast.TypeExpression{TypeName: name, Args: args} + t.SetSpan(sp) + return t +} + +// Type <- TypeVariations ArrayBounds* +func (tc *transformContext) transformType(n tnode) *ast.TypeExpression { + base := tc.transformTypeVariation(n.child(0)) + bounds := n.child(1).repeat() + for _, bound := range bounds { + base = tc.applyArrayBound(base, bound) + } + if len(bounds) == 0 { + base.SetSpan(n.span()) + } + return base +} + +// applyArrayBound wraps a type into list/array per one ArrayBounds entry. +// applyArrayBound wraps a type into list/array; the synthesized wrapper +// carries no location (only named leaf types do). +func (tc *transformContext) applyArrayBound(base *ast.TypeExpression, n tnode) *ast.TypeExpression { + _, alt := n.sole().choice() + sp := invalidSpan + switch alt.name() { + case "ArrayKeyword": + return typeExpr(sp, "list", base) + case "SquareBracketsArray": + return tc.squareBracketArray(base, alt, sp) + case "ArrayKeywordWithBounds": + return tc.squareBracketArray(base, alt.child(1), sp) + } + shapeError(alt, "unknown array bound") + return nil +} + +// squareBracketArray handles `[]` (list) and `[n]` (fixed-size array). +func (tc *transformContext) squareBracketArray(base *ast.TypeExpression, n tnode, sp ast.Span) *ast.TypeExpression { + expr, ok := n.child(1).opt() + if !ok { + return typeExpr(sp, "list", base) + } + bound := tc.transformExpression(expr) + // a constant integer bound is re-synthesized as a location-free + // BIGINT value + if c, isConst := bound.(*ast.ConstantExpression); isConst && c.Value.Kind == ast.ValueInt64 { + c.Value.Type = ast.LogicalType{ID: "BIGINT"} + c.SetSpan(invalidSpan) + } + return typeExpr(sp, "array", base, bound) +} + +func (tc *transformContext) transformTypeVariation(n tnode) *ast.TypeExpression { + _, alt := n.sole().choice() + sp := alt.span() + switch alt.name() { + case "TimeType": + return tc.transformTimeType(alt) + case "IntervalType": + return tc.transformIntervalType(alt) + case "BitType": + // 'BIT' 'VARYING'? Parens(List(Expression))? — the modifiers are + // discarded by upstream + return typeExpr(sp, "BIT") + case "RowType": + // RowOrStruct ColIdTypeList? + var args []ast.Expr + if fields, ok := alt.child(1).opt(); ok { + args = tc.transformColIdTypeList(fields) + } + return typeExpr(sp, "STRUCT", args...) + case "VariantType": + return typeExpr(sp, "VARIANT") + case "MapType": + // 'MAP' Parens(List(Type))? + var args []ast.Expr + if types, ok := alt.child(1).opt(); ok { + for _, t := range types.parens().listElems() { + args = append(args, tc.transformType(t)) + } + } + return typeExpr(sp, "MAP", args...) + case "TupleType": + var args []ast.Expr + for _, t := range alt.child(1).parens().listElems() { + args = append(args, tc.transformType(t)) + } + return typeExpr(sp, "TUPLE", args...) + case "GeometryType": + var args []ast.Expr + if mod, ok := alt.child(1).opt(); ok { + args = append(args, tc.transformExpression(mod.parens())) + } + return typeExpr(sp, "GEOMETRY", args...) + case "UnionType": + return typeExpr(sp, "UNION", tc.transformColIdTypeList(alt.child(1))...) + case "NumericType": + return tc.transformNumericType(alt) + case "SetofType": + // SETOF is dropped at parse time; the inner type stands alone + return tc.transformType(alt.child(1)) + case "SimpleType": + return tc.transformSimpleType(alt) + } + shapeError(alt, "unknown type variation") + return nil +} + +// transformColIdTypeList maps Parens(List(ColIdType)) to aliased child +// types. +func (tc *transformContext) transformColIdTypeList(n tnode) []ast.Expr { + var args []ast.Expr + for _, field := range n.parens().listElems() { + // ColIdType <- ColId Type + t := tc.transformType(field.child(1)) + t.Alias = identifierText(field.child(0)) + args = append(args, t) + } + return args +} + +// TimeType <- TimeOrTimestamp TypeModifiers? TimeZone? +func (tc *transformContext) transformTimeType(n tnode) *ast.TypeExpression { + _, kind := n.child(0).sole().choice() + name := "TIME" + if kind.name() == "TimestampTypeId" { + name = "TIMESTAMP" + // a precision modifier picks the timestamp variant + if mods, ok := n.child(1).opt(); ok { + args := tc.transformTypeModifiers(mods) + if len(args) == 1 { + if c, isConst := args[0].(*ast.ConstantExpression); isConst && c.Value.Kind == ast.ValueInt64 { + switch c.Value.Int64 { + case 0: + name = "TIMESTAMP_S" + case 3: + name = "TIMESTAMP_MS" + case 6: + name = "TIMESTAMP" + case 9: + name = "TIMESTAMP_NS" + } + } + } + } + } + // other precision modifiers are discarded by upstream + if tz, ok := n.child(2).opt(); ok { + // TimeZone <- WithOrWithout 'TIME' 'ZONE' + _, w := tz.child(0).sole().choice() + if w.name() == "WithRule" { + name += " WITH TIME ZONE" + } + } + return typeExpr(n.span(), name) +} + +// IntervalType <- IntervalInterval / IntervalNumber +func (tc *transformContext) transformIntervalType(n tnode) *ast.TypeExpression { + _, alt := n.sole().choice() + sp := n.span() + switch alt.name() { + case "IntervalNumber": + // 'INTERVAL' Parens(NumberLiteral): the precision is discarded by + // upstream + return typeExpr(sp, "INTERVAL") + case "IntervalInterval": + // range/simple specifiers are likewise discarded at the type level + return typeExpr(sp, "INTERVAL") + } + shapeError(alt, "unknown interval type") + return nil +} + +// transformNumericType maps the named numeric type rules. +func (tc *transformContext) transformNumericType(n tnode) *ast.TypeExpression { + _, alt := n.sole().choice() + sp := n.span() + switch alt.name() { + case "SimpleNumericType": + _, t := alt.sole().choice() + switch t.name() { + case "IntType", "IntegerType": + return typeExpr(sp, "INTEGER") + case "SmallintType": + return typeExpr(sp, "SMALLINT") + case "BigintType": + return typeExpr(sp, "BIGINT") + case "RealType": + // REAL is spelled FLOAT in the unbound type + return typeExpr(sp, "FLOAT") + case "BooleanType": + return typeExpr(sp, "BOOLEAN") + case "DoubleType": + return typeExpr(sp, "DOUBLE") + } + shapeError(t, "unknown simple numeric type") + case "DecimalNumericType": + _, t := alt.sole().choice() + switch t.name() { + case "FloatType": + // 'FLOAT' Parens(NumberLiteral)? + var args []ast.Expr + if mod, ok := t.child(1).opt(); ok { + args = append(args, numberConstant(mod.parens().span(), mod.parens().number())) + } + return typeExpr(sp, "FLOAT", args...) + case "DecimalType", "DecType", "NumericModType": + var args []ast.Expr + if mods, ok := t.child(1).opt(); ok { + args = tc.transformTypeModifiers(mods) + } + return typeExpr(sp, "DECIMAL", args...) + } + shapeError(t, "unknown decimal numeric type") + } + shapeError(alt, "unknown numeric type") + return nil +} + +// TypeModifiers <- Parens(List(Expression)?) +func (tc *transformContext) transformTypeModifiers(n tnode) []ast.Expr { + list, ok := n.parens().opt() + if !ok { + return nil + } + return tc.transformExpressionList(list) +} + +// SimpleType <- CharacterSimpleType / QualifiedSimpleType +func (tc *transformContext) transformSimpleType(n tnode) *ast.TypeExpression { + _, alt := n.sole().choice() + sp := n.span() + switch alt.name() { + case "CharacterSimpleType": + var args []ast.Expr + if mods, ok := alt.child(1).opt(); ok { + args = tc.transformTypeModifiers(mods) + } + return typeExpr(sp, "VARCHAR", args...) + case "QualifiedSimpleType": + // QualifiedTypeName TypeModifiers? + catalog, schema, name := tc.transformQualifiedTypeName(alt.child(0)) + var args []ast.Expr + if mods, ok := alt.child(1).opt(); ok { + args = tc.transformTypeModifiers(mods) + } + t := typeExpr(sp, name, args...) + t.Catalog, t.Schema = catalog, schema + return t + } + shapeError(alt, "unknown simple type") + return nil +} + +// QualifiedTypeName <- CatalogReservedSchemaTypeName / +// SchemaReservedTypeName / TypeNameAsQualifiedName +func (tc *transformContext) transformQualifiedTypeName(n tnode) (catalog, schema, name string) { + _, alt := n.sole().choice() + switch alt.name() { + case "CatalogReservedSchemaTypeName": + catalog = identifierText(alt.child(0).child(0)) + schema = identifierText(alt.child(1).child(0)) + name = identifierText(alt.child(2)) + case "SchemaReservedTypeName": + schema = identifierText(alt.child(0).child(0)) + name = identifierText(alt.child(1)) + case "TypeNameAsQualifiedName": + name = identifierText(alt.sole()) + default: + shapeError(alt, "unknown qualified type name") + } + // a catalog with no schema is a schema qualification + if catalog != "" && schema == "" { + catalog, schema = "", catalog + } + return catalog, schema, name +} diff --git a/parser/tree.go b/parser/tree.go new file mode 100644 index 0000000..a3f5b04 --- /dev/null +++ b/parser/tree.go @@ -0,0 +1,212 @@ +// tree.go: navigation helpers over the matcher's generic parse tree. +// Transformer functions index into ParseResult nodes by grammar position, +// exactly as upstream's transformer does; a shape mismatch means the +// transformer disagrees with the vendored grammar and is reported as an +// internal error (panic caught at the Parse boundary). +package parser + +import ( + "fmt" + + "github.com/sqlc-dev/darkwing/ast" + "github.com/sqlc-dev/darkwing/internal/matcher" +) + +// tnode wraps one ParseResult for ergonomic navigation. +type tnode struct { + r matcher.ParseResult +} + +// shapeError reports a transformer/grammar shape disagreement. It panics; +// Parse converts it into an internal error naming the rule. +func shapeError(n tnode, format string, args ...any) { + name := "" + if n.r != nil { + name = n.r.Name() + } + panic(&internalError{msg: fmt.Sprintf("rule %q: %s", name, fmt.Sprintf(format, args...))}) +} + +type internalError struct { + msg string +} + +func (e *internalError) Error() string { + return "darkwing internal error (transformer/grammar mismatch): " + e.msg +} + +func (n tnode) valid() bool { return n.r != nil } + +func (n tnode) name() string { + if n.r == nil { + return "" + } + return n.r.Name() +} + +// span returns the source byte range the node covers. +func (n tnode) span() ast.Span { + if n.r == nil { + return ast.Span{} + } + off, length, ok := n.r.Loc() + if !ok { + return ast.Span{} + } + return ast.Span{Start: off, End: off + length} +} + +// list asserts the node is a ListResult. +func (n tnode) list() *matcher.ListResult { + l, ok := n.r.(*matcher.ListResult) + if !ok { + shapeError(n, "want list, got %T", n.r) + } + return l +} + +// count returns the number of children of a list node. +func (n tnode) count() int { return len(n.list().Children) } + +// child returns the i-th child of a list node. +func (n tnode) child(i int) tnode { + l := n.list() + if i < 0 || i >= len(l.Children) { + shapeError(n, "child %d out of range (%d children)", i, len(l.Children)) + } + return tnode{l.Children[i]} +} + +// sole unwraps a single-child list node (`Rule <- Other`). +func (n tnode) sole() tnode { + l := n.list() + if len(l.Children) != 1 { + shapeError(n, "want single child, got %d", len(l.Children)) + } + return tnode{l.Children[0]} +} + +// choice unwraps a ChoiceResult into (alternative index, inner node). +func (n tnode) choice() (int, tnode) { + c, ok := n.r.(*matcher.ChoiceResult) + if !ok { + shapeError(n, "want choice, got %T", n.r) + } + return c.Index, tnode{c.Result} +} + +// opt unwraps an OptionalResult; ok is false when it matched empty. A +// non-optional node passes through unchanged (repetition bodies collapse +// the optional in some positions). +func (n tnode) opt() (tnode, bool) { + o, ok := n.r.(*matcher.OptionalResult) + if !ok { + return n, true + } + if o.Result == nil { + return tnode{}, false + } + return tnode{o.Result}, true +} + +// repeat returns the items of a `*` or `+` repetition: an optional +// wrapping a RepeatResult (for `*`), a bare RepeatResult (for `+`), or +// empty. +func (n tnode) repeat() []tnode { + inner, ok := n.opt() + if !ok { + return nil + } + rep, isRep := inner.r.(*matcher.RepeatResult) + if !isRep { + shapeError(n, "want repeat, got %T", inner.r) + } + items := make([]tnode, len(rep.Children)) + for i, c := range rep.Children { + items[i] = tnode{c} + } + return items +} + +// macroNode descends single-child rule wrappers until it reaches the +// named macro instance node ("List" or "Parens"). +func (n tnode) macroNode(macro string) tnode { + cur := n + for { + if cur.name() == macro { + return cur + } + l, ok := cur.r.(*matcher.ListResult) + if !ok || len(l.Children) != 1 { + return cur + } + cur = tnode{l.Children[0]} + } +} + +// parens unwraps the Parens(D) macro: LIST['(', D, ')']. +func (n tnode) parens() tnode { + inner := n.macroNode("Parens") + l := inner.list() + if len(l.Children) != 3 { + shapeError(n, "want Parens shape, got %d children", len(l.Children)) + } + return tnode{l.Children[1]} +} + +// listElems unwraps the List(D) macro — LIST[D, (',' D)*, ','?] — into +// its elements. +func (n tnode) listElems() []tnode { + inner := n.macroNode("List") + l := inner.list() + if len(l.Children) != 3 { + shapeError(n, "want List macro shape, got %d children", len(l.Children)) + } + elems := []tnode{{l.Children[0]}} + for _, item := range (tnode{l.Children[1]}).repeat() { + elems = append(elems, item.child(1)) + } + return elems +} + +// ident returns the text of an IdentifierResult. +func (n tnode) ident() string { + id, ok := n.r.(*matcher.IdentifierResult) + if !ok { + shapeError(n, "want identifier, got %T", n.r) + } + return id.Identifier +} + +// keyword returns the raw spelling of a KeywordResult. +func (n tnode) keyword() string { + k, ok := n.r.(*matcher.KeywordResult) + if !ok { + shapeError(n, "want keyword, got %T", n.r) + } + return k.Keyword +} + +// number returns the raw text of a NumberResult. +func (n tnode) number() string { + num, ok := n.r.(*matcher.NumberResult) + if !ok { + shapeError(n, "want number, got %T", n.r) + } + return num.Number +} + +// stringLit returns the unescaped value and kind of a StringResult. +func (n tnode) stringLit() (string, matcher.StringKind) { + s, ok := n.r.(*matcher.StringResult) + if !ok { + shapeError(n, "want string literal, got %T", n.r) + } + return s.Value, s.StringKind +} + +// isString reports whether the node is a string literal. +func (n tnode) isString() bool { + _, ok := n.r.(*matcher.StringResult) + return ok +} From e088a75c76b769b4cfe85ec6f2b13b03133d0255 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 21 Aug 2026 18:26:37 +0000 Subject: [PATCH 2/2] Milestone 4: DML and DDL transformers, corpus gate green end-to-end MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DML: INSERT (column lists, BY NAME/POSITION, DEFAULT VALUES, OR REPLACE/IGNORE and ON CONFLICT, RETURNING), UPDATE (aliased targets, FROM, tuple SET), DELETE (USING), TRUNCATE and MERGE INTO, with prepared-parameter numbering end-to-end. DML statements inside a CTE body become INSERT/UPDATE/DELETE query nodes mirroring upstream's serialization (TRUNCATE lands in its delete-node form). DDL: CREATE TABLE (columns, constraints, generated columns, CTAS), VIEW, SCHEMA, INDEX, SEQUENCE and TYPE; the ALTER families; DROP families. MACRO/SECRET/TRIGGER stay ErrUnsupported for milestone 5. The corpus accept/reject harness now classifies with the full Parse pipeline, so transformer-raised Parser Errors count alongside the matcher's syntax errors; the todo entries this resolves are removed. Chasing the remaining disagreements fixed a batch of transformer behaviors against the pinned oracle: - regex ANY/ALL (~, ~*, !~, !~* over lists) desugars to upstream's CASE over list_transform/list_contains/list_filter - OPERATOR(schema.op) keeps its schema and always builds a function (comparison spellings included); the prefix form folds qualifiers into the name; three-part qualifiers raise upstream's error - other-operator chains ('a' || 'b' || 'c') carry a location only on the outermost fold, like the binary ladder levels - FROM-clause UNPIVOT target lists parse (shape bug), multiple IN groups raise upstream's single-pivot-element error, and the pivot ref location covers the clause body - statement PIVOT ... IN (SELECT ...) enum-discovery targets parse - bare SHOW expands like SHOW ALL TABLES - number literals beyond the double range become ±Inf DOUBLE constants, serialized as upstream's bare Infinity tokens - UPDATE targets span through SET; DELETE/TRUNCATE targets carry no location; qualified UPDATE SET targets raise upstream's error - ORDER BY ALL inside ARRAY(SELECT ...) clones the star under the __array_internal_idx alias The full-corpus serialize sweep against the pinned binary is clean (25,974 SELECT-subset statements: 25,846 match, 0 mismatch, 128 skipped where the oracle refuses to serialize), and the vendored goldens are regenerated from it. New hand-written shape tests cover the DML and DDL AST surface. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01B918Vu4wvBaZcRUX4nkQdr --- CLAUDE.md | 41 +- ast/query.go | 29 + internal/serialize/serialize.go | 102 +- parser/ddl_test.go | 188 + parser/dml_test.go | 234 + parser/parser_test.go | 56 +- .../unpivot_multiple_in.test.metadata.json | 5 - .../window_self_reference.test.metadata.json | 6 - .../create_or_replace.test.metadata.json | 5 - .../corpus/sql/cte/dml_cte.test.metadata.json | 5 +- .../test_comparison.test.metadata.json | 4 +- .../nearest/nearest_errors.test.metadata.json | 1 - .../fuzzer/fuzzer_4434.test.metadata.json | 6 - .../qualified_operator.test.metadata.json | 5 - .../any_all/test_any_all.test.metadata.json | 6 - .../interval_constants.test.metadata.json | 11 - ...pdate_error_suggestions.test.metadata.json | 5 - .../upsert_shorthand.test.metadata.json | 5 - ...est_window_binding_ctes.test.metadata.json | 6 - .../test_window_clause.test.metadata.json | 2 - parser/testdata/serialize/README.md | 9 +- parser/testdata/serialize/goldens.jsonl | 4043 +++++++++-------- parser/transform_ddl.go | 895 ++++ parser/transform_dml.go | 382 ++ parser/transform_expr.go | 149 +- parser/transform_func.go | 5 + parser/transform_select.go | 47 +- parser/transform_single.go | 27 +- parser/transform_tableref.go | 40 +- 29 files changed, 4168 insertions(+), 2151 deletions(-) create mode 100644 parser/ddl_test.go create mode 100644 parser/dml_test.go delete mode 100644 parser/testdata/corpus/fuzzer/duckfuzz/unpivot_multiple_in.test.metadata.json delete mode 100644 parser/testdata/corpus/fuzzer/pedro/window_self_reference.test.metadata.json delete mode 100644 parser/testdata/corpus/sql/create/create_or_replace.test.metadata.json delete mode 100644 parser/testdata/corpus/sql/peg_parser/fuzzer/fuzzer_4434.test.metadata.json delete mode 100644 parser/testdata/corpus/sql/peg_parser/qualified_operator.test.metadata.json delete mode 100644 parser/testdata/corpus/sql/subquery/any_all/test_any_all.test.metadata.json delete mode 100644 parser/testdata/corpus/sql/types/interval/interval_constants.test.metadata.json delete mode 100644 parser/testdata/corpus/sql/update/update_error_suggestions.test.metadata.json delete mode 100644 parser/testdata/corpus/sql/upsert/upsert_shorthand.test.metadata.json delete mode 100644 parser/testdata/corpus/sql/window/test_window_binding_ctes.test.metadata.json create mode 100644 parser/transform_ddl.go create mode 100644 parser/transform_dml.go diff --git a/CLAUDE.md b/CLAUDE.md index 955a76c..a3fd958 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -29,8 +29,18 @@ in `internal/grammar/README.md`. - `cmd/regenerate/` — rebuild `parser/testdata/` from a DuckDB source tree + the pinned binary. The only way corpus expectations change. - `cmd/next-test/` — print the next todo case from the corpus metadata. -- `parser/` — corpus conformance harness (`parser_test.go`); the public - Parse API and AST arrive in milestone 3. +- `ast/` — the public AST: statements, query nodes, table refs, + expressions, DDL infos. Ports upstream's parser/ node classes. +- `parser/` — the public `Parse`/`ParseStatement`/`ParseExpr` API, the + hand-written transformer (`transform_*.go`, the port of upstream's + `transformer/`), the corpus conformance harness (`parser_test.go`) and + the serialize goldens gate (`serialize_test.go`). +- `internal/serialize/` — renders the AST in `json_serialize_sql`- + compatible JSON; `serialize.Equal` is the structural comparator (its + doc comment lists the normalizations). +- `cmd/serialize-diff/` — diff darkwing's serialization against a live + oracle binary for ad-hoc statements or the whole corpus SELECT subset; + writes `parser/testdata/serialize/goldens.jsonl`. ## Rules of the port @@ -56,12 +66,20 @@ Debugging a parse: ``` go run ./cmd/debug-parse 'SELECT 1' # ParseResult tree go run ./cmd/debug-parse -tokens 'SELECT 1' # token dump +go run ./cmd/debug-parse -ast 'SELECT 1' # transformed AST as JSON ``` ## Conformance loop -The milestone-2 gate: darkwing accepts a statement iff the pinned DuckDB -binary parses it, over the whole corpus (`go test ./parser`). +Two corpus gates run under `go test ./parser`: + +- **Accept/reject** (`TestCorpus`): darkwing accepts a statement iff the + pinned DuckDB binary parses it. Since milestone 3 the classification + runs the full Parse pipeline, so transformer-raised Parser Errors count + alongside the matcher's syntax errors. +- **Tree shape** (`TestSerializeGoldens`): `internal/serialize` output + must match vendored `json_serialize_sql` goldens for a corpus sample + (see `parser/testdata/serialize/README.md`). ``` go run ./cmd/next-test # pick the next todo case @@ -70,10 +88,17 @@ go test ./parser -run TestCorpus -check-parse 'FRAGMENT' # dump detail for it go test ./parser # gate ``` -Some oracle rejects come from upstream's *transformer* (Parser Errors whose -message is not "syntax error at or near ..."): the matcher alone cannot -reject those, so they stay in todo metadata until the matching transformer -lands (milestones 3-5). Todo entries carry a note saying why. +Oracle rejects raised by upstream's *transformer* (Parser Errors whose +message is not "syntax error at or near ...") that darkwing's transformer +does not reproduce yet stay in todo metadata with a note saying why; the +harness flags todo entries that start agreeing so they get removed. + +Sweeping tree shapes against a live oracle (milestones 3-4 exit +criteria: zero mismatches over the corpus SELECT subset): + +``` +DARKWING_DUCKDB=/path/to/duckdb-cli go run ./cmd/serialize-diff -corpus +``` Regenerating the corpus (needs a DuckDB checkout at the pinned commit and the matching nightly CLI; see `internal/grammar/README.md` for the pin): diff --git a/ast/query.go b/ast/query.go index b7c4d9b..a4ef12f 100644 --- a/ast/query.go +++ b/ast/query.go @@ -35,6 +35,35 @@ type CTEMap struct { Entries []CTEMapEntry `json:"map,omitempty"` } +// InsertQueryNode wraps an INSERT statement used as a CTE body +// (upstream's INSERT_QUERY_NODE): DML with RETURNING feeding a WITH +// entry. The statement's own WITH clause moves onto the node's CTE map. +type InsertQueryNode struct { + queryNodeBase + Insert *InsertStatement `json:"insert"` +} + +func (n *InsertQueryNode) Children() []Node { return add(n.baseChildren(), n.Insert) } + +// UpdateQueryNode wraps an UPDATE statement used as a CTE body +// (upstream's UPDATE_QUERY_NODE). +type UpdateQueryNode struct { + queryNodeBase + Update *UpdateStatement `json:"update"` +} + +func (n *UpdateQueryNode) Children() []Node { return add(n.baseChildren(), n.Update) } + +// DeleteQueryNode wraps a DELETE statement used as a CTE body +// (upstream's DELETE_QUERY_NODE). TRUNCATE in a CTE lands here too, +// mirroring upstream's truncate-as-delete representation. +type DeleteQueryNode struct { + queryNodeBase + Delete *DeleteStatement `json:"delete"` +} + +func (n *DeleteQueryNode) Children() []Node { return add(n.baseChildren(), n.Delete) } + // queryNodeBase carries what every DuckDB QueryNode has: result modifiers // and a CTE map. type queryNodeBase struct { diff --git a/internal/serialize/serialize.go b/internal/serialize/serialize.go index f78d61c..babc593 100644 --- a/internal/serialize/serialize.go +++ b/internal/serialize/serialize.go @@ -8,6 +8,7 @@ package serialize import ( "encoding/json" "fmt" + "math" "github.com/sqlc-dev/darkwing/ast" ) @@ -109,6 +110,57 @@ func queryNode(n ast.QueryNode) map[string]any { base["right"] = queryNode(node.Right) base["aliases"] = stringList(node.Aliases) base["key_targets"] = exprList(node.KeyTargets) + case *ast.InsertQueryNode: + ins := node.Insert + base["type"] = "INSERT_QUERY_NODE" + if ins.Query != nil { + base["select_statement"] = selectStatement(ins.Query) + } else { + base["select_statement"] = nil + } + base["columns"] = stringList(ins.Columns) + base["table"] = ins.Table + base["schema"] = ins.Schema + base["catalog"] = ins.Catalog + base["returning_list"] = exprList(ins.Returning) + base["on_conflict_info"] = onConflictInfo(ins.OnConflict) + // upstream materializes the insert target as a table ref only + // when an ON CONFLICT clause needs it + if ins.OnConflict != nil { + ref := &ast.BaseTableRef{ + CatalogName: ins.Catalog, SchemaName: ins.Schema, TableName: ins.Table, + } + ref.Alias = ins.TableAlias + ref.SetSpan(ast.Span{Start: -1, End: -1}) + base["table_ref"] = tableRef(ref) + } else { + base["table_ref"] = nil + } + base["default_values"] = ins.DefaultValues + order := ins.ColumnOrder + if order == "" { + order = ast.InsertByPosition + } + base["column_order"] = string(order) + case *ast.UpdateQueryNode: + up := node.Update + base["type"] = "UPDATE_QUERY_NODE" + base["table"] = tableRef(up.Table) + base["from_table"] = tableRef(up.From) + base["returning_list"] = exprList(up.Returning) + base["set_info"] = updateSetInfo(up.SetInfo, up.Where) + base["prioritize_table_when_binding"] = false + case *ast.DeleteQueryNode: + del := node.Delete + base["type"] = "DELETE_QUERY_NODE" + base["condition"] = exprOrNil(del.Where) + base["table"] = tableRef(del.Table) + using := make([]any, 0, len(del.Using)) + for _, u := range del.Using { + using = append(using, tableRef(u)) + } + base["using_clauses"] = using + base["returning_list"] = exprList(del.Returning) default: panic(fmt.Sprintf("serialize: unknown query node %T", n)) } @@ -168,6 +220,43 @@ func orderList(orders []ast.OrderByNode) []any { return out } +// onConflictInfo renders INSERT's ON CONFLICT payload for +// INSERT_QUERY_NODE. +func onConflictInfo(info *ast.OnConflictInfo) map[string]any { + if info == nil { + return nil + } + return map[string]any{ + "action_type": string(info.Action), + "indexed_columns": stringList(info.IndexedColumns), + "set_info": updateSetInfo(info.SetInfo, nil), + "condition": exprOrNil(info.TargetWhere), + } +} + +// updateSetInfo renders an UpdateSetInfo; where is UPDATE's own WHERE +// clause, which upstream stores as the set-info condition. +func updateSetInfo(set *ast.UpdateSetInfo, where ast.Expr) map[string]any { + if set == nil { + return nil + } + cond := set.Condition + if cond == nil { + cond = where + } + // SET targets are single names: the transformer rejects qualified + // targets like upstream + cols := make([]any, 0, len(set.Columns)) + for _, c := range set.Columns { + cols = append(cols, c[0]) + } + return map[string]any{ + "condition": exprOrNil(cond), + "columns": cols, + "expressions": exprList(set.Expressions), + } +} + func cteMap(m ast.CTEMap) map[string]any { entries := make([]any, 0, len(m.Entries)) for _, e := range m.Entries { @@ -659,7 +748,18 @@ func value(v ast.Value) map[string]any { out["value"] = map[string]any{"upper": v.Hugeint.Upper, "lower": v.Hugeint.Lower} } case ast.ValueDouble: - out["value"] = v.Float64 + // upstream prints non-finite doubles as bare Infinity/-Infinity/NaN + // tokens (invalid JSON, replicated verbatim) + switch { + case math.IsInf(v.Float64, 1): + out["value"] = json.RawMessage("Infinity") + case math.IsInf(v.Float64, -1): + out["value"] = json.RawMessage("-Infinity") + case math.IsNaN(v.Float64): + out["value"] = json.RawMessage("NaN") + default: + out["value"] = v.Float64 + } case ast.ValueString: if v.Type.ID == "BLOB" { out["value"] = blobText(v.Str) diff --git a/parser/ddl_test.go b/parser/ddl_test.go new file mode 100644 index 0000000..d0a0a07 --- /dev/null +++ b/parser/ddl_test.go @@ -0,0 +1,188 @@ +// ddl_test.go: hand-written shape tests for the milestone-4 DDL +// transformers (CREATE/ALTER/DROP families). +package parser + +import ( + "reflect" + "testing" + + "github.com/sqlc-dev/darkwing/ast" +) + +func createInfo[T ast.CreateInfo](t *testing.T, sql string) T { + t.Helper() + stmt := parseOne(t, sql) + cs, ok := stmt.(*ast.CreateStatement) + if !ok { + t.Fatalf("got %T, want *ast.CreateStatement", stmt) + } + info, ok := cs.Info.(T) + if !ok { + t.Fatalf("info = %T, want %T", cs.Info, *new(T)) + } + return info +} + +func TestCreateTableShape(t *testing.T) { + info := createInfo[*ast.CreateTableInfo](t, `CREATE TABLE s.t ( + id INTEGER PRIMARY KEY, + name VARCHAR NOT NULL DEFAULT 'x', + ref_id INT REFERENCES other(id), + CHECK (id > 0), + UNIQUE (id, name) + )`) + if info.Schema != "s" || info.Name != "t" { + t.Errorf("name = %q.%q", info.Schema, info.Name) + } + if info.OnConflict != ast.CreateError { + t.Errorf("on conflict = %q", info.OnConflict) + } + if len(info.Columns) != 3 { + t.Fatalf("columns = %d", len(info.Columns)) + } + id := info.Columns[0] + if id.Names[0] != "id" || id.Type.TypeName != "INTEGER" { + t.Errorf("column 0 = %+v", id) + } + if pk, ok := id.Constraints[0].(*ast.UniqueConstraint); !ok || !pk.IsPrimaryKey { + t.Errorf("column 0 constraint = %#v", id.Constraints) + } + name := info.Columns[1] + if len(name.Constraints) != 2 { + t.Fatalf("name constraints = %#v", name.Constraints) + } + if _, ok := name.Constraints[0].(*ast.NotNullConstraint); !ok { + t.Errorf("constraint 0 = %T", name.Constraints[0]) + } + if def, ok := name.Constraints[1].(*ast.DefaultConstraint); !ok || def.Expr == nil { + t.Errorf("constraint 1 = %#v", name.Constraints[1]) + } + if fk, ok := info.Columns[2].Constraints[0].(*ast.ForeignKeyConstraint); !ok || + fk.Table.Name != "other" || !reflect.DeepEqual(fk.ReferencedColumns, []string{"id"}) { + t.Errorf("references = %#v", info.Columns[2].Constraints) + } + if len(info.Constraints) != 2 { + t.Fatalf("table constraints = %d", len(info.Constraints)) + } + if _, ok := info.Constraints[0].(*ast.CheckConstraint); !ok { + t.Errorf("table constraint 0 = %T", info.Constraints[0]) + } + if uq, ok := info.Constraints[1].(*ast.UniqueConstraint); !ok || + uq.IsPrimaryKey || !reflect.DeepEqual(uq.Columns, []string{"id", "name"}) { + t.Errorf("table constraint 1 = %#v", info.Constraints[1]) + } +} + +func TestCreateTableModifiers(t *testing.T) { + info := createInfo[*ast.CreateTableInfo](t, "CREATE OR REPLACE TEMP TABLE t (i INT)") + if info.OnConflict != ast.CreateReplace || !info.Temporary { + t.Errorf("or-replace temp = %q temporary=%v", info.OnConflict, info.Temporary) + } + info = createInfo[*ast.CreateTableInfo](t, "CREATE TABLE IF NOT EXISTS t (i INT)") + if info.OnConflict != ast.CreateIgnore { + t.Errorf("if-not-exists = %q", info.OnConflict) + } + // both at once is upstream's transformer error + if msg := parseErr(t, "CREATE OR REPLACE TABLE IF NOT EXISTS t (i INT)"); msg == "" { + t.Error("OR REPLACE + IF NOT EXISTS accepted") + } + // CTAS + info = createInfo[*ast.CreateTableInfo](t, "CREATE TABLE t AS SELECT 1 AS a") + if info.Query == nil || len(info.Columns) != 0 { + t.Errorf("CTAS query missing") + } +} + +func TestCreateViewIndexSequenceTypeSchema(t *testing.T) { + view := createInfo[*ast.CreateViewInfo](t, "CREATE VIEW v (a, b) AS SELECT 1, 2") + if !reflect.DeepEqual(view.Aliases, []string{"a", "b"}) || view.Query == nil { + t.Errorf("view = %+v", view) + } + + idx := createInfo[*ast.CreateIndexInfo](t, "CREATE UNIQUE INDEX i ON t (a, b DESC)") + if !idx.Unique || idx.Table.Name != "t" || len(idx.Elements) != 2 { + t.Errorf("index = %+v", idx) + } + if idx.Elements[1].OrderType != ast.OrderDescending { + t.Errorf("index order = %+v", idx.Elements[1]) + } + + seq := createInfo[*ast.CreateSequenceInfo](t, "CREATE SEQUENCE q INCREMENT BY 2 MINVALUE 1 MAXVALUE 10 START WITH 3 CYCLE") + if seq.Increment == nil || seq.MinValue == nil || seq.MaxValue == nil || seq.StartValue == nil || !seq.Cycle { + t.Errorf("sequence = %+v", seq) + } + + typ := createInfo[*ast.CreateTypeInfo](t, "CREATE TYPE mood AS ENUM ('happy', 'sad')") + if !typ.IsEnum || !reflect.DeepEqual(typ.EnumValues, []string{"happy", "sad"}) { + t.Errorf("enum = %+v", typ) + } + typ = createInfo[*ast.CreateTypeInfo](t, "CREATE TYPE pair AS STRUCT(a INT, b INT)") + if typ.IsEnum || typ.Type == nil || typ.Type.TypeName != "STRUCT" { + t.Errorf("alias type = %+v", typ) + } + + schema := createInfo[*ast.CreateSchemaInfo](t, "CREATE SCHEMA IF NOT EXISTS sch") + if schema.Name != "sch" || schema.OnConflict != ast.CreateIgnore { + t.Errorf("schema = %+v", schema) + } +} + +func TestAlterTableShape(t *testing.T) { + stmt := parseOne(t, "ALTER TABLE IF EXISTS s.t ADD COLUMN IF NOT EXISTS c INTEGER DEFAULT 3") + al, ok := stmt.(*ast.AlterStatement) + if !ok { + t.Fatalf("got %T, want *ast.AlterStatement", stmt) + } + if al.Entity != ast.AlterEntityTable || !al.IfExists || al.Name.Schema != "s" || al.Name.Name != "t" { + t.Errorf("alter header = %+v", al) + } + add, ok := al.Actions[0].(*ast.AddColumnInfo) + if !ok || !add.IfNotExists || add.Column.Names[0] != "c" || add.Column.Type.TypeName != "INTEGER" { + t.Errorf("add column = %#v", al.Actions[0]) + } + + al = parseOne(t, "ALTER TABLE t DROP COLUMN c CASCADE").(*ast.AlterStatement) + if drop, ok := al.Actions[0].(*ast.DropColumnInfo); !ok || drop.Column[0] != "c" || !drop.Cascade { + t.Errorf("drop column = %#v", al.Actions[0]) + } + + al = parseOne(t, "ALTER TABLE t ALTER COLUMN c SET DATA TYPE VARCHAR USING c::VARCHAR").(*ast.AlterStatement) + if at, ok := al.Actions[0].(*ast.AlterColumnTypeInfo); !ok || at.Type.TypeName != "VARCHAR" || at.Using == nil { + t.Errorf("alter type = %#v", al.Actions[0]) + } + + al = parseOne(t, "ALTER TABLE t RENAME COLUMN a TO b").(*ast.AlterStatement) + if rc, ok := al.Actions[0].(*ast.RenameColumnInfo); !ok || rc.Column[0] != "a" || rc.NewName != "b" { + t.Errorf("rename column = %#v", al.Actions[0]) + } + + al = parseOne(t, "ALTER VIEW v RENAME TO w").(*ast.AlterStatement) + if al.Entity != ast.AlterEntityView { + t.Errorf("entity = %q", al.Entity) + } + if rn, ok := al.Actions[0].(*ast.RenameInfo); !ok || rn.NewName != "w" { + t.Errorf("rename = %#v", al.Actions[0]) + } +} + +func TestDropShape(t *testing.T) { + stmt := parseOne(t, "DROP TABLE IF EXISTS s.a, b CASCADE") + drop, ok := stmt.(*ast.DropStatement) + if !ok { + t.Fatalf("got %T, want *ast.DropStatement", stmt) + } + if drop.DropType != ast.DropTable || !drop.IfExists || !drop.Cascade { + t.Errorf("drop = %+v", drop) + } + want := []ast.QualifiedName{{Schema: "s", Name: "a"}, {Name: "b"}} + if !reflect.DeepEqual(drop.Names, want) { + t.Errorf("names = %+v", drop.Names) + } + + if dt := parseOne(t, "DROP VIEW v").(*ast.DropStatement).DropType; dt != ast.DropView { + t.Errorf("view drop type = %q", dt) + } + if dt := parseOne(t, "DROP SEQUENCE q").(*ast.DropStatement).DropType; dt != ast.DropSequence { + t.Errorf("sequence drop type = %q", dt) + } +} diff --git a/parser/dml_test.go b/parser/dml_test.go new file mode 100644 index 0000000..cfe5f07 --- /dev/null +++ b/parser/dml_test.go @@ -0,0 +1,234 @@ +// dml_test.go: hand-written shape tests for the milestone-4 DML +// transformers. The corpus and serialize goldens gate accept/reject and +// tree shape wholesale; these tests pin the Go-side AST surface a +// consumer (sqlc) programs against. +package parser + +import ( + "context" + "errors" + "reflect" + "strings" + "testing" + + "github.com/sqlc-dev/darkwing/ast" +) + +func parseOne(t *testing.T, sql string) ast.Stmt { + t.Helper() + stmts, err := Parse(context.Background(), strings.NewReader(sql)) + if err != nil { + t.Fatalf("Parse(%q): %v", sql, err) + } + if len(stmts) != 1 { + t.Fatalf("Parse(%q): got %d statements, want 1", sql, len(stmts)) + } + return stmts[0] +} + +func parseErr(t *testing.T, sql string) string { + t.Helper() + _, err := Parse(context.Background(), strings.NewReader(sql)) + if err == nil { + t.Fatalf("Parse(%q): expected error", sql) + } + var pe *Error + if !errors.As(err, &pe) { + t.Fatalf("Parse(%q): got %T (%v), want *parser.Error", sql, err, err) + } + return pe.Msg +} + +func TestInsertShape(t *testing.T) { + stmt := parseOne(t, "INSERT INTO db.s.t (a, b) VALUES (1, 2), (3, 4) RETURNING a + 1 AS x") + ins, ok := stmt.(*ast.InsertStatement) + if !ok { + t.Fatalf("got %T, want *ast.InsertStatement", stmt) + } + if ins.Catalog != "db" || ins.Schema != "s" || ins.Table != "t" { + t.Errorf("target = %q.%q.%q, want db.s.t", ins.Catalog, ins.Schema, ins.Table) + } + if !reflect.DeepEqual(ins.Columns, []string{"a", "b"}) { + t.Errorf("columns = %v", ins.Columns) + } + if ins.Query == nil { + t.Fatal("no select_statement for VALUES") + } + values, ok := ins.Query.Node.(*ast.SelectNode).FromTable.(*ast.ExpressionListRef) + if !ok { + t.Fatalf("VALUES did not become an expression list ref") + } + if len(values.Values) != 2 || len(values.Values[0]) != 2 { + t.Errorf("values shape = %d rows", len(values.Values)) + } + if len(ins.Returning) != 1 || ins.Returning[0].GetAlias() != "x" { + t.Errorf("returning = %#v", ins.Returning) + } + if ins.OnConflict != nil || ins.DefaultValues { + t.Errorf("unexpected on-conflict/default-values") + } +} + +func TestInsertOnConflict(t *testing.T) { + stmt := parseOne(t, "INSERT INTO t VALUES (1) ON CONFLICT (a) WHERE a > 1 DO UPDATE SET b = 2 WHERE c > 3") + ins := stmt.(*ast.InsertStatement) + oc := ins.OnConflict + if oc == nil { + t.Fatal("no on-conflict info") + } + if oc.Action != ast.OnConflictUpdate { + t.Errorf("action = %q", oc.Action) + } + if !reflect.DeepEqual(oc.IndexedColumns, []string{"a"}) { + t.Errorf("indexed columns = %v", oc.IndexedColumns) + } + if oc.TargetWhere == nil { + t.Error("no target where") + } + if oc.SetInfo == nil || len(oc.SetInfo.Columns) != 1 || oc.SetInfo.Columns[0][0] != "b" { + t.Errorf("set info = %#v", oc.SetInfo) + } + if oc.SetInfo.Condition == nil { + t.Error("no DO UPDATE WHERE condition") + } + + // the OR REPLACE / OR IGNORE shorthands land in the same struct + ins = parseOne(t, "INSERT OR REPLACE INTO t VALUES (1)").(*ast.InsertStatement) + if ins.OnConflict == nil || ins.OnConflict.Action != ast.OnConflictReplace { + t.Errorf("OR REPLACE on-conflict = %#v", ins.OnConflict) + } + if msg := parseErr(t, "INSERT OR REPLACE INTO t VALUES (1) ON CONFLICT DO NOTHING"); !strings.Contains(msg, "not compatible") { + t.Errorf("shorthand+clause error = %q", msg) + } +} + +func TestInsertByNameDefaultValues(t *testing.T) { + ins := parseOne(t, "INSERT INTO t BY NAME DEFAULT VALUES").(*ast.InsertStatement) + if ins.ColumnOrder != ast.InsertByName { + t.Errorf("column order = %q", ins.ColumnOrder) + } + if !ins.DefaultValues || ins.Query != nil { + t.Errorf("default values = %v, query = %v", ins.DefaultValues, ins.Query) + } +} + +func TestUpdateShape(t *testing.T) { + stmt := parseOne(t, "UPDATE t AS x SET a = 1, b = 2 FROM u WHERE x.i = u.i RETURNING a") + up, ok := stmt.(*ast.UpdateStatement) + if !ok { + t.Fatalf("got %T, want *ast.UpdateStatement", stmt) + } + target := up.Table.(*ast.BaseTableRef) + if target.TableName != "t" || target.Alias != "x" { + t.Errorf("target = %q AS %q", target.TableName, target.Alias) + } + if len(up.SetInfo.Columns) != 2 || up.SetInfo.Columns[0][0] != "a" || up.SetInfo.Columns[1][0] != "b" { + t.Errorf("set columns = %v", up.SetInfo.Columns) + } + if len(up.SetInfo.Expressions) != 2 { + t.Errorf("set expressions = %d", len(up.SetInfo.Expressions)) + } + if up.From == nil || up.Where == nil || len(up.Returning) != 1 { + t.Errorf("from/where/returning missing") + } + // qualified SET targets are a transformer error, like upstream + if msg := parseErr(t, "UPDATE t SET a.b = 1"); !strings.Contains(msg, "Qualified column names") { + t.Errorf("dotted set target error = %q", msg) + } +} + +func TestDeleteShape(t *testing.T) { + stmt := parseOne(t, "DELETE FROM t USING u, v WHERE t.i = u.i RETURNING t.i") + del, ok := stmt.(*ast.DeleteStatement) + if !ok { + t.Fatalf("got %T, want *ast.DeleteStatement", stmt) + } + if del.Table.(*ast.BaseTableRef).TableName != "t" { + t.Errorf("table = %#v", del.Table) + } + if len(del.Using) != 2 { + t.Errorf("using = %d refs", len(del.Using)) + } + if del.Where == nil || len(del.Returning) != 1 { + t.Error("where/returning missing") + } + + tr := parseOne(t, "TRUNCATE TABLE s.t").(*ast.TruncateStatement) + ref := tr.Table.(*ast.BaseTableRef) + if ref.SchemaName != "s" || ref.TableName != "t" { + t.Errorf("truncate target = %#v", ref) + } +} + +func TestMergeIntoShape(t *testing.T) { + stmt := parseOne(t, `MERGE INTO t USING s ON t.i = s.i + WHEN MATCHED AND t.j > 0 THEN UPDATE SET j = s.j + WHEN NOT MATCHED THEN INSERT (i, j) VALUES (s.i, s.j) + WHEN NOT MATCHED BY SOURCE THEN DELETE + RETURNING merge_action, *`) + mg, ok := stmt.(*ast.MergeIntoStatement) + if !ok { + t.Fatalf("got %T, want *ast.MergeIntoStatement", stmt) + } + if mg.JoinCondition == nil { + t.Error("no join condition") + } + if len(mg.Actions) != 3 { + t.Fatalf("actions = %d", len(mg.Actions)) + } + upd, insAct, del := mg.Actions[0], mg.Actions[1], mg.Actions[2] + if upd.Kind != ast.MergeWhenMatched || upd.Action != ast.MergeUpdate || upd.Condition == nil { + t.Errorf("action[0] = %+v", upd) + } + if insAct.Kind != ast.MergeWhenNotMatchedByTarget || insAct.Action != ast.MergeInsert || + !reflect.DeepEqual(insAct.Columns, []string{"i", "j"}) || len(insAct.Expressions) != 2 { + t.Errorf("action[1] = %+v", insAct) + } + if del.Kind != ast.MergeWhenNotMatchedBySource || del.Action != ast.MergeDelete { + t.Errorf("action[2] = %+v", del) + } + if len(mg.Returning) != 2 { + t.Errorf("returning = %d", len(mg.Returning)) + } +} + +func TestDMLParameters(t *testing.T) { + ins := parseOne(t, "INSERT INTO t VALUES ($a, $b, $a)").(*ast.InsertStatement) + want := []ast.NamedParam{{Name: "a", Index: 1}, {Name: "b", Index: 2}} + if !reflect.DeepEqual(ins.NamedParams, want) { + t.Errorf("params = %+v, want %+v", ins.NamedParams, want) + } + if msg := parseErr(t, "UPDATE t SET a = $x WHERE b = ?"); !strings.Contains(msg, "Mixing named and positional") { + t.Errorf("mixed params error = %q", msg) + } +} + +func TestDMLInCTE(t *testing.T) { + sel := parseOne(t, "WITH ins AS (INSERT INTO t VALUES (1) RETURNING i) SELECT i FROM ins").(*ast.SelectStatement) + ctes := sel.Node.(*ast.SelectNode).CTEs + if len(ctes.Entries) != 1 { + t.Fatalf("cte entries = %d", len(ctes.Entries)) + } + iq, ok := ctes.Entries[0].CTE.Query.(*ast.InsertQueryNode) + if !ok { + t.Fatalf("cte body = %T, want *ast.InsertQueryNode", ctes.Entries[0].CTE.Query) + } + if iq.Insert.Table != "t" || len(iq.Insert.Returning) != 1 { + t.Errorf("wrapped insert = %+v", iq.Insert) + } + + del := parseOne(t, "WITH d AS (DELETE FROM t RETURNING i) SELECT * FROM d").(*ast.SelectStatement) + if _, ok := del.Node.(*ast.SelectNode).CTEs.Entries[0].CTE.Query.(*ast.DeleteQueryNode); !ok { + t.Error("DELETE CTE body did not become a DeleteQueryNode") + } + + up := parseOne(t, "WITH u AS (UPDATE t SET a = 1 RETURNING i) SELECT * FROM u").(*ast.SelectStatement) + if _, ok := up.Node.(*ast.SelectNode).CTEs.Entries[0].CTE.Query.(*ast.UpdateQueryNode); !ok { + t.Error("UPDATE CTE body did not become an UpdateQueryNode") + } + + // non-DML statements stay rejected, like upstream + if msg := parseErr(t, "WITH x AS (DROP TABLE t) SELECT 1"); !strings.Contains(msg, "CTE body must be") { + t.Errorf("DDL-in-CTE error = %q", msg) + } +} diff --git a/parser/parser_test.go b/parser/parser_test.go index 1973fc7..19a3aa1 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -1,14 +1,19 @@ -// Corpus conformance harness (milestone 2): darkwing must accept a -// statement iff the pinned DuckDB binary parses it. Corpus files and -// expectations under testdata/ are generated by cmd/regenerate and never -// edited by hand; per-file *.metadata.json sidecars carry todo/skip lists -// (see cmd/next-test for picking the next todo case). +// Corpus conformance harness: darkwing must accept a statement iff the +// pinned DuckDB binary parses it. Corpus files and expectations under +// testdata/ are generated by cmd/regenerate and never edited by hand; +// per-file *.metadata.json sidecars carry todo/skip lists (see +// cmd/next-test for picking the next todo case). // -// The parser package itself (Parse/ParseStatement/ParseExpr and the typed -// AST) arrives in milestone 3; accept/reject needs only the engine. +// Since milestone 3 the classification runs the full Parse pipeline, so +// transformer-raised rejects (chained comparisons, parameter mixing, ...) +// count alongside the engine's syntax errors. Statements the transformer +// does not cover yet (ErrUnsupported, milestone 5) are accepts: the +// engine parsed them. package parser import ( + "context" + "errors" "flag" "fmt" "io/fs" @@ -27,22 +32,34 @@ var ( ) // verdict is darkwing's accept/reject classification of one statement, -// mirroring the oracle's: tokenizer errors and matcher syntax errors are -// rejects; anything else is an accept. +// mirroring the oracle's: tokenizer errors, matcher syntax errors and +// transformer-raised parser errors are rejects; anything else — including +// statements whose transformer is still missing — is an accept. type verdict struct { reject bool detail string } -func classify(engine *matcher.Engine, sql string) verdict { - tokens, err := lexer.Tokenize(sql) - if err != nil { - return verdict{reject: true, detail: err.Error()} - } - if _, err := engine.MatchAll(tokens); err != nil { - return verdict{reject: true, detail: err.Error()} +func classify(engine *matcher.Engine, sql string) (v verdict) { + defer func() { + if r := recover(); r != nil { + v = verdict{reject: false, detail: fmt.Sprintf("transformer panic: %v", r)} + } + }() + _, err := Parse(context.Background(), strings.NewReader(sql)) + switch { + case err == nil: + return verdict{} + case errors.Is(err, ErrUnsupported): + return verdict{} + default: + var pe *Error + if errors.As(err, &pe) { + return verdict{reject: true, detail: pe.Error()} + } + // internal errors are neither accept nor reject; surface them + return verdict{reject: false, detail: "internal error: " + err.Error()} } - return verdict{} } func corpusFiles(t *testing.T) []string { @@ -72,6 +89,7 @@ func TestCorpus(t *testing.T) { if err != nil { t.Fatal(err) } + _ = engine for _, path := range corpusFiles(t) { rel, _ := filepath.Rel("testdata", path) t.Run(filepath.ToSlash(rel), func(t *testing.T) { @@ -95,6 +113,10 @@ func TestCorpus(t *testing.T) { if *checkParse != "" && strings.Contains(c.SQL, *checkParse) { dumpCase(t, engine, c, got) } + if !got.reject && got.detail != "" { + t.Errorf("case %s: %s\nSQL: %s", key, got.detail, c.SQL) + continue + } agrees := got.reject == c.Reject if note, isTodo := meta.Todo[key]; isTodo { if agrees { diff --git a/parser/testdata/corpus/fuzzer/duckfuzz/unpivot_multiple_in.test.metadata.json b/parser/testdata/corpus/fuzzer/duckfuzz/unpivot_multiple_in.test.metadata.json deleted file mode 100644 index 6f816c6..0000000 --- a/parser/testdata/corpus/fuzzer/duckfuzz/unpivot_multiple_in.test.metadata.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "todo": { - "bb751ab7f05fe5f5": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/fuzzer/pedro/window_self_reference.test.metadata.json b/parser/testdata/corpus/fuzzer/pedro/window_self_reference.test.metadata.json deleted file mode 100644 index 1c5726f..0000000 --- a/parser/testdata/corpus/fuzzer/pedro/window_self_reference.test.metadata.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "todo": { - "45c9e3c8c8f61530": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "88f8d8e5fc7e9ec8": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/sql/create/create_or_replace.test.metadata.json b/parser/testdata/corpus/sql/create/create_or_replace.test.metadata.json deleted file mode 100644 index 89f2d46..0000000 --- a/parser/testdata/corpus/sql/create/create_or_replace.test.metadata.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "todo": { - "bc94bef0d55f8b17": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/sql/cte/dml_cte.test.metadata.json b/parser/testdata/corpus/sql/cte/dml_cte.test.metadata.json index 2823742..7b42284 100644 --- a/parser/testdata/corpus/sql/cte/dml_cte.test.metadata.json +++ b/parser/testdata/corpus/sql/cte/dml_cte.test.metadata.json @@ -1,10 +1,7 @@ { "todo": { - "2c71a76a1b25a2f6": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", "6f9e83f76d8baaf5": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "7d4c81fff04c9127": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", "7da2a7c8da13c934": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "7eed85fe16a65e3a": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "840ee49106690f16": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" + "7eed85fe16a65e3a": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" } } diff --git a/parser/testdata/corpus/sql/function/operator/test_comparison.test.metadata.json b/parser/testdata/corpus/sql/function/operator/test_comparison.test.metadata.json index aea27ca..bb6897a 100644 --- a/parser/testdata/corpus/sql/function/operator/test_comparison.test.metadata.json +++ b/parser/testdata/corpus/sql/function/operator/test_comparison.test.metadata.json @@ -1,7 +1,5 @@ { "todo": { - "94bbc645841ee4b3": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "9947ff756bfb6e1c": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "ee6e0854346020ce": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" + "94bbc645841ee4b3": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" } } diff --git a/parser/testdata/corpus/sql/join/nearest/nearest_errors.test.metadata.json b/parser/testdata/corpus/sql/join/nearest/nearest_errors.test.metadata.json index 292424e..6994aa3 100644 --- a/parser/testdata/corpus/sql/join/nearest/nearest_errors.test.metadata.json +++ b/parser/testdata/corpus/sql/join/nearest/nearest_errors.test.metadata.json @@ -1,7 +1,6 @@ { "todo": { "07e88975ac7f20a0": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "21b4e00cd5ee9574": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", "27d1471e2bc2db2c": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", "64c6e59cc6f48b32": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", "c0c3d3d824ff120d": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", diff --git a/parser/testdata/corpus/sql/peg_parser/fuzzer/fuzzer_4434.test.metadata.json b/parser/testdata/corpus/sql/peg_parser/fuzzer/fuzzer_4434.test.metadata.json deleted file mode 100644 index d5faca8..0000000 --- a/parser/testdata/corpus/sql/peg_parser/fuzzer/fuzzer_4434.test.metadata.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "todo": { - "1a023700c33c60cc": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "cf66331a950ed4cd": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/sql/peg_parser/qualified_operator.test.metadata.json b/parser/testdata/corpus/sql/peg_parser/qualified_operator.test.metadata.json deleted file mode 100644 index f40261e..0000000 --- a/parser/testdata/corpus/sql/peg_parser/qualified_operator.test.metadata.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "todo": { - "884568dd738cc3d8": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/sql/subquery/any_all/test_any_all.test.metadata.json b/parser/testdata/corpus/sql/subquery/any_all/test_any_all.test.metadata.json deleted file mode 100644 index cf03d82..0000000 --- a/parser/testdata/corpus/sql/subquery/any_all/test_any_all.test.metadata.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "todo": { - "3dc601b65efbaeef": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "b735d58672d395c1": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/sql/types/interval/interval_constants.test.metadata.json b/parser/testdata/corpus/sql/types/interval/interval_constants.test.metadata.json deleted file mode 100644 index 4409b90..0000000 --- a/parser/testdata/corpus/sql/types/interval/interval_constants.test.metadata.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "todo": { - "04ee46798d97f4b6": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "6124af0548343e75": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "7368d1dbd4b24fc7": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "80b6093f251a3f04": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "90584cf0d74da9a8": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "a9dad68a8d894d49": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "db10f4deff33212f": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/sql/update/update_error_suggestions.test.metadata.json b/parser/testdata/corpus/sql/update/update_error_suggestions.test.metadata.json deleted file mode 100644 index f4739cc..0000000 --- a/parser/testdata/corpus/sql/update/update_error_suggestions.test.metadata.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "todo": { - "b5c9ca3822ec9e87": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/sql/upsert/upsert_shorthand.test.metadata.json b/parser/testdata/corpus/sql/upsert/upsert_shorthand.test.metadata.json deleted file mode 100644 index 79a692f..0000000 --- a/parser/testdata/corpus/sql/upsert/upsert_shorthand.test.metadata.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "todo": { - "cfb4db6177cc025a": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/sql/window/test_window_binding_ctes.test.metadata.json b/parser/testdata/corpus/sql/window/test_window_binding_ctes.test.metadata.json deleted file mode 100644 index 18824f2..0000000 --- a/parser/testdata/corpus/sql/window/test_window_binding_ctes.test.metadata.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "todo": { - "0e8d373f8ebea010": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "d2db65c424b476be": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" - } -} diff --git a/parser/testdata/corpus/sql/window/test_window_clause.test.metadata.json b/parser/testdata/corpus/sql/window/test_window_clause.test.metadata.json index d526261..464461c 100644 --- a/parser/testdata/corpus/sql/window/test_window_clause.test.metadata.json +++ b/parser/testdata/corpus/sql/window/test_window_clause.test.metadata.json @@ -1,10 +1,8 @@ { "todo": { "84dedaaf2db41fc2": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "9c47af271ef9c2f9": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", "9e4603bc2eea26a4": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", "c4a0f47f624c993b": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", - "ce8e3949514da730": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)", "ea6eacac12b584cf": "transformer-raised parser error: upstream rejects in the transformer, not the grammar; expected to clear as transformers land (milestones 3-5)" } } diff --git a/parser/testdata/serialize/README.md b/parser/testdata/serialize/README.md index b30ef68..e483677 100644 --- a/parser/testdata/serialize/README.md +++ b/parser/testdata/serialize/README.md @@ -25,7 +25,8 @@ 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 time of writing the full sweep covers 25,414 SELECT-subset -statements: 25,301 match, 0 mismatch, 113 skipped (statements the pinned -binary itself refuses to serialize, e.g. PIVOT-with-enum-discovery forms -that upstream turns into multi-statement plans). +At the time of writing (milestone 4) the full sweep covers 25,974 +SELECT-subset statements: 25,846 match, 0 mismatch, 128 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). diff --git a/parser/testdata/serialize/goldens.jsonl b/parser/testdata/serialize/goldens.jsonl index 5a26aee..9e16ac9 100644 --- a/parser/testdata/serialize/goldens.jsonl +++ b/parser/testdata/serialize/goldens.jsonl @@ -3,67 +3,69 @@ {"sql":"SELECT c50 FROM array_tbl GROUP BY ALL USING SAMPLE 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":["c50"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":9,"schema_name":"","table_name":"array_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["array_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":null,"sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3},"is_percentage":false,"method":"Reservoir","seed":-1,"repeatable":false,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} {"sql":"select bitstring_agg(4741, 1706, -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":31,"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":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4741}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1706}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-128}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 integers AS t1 RIGHT JOIN integers AS t2 ON (NULL) WHERE EXISTS(SELECT NULL FROM integers AS t3 INNER JOIN integers ON ((t3.i + t1.i)) , (SELECT t2.i AS 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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":35,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":17,"query_location_length":14,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":43,"query_location_length":14,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":74,"query_location_length":100,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":93,"query_location_length":80,"left":{"type":"JOIN","alias":"","sample":null,"query_location":113,"query_location_length":38,"left":{"type":"BASE_TABLE","alias":"t3","sample":null,"query_location":98,"query_location_length":14,"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":124,"query_location_length":8,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"condition":{"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":138,"query_location_length":4,"column_names":["t3","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":4,"column_names":["t1","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},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":154,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":162,"query_location_length":4,"column_names":["t2","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":[]},"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":[]},"child":null,"comparison_type":"INVALID"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"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'))","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":3595,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":3557,"child":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":22,"query_location_length":47,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":10,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2918}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":32,"function_name":"shobj_description","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":59,"query_location_length":8,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6203}}]}}]}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":3494,"catalog":"","schema":"","type_name":"ENUM","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_4"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_5"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_6"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_7"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":159,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_8"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_9"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_10"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_11"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_12"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":212,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_13"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_14"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_15"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":245,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_16"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_17"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_18"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":278,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_19"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":289,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_20"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":300,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_21"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":311,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_22"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":322,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_23"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":333,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_24"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":344,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_25"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":355,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_26"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":366,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_27"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":377,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_28"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":388,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_29"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":399,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_30"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":410,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_31"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":421,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_32"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":432,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_33"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":443,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_34"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":454,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_35"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":465,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_36"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":476,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_37"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":487,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_38"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":498,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_39"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":509,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_40"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":520,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_41"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":531,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_42"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":542,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_43"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":553,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_44"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":564,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_45"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":575,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_46"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":586,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_47"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":597,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_48"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":608,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_49"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":619,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_50"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":630,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_51"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":641,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_52"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":652,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_53"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":663,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_54"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":674,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_55"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":685,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_56"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":696,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_57"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":707,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_58"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":718,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_59"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":729,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_60"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":740,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_61"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":751,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_62"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":762,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_63"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":773,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_64"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":784,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_65"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":795,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_66"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":806,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_67"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":817,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_68"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":828,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_69"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":839,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_70"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":850,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_71"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":861,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_72"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":872,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_73"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":883,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_74"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":894,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_75"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":905,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_76"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":916,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_77"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":927,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_78"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":938,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_79"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":949,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_80"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":960,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_81"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":971,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_82"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":982,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_83"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":993,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_84"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1004,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_85"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1015,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_86"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1026,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_87"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1037,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_88"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1048,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_89"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1059,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_90"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1070,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_91"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1081,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_92"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1092,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_93"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1103,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_94"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1114,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_95"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1125,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_96"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1136,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_97"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1147,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_98"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1158,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_99"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1169,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_100"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1181,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_101"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1193,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_102"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1205,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_103"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1217,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_104"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1229,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_105"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1241,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_106"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1253,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_107"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1265,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_108"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1277,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_109"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1289,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_110"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1301,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_111"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1313,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_112"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1325,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_113"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1337,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_114"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1349,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_115"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1361,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_116"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1373,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_117"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1385,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_118"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1397,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_119"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1409,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_120"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1421,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_121"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1433,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_122"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1445,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_123"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1457,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_124"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1469,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_125"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1481,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_126"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1493,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_127"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1505,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_128"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1517,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_129"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1529,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_130"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1541,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_131"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1553,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_132"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1565,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_133"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1577,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_134"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1589,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_135"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1601,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_136"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1613,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_137"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1625,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_138"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1637,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_139"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1649,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_140"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1661,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_141"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1673,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_142"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1685,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_143"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1697,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_144"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1709,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_145"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1721,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_146"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1733,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_147"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1745,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_148"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1757,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_149"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1769,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_150"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1781,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_151"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1793,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_152"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1805,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_153"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1817,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_154"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1829,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_155"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1841,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_156"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1853,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_157"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1865,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_158"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1877,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_159"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1889,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_160"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1901,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_161"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1913,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_162"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1925,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_163"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1937,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_164"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1949,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_165"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1961,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_166"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1973,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_167"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1985,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_168"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1997,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_169"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2009,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_170"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2021,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_171"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2033,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_172"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2045,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_173"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2057,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_174"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2069,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_175"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2081,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_176"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2093,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_177"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2105,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_178"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2117,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_179"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2129,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_180"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2141,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_181"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2153,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_182"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2165,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_183"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2177,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_184"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2189,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_185"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2201,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_186"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2213,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_187"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2225,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_188"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2237,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_189"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2249,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_190"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2261,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_191"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2273,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_192"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2285,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_193"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2297,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_194"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2309,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_195"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2321,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_196"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2333,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_197"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2345,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_198"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2357,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_199"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2369,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_200"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2381,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_201"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2393,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_202"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2405,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_203"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2417,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_204"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2429,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_205"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2441,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_206"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2453,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_207"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2465,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_208"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2477,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_209"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2489,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_210"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2501,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_211"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2513,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_212"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2525,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_213"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2537,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_214"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2549,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_215"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2561,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_216"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2573,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_217"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2585,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_218"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2597,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_219"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2609,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_220"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2621,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_221"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2633,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_222"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2645,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_223"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2657,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_224"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2669,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_225"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2681,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_226"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2693,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_227"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2705,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_228"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2717,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_229"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2729,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_230"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2741,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_231"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2753,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_232"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2765,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_233"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2777,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_234"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2789,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_235"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2801,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_236"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2813,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_237"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2825,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_238"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2837,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_239"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2849,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_240"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2861,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_241"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2873,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_242"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2885,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_243"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2897,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_244"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2909,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_245"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2921,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_246"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2933,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_247"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2945,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_248"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2957,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_249"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2969,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_250"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2981,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_251"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2993,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_252"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3005,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_253"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3017,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_254"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3029,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_255"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3041,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_256"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3053,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_257"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3065,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_258"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3077,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_259"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3089,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_260"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3101,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_261"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3113,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_262"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3125,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_263"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3137,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_264"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3149,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_265"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3161,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_266"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3173,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_267"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3185,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_268"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3197,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_269"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3209,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_270"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3221,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_271"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3233,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_272"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3245,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_273"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3257,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_274"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3269,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_275"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3281,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_276"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3293,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_277"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3305,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_278"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3317,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_279"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3329,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_280"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3341,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_281"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3353,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_282"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3365,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_283"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3377,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_284"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3389,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_285"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3401,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_286"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3413,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_287"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3425,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_288"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3437,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_289"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3449,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_290"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3461,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_291"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3473,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_292"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3485,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_293"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3497,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_294"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3509,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_295"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3521,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_296"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3533,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_297"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3545,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_298"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3557,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_299"}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":3573,"query_location_length":28,"catalog":"","schema":"","type_name":"ENUM","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3578,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_0"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3588,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enum_69999"}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1, 64, 157);","json":{"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":64}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":157}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT julian(c1) \nFROM test_vector_types(CAST(NULL AS DATE)) 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":10,"function_name":"julian","schema":"","filter":null,"order_bys":{"type":"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":["c1"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"test_vector_types","sample":null,"query_location":24,"query_location_length":62,"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":42,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":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 map_concat(map { 'a': 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":33,"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":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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 regexp_extract('foobarbaz', 'B..', 0, 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"B.."}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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\nFROM all_types\n \tINNER JOIN (SELECT NULL)\n RIGHT JOIN all_types AS ref_2\n LEFT JOIN all_types AS ref_7\n INNER JOIN all_types AS ref_8\n ON (( ref_7.int_array = ref_8.int_array ))\n ON ( NULL )\n INNER JOIN all_types AS ref_9\n ON ( ref_2.\"varchar\" )\n ON (( \"Version\"() IS NULL ))\n ON ( EXISTS(SELECT ref_7.\"bit\" AS c0\n FROM all_types AS ref_10\n WHERE 0\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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":507,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":9,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":75,"query_location_length":353,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":48,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":[]},"column_name_alias":[]},"right":{"type":"JOIN","alias":"","sample":null,"query_location":312,"query_location_length":72,"left":{"type":"JOIN","alias":"","sample":null,"query_location":122,"query_location_length":170,"left":{"type":"BASE_TABLE","alias":"ref_2","sample":null,"query_location":86,"query_location_length":18,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":170,"query_location_length":91,"left":{"type":"BASE_TABLE","alias":"ref_7","sample":null,"query_location":132,"query_location_length":18,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"right":{"type":"BASE_TABLE","alias":"ref_8","sample":null,"query_location":181,"query_location_length":18,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":225,"query_location_length":33,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":15,"column_names":["ref_7","int_array"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":243,"query_location_length":15,"column_names":["ref_8","int_array"]}},"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":286,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":"ref_9","sample":null,"query_location":323,"query_location_length":18,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"condition":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":367,"query_location_length":15,"column_names":["ref_2","varchar"]},"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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":418,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":406,"query_location_length":11,"function_name":"version","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}]},"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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":441,"query_location_length":102,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":455,"query_location_length":11,"column_names":["ref_7","bit"]}],"from_table":{"type":"BASE_TABLE","alias":"ref_10","sample":null,"query_location":491,"query_location_length":19,"schema_name":"","table_name":"all_types","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":529,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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 vector_type(COLUMNS(*)) 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":23,"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":"STAR","type":"STAR","alias":"","query_location":27,"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":36,"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 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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 1 FROM (SELECT 1) t1(c0) GROUP BY ALL HAVING EXISTS (SELECT 1 FROM (SELECT 1) t0(c2) HAVING 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","having":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":52,"query_location_length":50,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"SUBQUERY","alias":"t0","sample":null,"query_location":74,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["c2"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":2,"column_names":["c0"]},"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 FROM (SELECT 2) t0, (SELECT 3) t1 WHERE INTERVAL '1' DAYS USING SAMPLE (1 ROWS) REPEATABLE (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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":33,"left":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"t1","sample":null,"query_location":29,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":58,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},"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":1,"repeatable":true,"sample_rate":-1.0},"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 0 FROM (SELECT 8 c0) WHERE (SELECT 1 LIMIT 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],"from_table":{"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":"c0","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":34,"query_location_length":19,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["c0"]},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT trim('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":13,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} -{"sql":"SELECT BLOB 't\\xF0\\xC0\\xD3\\x86\\xF1p?\\xCE;\\xC6~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":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":41,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t\\xF0\\xC0\\xD3\\x86\\xF1p?\\xCE;\\xC6~H"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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() c0 FROM (SELECT 1) t1(c2) HAVING c0 = 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c0","query_location":7,"query_location_length":7,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":23,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["c2"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT 1 INTERSECT SELECT 1 HAVING false) FROM t0;","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":42,"subquery_type":"SCALAR","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},"sample":null,"qualify":null}]},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"p"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-543572-1-1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\\xC2\\xA3'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\xC2\\xA3"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\\xc0\\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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\xc0\\x81"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('c01')\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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c01"}},"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":"SELECT (SELECT 42 FROM (SELECT c01) POSITIONAL JOIN (SELECT c02))\nFROM v00;","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":58,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":28,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":23,"query_location_length":12,"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":["c01"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":52,"query_location_length":12,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":3,"column_names":["c02"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":"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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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 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}"]}}]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":107,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}}]}],"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(approx_quantile(i, 0.5) EXPORT_STATE) = approx_quantile(i, 0.5) FROM range(1, 10001) t(i);","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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}]},"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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":85,"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":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10001}}}]},"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 approx_top_k(x, 3) EXPORT_STATE FROM (SELECT 'a' AS x 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":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":20,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":44,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":52,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 g, finalize(approx_top_k(v, 2) 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":"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":32,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"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 finalize(arg_min_null(a, b) EXPORT_STATE) FROM (VALUES (NULL, 5), (2, 10)) 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":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":"arg_min_null","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":29,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["b"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":54,"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":63,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]]},"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 finalize(to_aggregate_state({'arg': 42, 'by': 1}::STRUCT(arg INTEGER, \"by\" INTEGER), 'arg_min', ['INTEGER', '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":120,"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":110,"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":55,"query_location_length":35,"child":{"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":"arg","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"arg","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"by","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"by","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":33,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"arg","query_location":68,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"by","query_location":82,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"arg_min"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"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":104,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 finalize(bool_and(v) EXPORT_STATE) FROM (VALUES (true), (false)) 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":"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":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":25,"query_location_length":1,"column_names":["v"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":47,"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":56,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 first(i) EXPORT_STATE FROM (SELECT 1 AS i 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":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":13,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":34,"query_location_length":27,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":55,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 finalize(first(s) EXPORT_STATE), finalize(last(s) EXPORT_STATE)\nFROM (VALUES ({'a': 1, 'b': 'x'}), (NULL), ({'a': 2, 'b': 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":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":["s"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":49,"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":54,"query_location_length":1,"column_names":["s"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":76,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"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":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":99,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":115,"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":121,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":129,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}]]},"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 finalize(to_aggregate_state({'value': 42}::STRUCT(value INTEGER), 'first', ['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":"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":78,"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":48,"query_location_length":23,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":"value","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"value","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":21,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"value","query_location":63,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"first"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"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":83,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 finalize(list(l) EXPORT_STATE) FROM (VALUES ([1, 2]), ([]), (NULL), ([3])) 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":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":["l"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":43,"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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"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":[]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}]]},"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 finalize(combine(l, l)) FROM (SELECT list(i) EXPORT_STATE l FROM (SELECT NULL::INTEGER AS i WHERE false) 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":23,"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":13,"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":24,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["l"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":36,"query_location_length":78,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":44,"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":49,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":72,"query_location_length":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"i","query_location":84,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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":105,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 min(v) EXPORT_STATE FROM (VALUES ('long-string-banana'), ('long-string-apple'), ('long-string-cherry')) 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":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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":32,"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":"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":41,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"long-string-banana"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"long-string-apple"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"long-string-cherry"}}]]},"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 l_shipdate, finalize(list(l_orderkey ORDER BY l_quantity) EXPORT_STATE)\nFROM lineitem GROUP BY l_shipdate ORDER BY l_shipdate;","json":{"error":false,"statements":[{"node":{"type":"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":10,"column_names":["l_shipdate"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["l_shipdate"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":59,"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":28,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":10,"column_names":["l_quantity"]}}]},"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":10,"column_names":["l_orderkey"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":10,"column_names":["l_shipdate"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, finalize(first(v ORDER BY v) EXPORT_STATE), finalize(last(v ORDER BY v) EXPORT_STATE),\n finalize(any_value(v ORDER BY v DESC) EXPORT_STATE)\nFROM (VALUES (0, 30), (0, 10), (0, 20), (1, 5), (1, 9)) t(g, v) 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":240,"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":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":19,"query_location_length":32,"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":36,"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":25,"query_location_length":1,"column_names":["v"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"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":63,"query_location_length":31,"function_name":"last","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":79,"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":68,"query_location_length":1,"column_names":["v"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"query_location_length":51,"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":113,"query_location_length":41,"function_name":"any_value","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":134,"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":123,"query_location_length":1,"column_names":["v"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":161,"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":170,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}]]},"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":229,"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(*) FROM ordered_state os JOIN (\n SELECT g, list(v ORDER BY v) AS direct FROM narrow GROUP BY g\n) d USING (g)\nWHERE finalize(os.l) 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":38,"query_location_length":86,"left":{"type":"BASE_TABLE","alias":"os","sample":null,"query_location":21,"query_location_length":16,"schema_name":"","table_name":"ordered_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ordered_state"]}},"right":{"type":"SUBQUERY","alias":"d","sample":null,"query_location":43,"query_location_length":69,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"direct","query_location":59,"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":75,"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":64,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"query_location_length":6,"schema_name":"","table_name":"narrow","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["narrow"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"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":131,"query_location_length":40,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":131,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":4,"column_names":["os","l"]}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"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 product(v) EXPORT_STATE FROM (VALUES (2.0), (3.0), (4.0)) 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":"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":15,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":36,"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":45,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":20}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":30}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":40}}]]},"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 typeof(sum(true) 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":30,"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":22,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 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"]}}]}}]}],"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},"group_expressions":[],"group_sets":[],"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"]}}]}}]}}]}],"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"]}}]}}]}],"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(skewness(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":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":"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":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":33,"query_location_length":1,"column_names":["d"]}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"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 COMBINE(skewness(42) EXPORT_STATE, 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":38,"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":25,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 quantile_disc(d, -0.25) 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":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":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":-25}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"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(combine(\n\t(SELECT quantile_disc(d, 0.5) EXPORT_STATE FROM dummy WHERE d \u003c 50),\n\t(SELECT quantile_disc(d, 0.5) EXPORT_STATE 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":157,"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":147,"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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":26,"query_location_length":67,"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":34,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":86,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}},"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":96,"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":104,"query_location_length":34,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":144,"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":156,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_disc(s, [0.1, 0.5, 0.9]) FROM 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":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":21,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":25,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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":[]}]}} -{"sql":"SELECT finalize(combine(\n\t(SELECT string_agg(d, '|') EXPORT_STATE FROM dummy WHERE d \u003c 3),\n\t(SELECT string_agg(d, '|') EXPORT_STATE 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":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":"combine","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":26,"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":34,"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":45,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"query_location_length":5,"schema_name":"","table_name":"dummy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dummy"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":83,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"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":92,"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":100,"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":111,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":137,"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":149,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\tNULL\nFROM\nmain.partsupp AS ref_1\nINNER JOIN main.region ON (NULL)\nINNER JOIN main.customer AS ref_3 ON\n(EXISTS(SELECT NULL FROM (SELECT ref_3.c_acctbal AS c0)))\nINNER JOIN\n(SELECT\n\tref_9.s_phone AS c0,\n\tref_8.r_regionkey AS c1,\n\tref_9.s_phone AS c2\nFROM main.region AS ref_8\nRIGHT JOIN\n\tmain.supplier AS ref_9 ON ((1 AND (ref_9.s_comment ~~ ref_9.s_address) AND 0 AND (ref_9.s_name !~~ ref_9.s_name)))\nLEFT JOIN main.customer AS ref_10 ON ((ref_10.c_address ~~* ref_10.c_comment))\nWHERE (ref_9.s_phone IS NOT NULL) LIMIT 53) AS subq_2\nON ((CASE WHEN (1) THEN (subq_2.c2) ELSE subq_2.c2 END !~~ ref_1.ps_comment))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":169,"query_location_length":452,"left":{"type":"JOIN","alias":"","sample":null,"query_location":74,"query_location_length":94,"left":{"type":"JOIN","alias":"","sample":null,"query_location":41,"query_location_length":32,"left":{"type":"BASE_TABLE","alias":"ref_1","sample":null,"query_location":18,"query_location_length":22,"schema_name":"main","table_name":"partsupp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","partsupp"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":11,"schema_name":"main","table_name":"region","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","region"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":"BASE_TABLE","alias":"ref_3","sample":null,"query_location":85,"query_location_length":22,"schema_name":"main","table_name":"customer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","customer"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":112,"query_location_length":55,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":136,"query_location_length":30,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":144,"query_location_length":15,"column_names":["ref_3","c_acctbal"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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"},"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":"subq_2","sample":null,"query_location":180,"query_location_length":352,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":529,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":53}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c0","query_location":189,"query_location_length":13,"column_names":["ref_9","s_phone"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c1","query_location":211,"query_location_length":17,"column_names":["ref_8","r_regionkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c2","query_location":237,"query_location_length":13,"column_names":["ref_9","s_phone"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":410,"query_location_length":78,"left":{"type":"JOIN","alias":"","sample":null,"query_location":283,"query_location_length":126,"left":{"type":"BASE_TABLE","alias":"ref_8","sample":null,"query_location":262,"query_location_length":20,"schema_name":"main","table_name":"region","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","region"]}},"right":{"type":"BASE_TABLE","alias":"ref_9","sample":null,"query_location":295,"query_location_length":22,"schema_name":"main","table_name":"supplier","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","supplier"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":323,"query_location_length":84,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":323,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":346,"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":330,"query_location_length":15,"column_names":["ref_9","s_comment"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":349,"query_location_length":15,"column_names":["ref_9","s_address"]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":370,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":390,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":377,"query_location_length":12,"column_names":["ref_9","s_name"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":394,"query_location_length":12,"column_names":["ref_9","s_name"]}}]}]},"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},"right":{"type":"BASE_TABLE","alias":"ref_10","sample":null,"query_location":420,"query_location_length":23,"schema_name":"main","table_name":"customer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","customer"]}},"condition":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":466,"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":449,"query_location_length":16,"column_names":["ref_10","c_address"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":470,"query_location_length":16,"column_names":["ref_10","c_comment"]}}]},"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_NOT_NULL","alias":"","query_location":510,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":496,"query_location_length":13,"column_names":["ref_9","s_phone"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"condition":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":599,"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":"CASE","type":"CASE_EXPR","alias":"","query_location":548,"query_location_length":50,"case_checks":[{"when_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":560,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":569,"query_location_length":9,"column_names":["subq_2","c2"]}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":585,"query_location_length":9,"column_names":["subq_2","c2"]}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":603,"query_location_length":16,"column_names":["ref_1","ps_comment"]}}]},"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 make_time(-1, 64, 157);","json":{"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":64}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":157}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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}', 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":43,"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\": 42}"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(42, 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":"map_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":18,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"FROM read_csv_auto([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":19,"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":19,"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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]},"column_name_alias":[],"with_ordinality":"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 repeat(1050, -128)","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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"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":"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":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1050}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-128}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT vector_type(42::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":24,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(c34) FILTER (WHERE c26) OVER (PARTITION BY c23 ROWS BETWEEN COALESCE(c5, 0) PRECEDING AND CURRENT ROW)\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, c43)\nORDER BY ALL NULLS LAST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","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":"","query_location":7,"query_location_length":106,"function_name":"max","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["c23"]}],"orders":[],"start":"EXPR_PRECEDING_ROWS","end":"CURRENT_ROW_ROWS","start_expr":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":71,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":2,"column_names":["c5"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]},"end_expr":null,"offset_expr":null,"default_expr":null,"ignore_nulls":false,"filter_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":3,"column_names":["c26"]},"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":3,"column_names":["c34"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"t43","sample":null,"query_location":119,"query_location_length":222,"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","c43"],"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 construct_array(*COLUMNS(*)) FROM v00;","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":28,"children":[{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":23,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":32,"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":41,"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 mode((c0, 0)) FROM (SELECT 1 c0), (SELECT 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":13,"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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":21,"query_location_length":30,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":26,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c0","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":41,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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 1) a where (select (select 3) b where (select b) \u003e (select a));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"a","query_location":7,"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":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":26,"query_location_length":51,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"b","query_location":34,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"comparison_type":"INVALID"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":53,"query_location_length":23,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":53,"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":61,"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":[]},"child":null,"comparison_type":"INVALID"},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":66,"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":74,"query_location_length":1,"column_names":["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"}},"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 1 FROM t1 WHERE NOT ('\\x96'::BLOB IN (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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":23,"query_location_length":25,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":44,"query_location_length":3,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x96"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT 1 LIMIT t1.rowid) FROM t1 NATURAL JOIN t0;","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":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":8,"column_names":["t1","rowid"]},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"JOIN","alias":"","sample":null,"query_location":41,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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":54,"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},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from tbl t1 join tbl t2 using (i, j) join tbl t3 using (i, j);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":24,"left":{"type":"JOIN","alias":"","sample":null,"query_location":21,"query_location_length":24,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":14,"query_location_length":6,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":26,"query_location_length":6,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"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},"right":{"type":"BASE_TABLE","alias":"t3","sample":null,"query_location":51,"query_location_length":6,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"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 18446744073709550591::DOUBLE::UBIGINT","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":9,"child":{"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":18446744073709550591}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) t0(c0) GROUP BY CUBE (1) HAVING (currval('seq') IS 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"group_sets":[[],[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":73,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":66,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]}]},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t2 WHERE c1\u003e1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":23,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":2,"column_names":["c1"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1' LIKE [];","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":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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"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":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":"*","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":12,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 range((SELECT 1) - 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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"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":"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":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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":20,"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":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '552.123242346e+11'::DECIMAL;","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"552.123242346e+11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 WHERE NOT (-9223372036854775808 \u003e= (6892203265207104503 - (-7595956987701092486)));","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":23,"query_location_length":76,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":28,"query_location_length":70,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}},"right":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":6892203265207104503}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-7595956987701092486}}}]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 42","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 ((SELECT 0) UNION (SELECT t1.c0) ORDER BY 1 NULLS LAST OFFSET 1) FROM 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":64,"subquery_type":"SCALAR","subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"limit_type":"ROW_COUNT"}],"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":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["t1","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":"BASE_TABLE","alias":"","sample":null,"query_location":77,"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 decode('\\xF6\\x96\\xB0\\x85'::BLOB)::VARCHAR ILIKE '1';","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":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\xF6\\x96\\xB0\\x85"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 upper(decode('\\xE0\\x9F\\x98\\x84'::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":48,"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":45,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"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":38,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\xE0\\x9F\\x98\\x84"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(y) 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":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":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":60,"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":66,"query_location_length":1,"column_names":["y"]}}]}],"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":[]},"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 t1, t0 JOIN LATERAL (SELECT t1.c1 AS col0) _subq 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":9,"query_location_length":61,"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":"JOIN","alias":"","sample":null,"query_location":21,"query_location_length":49,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"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":"_subq","sample":null,"query_location":34,"query_location_length":22,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"col0","query_location":42,"query_location_length":5,"column_names":["t1","c1"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":66,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 t1.c02, t2.c02, ta04.c02\nFROM (\n\tv00 AS t1\n\tNATURAL JOIN\n\tv00 AS t2 ),\n\t( v00 AS ta04\n\tSEMI JOIN v00 AS ta05\n\tUSING ( c02 ) ) ;","json":{"error":false,"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":["t1","c02"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["t2","c02"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":8,"column_names":["ta04","c02"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":100,"left":{"type":"JOIN","alias":"","sample":null,"query_location":51,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":40,"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":65,"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":"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":94,"query_location_length":36,"left":{"type":"BASE_TABLE","alias":"ta04","sample":null,"query_location":81,"query_location_length":11,"schema_name":"","table_name":"v00","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v00"]}},"right":{"type":"BASE_TABLE","alias":"ta05","sample":null,"query_location":104,"query_location_length":11,"schema_name":"","table_name":"v00","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v00"]}},"condition":null,"join_type":"SEMI","ref_type":"REGULAR","using_columns":["c02"],"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 current_schemas(ref_0.bool) AS c4 FROM booleans AS ref_0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c4","query_location":7,"query_location_length":27,"function_name":"current_schemas","schema":"","filter":null,"order_bys":{"type":"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":10,"column_names":["ref_0","bool"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"ref_0","sample":null,"query_location":46,"query_location_length":17,"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":"WITH cte AS (\n SELECT NULL::VARCHAR j\n FROM range(1)\n)\nSELECT json_contains(j, j)\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":"j","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"query_location_length":19,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"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":93,"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 CAST(COALESCE(CAST(NULL AS STRUCT(a INTEGER, b VARCHAR)), CAST(NULL AS STRUCT(a INTEGER, b VARCHAR))) AS STRUCT(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":7,"query_location_length":134,"child":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":12,"query_location_length":96,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":42,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":28,"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":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":42,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":28,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":87,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":112,"query_location_length":28,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":121,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":132,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT nth_value(1929, 42) OVER (\n\tPARTITION BY (\n\t\t\"usmallint\" \u003e \"smallint\"\n\t), 747 ROWS BETWEEN 1 PRECEDING AND COALESCE(\"bigint\", 0) PRECEDING\n)\nFROM all_types;","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":140,"function_name":"nth_value","schema":"","catalog":"","partitions":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":52,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":11,"column_names":["usmallint"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":10,"column_names":["smallint"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":747}}],"orders":[],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_PRECEDING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"end_expr":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":114,"query_location_length":21,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":8,"column_names":["bigint"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1929}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":153,"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 finalize(approx_quantile(d, 0.5) EXPORT_STATE) = approx_quantile(d, 0.5) FROM (VALUES (1.5::DECIMAL(4,1)), (4.5::DECIMAL(4,1)), (2.5::DECIMAL(4,1))) t(d);","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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}]},"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":85,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":118,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":45}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":139,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":25}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":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"]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"values","query_location":18446744073709551615,"query_location_length":0,"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":[]},{"class":"TYPE","type":"TYPE","alias":"count","query_location":101,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}]}]},{"class":"TYPE","type":"TYPE","alias":"filter","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":122,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}]}]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 finalize(arg_min(a, b) EXPORT_STATE) 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":"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":"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":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"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":49,"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":"FUNCTION","type":"FUNCTION","alias":"","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}]]},"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 arg_min(COLUMNS(*), COLUMNS(*)) EXPORT_STATE 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":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":23,"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":35,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":57,"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":[]},"column_name_alias":[],"with_ordinality":"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 bool_and(v) EXPORT_STATE AS s FROM (VALUES (NULL::bool)) t(v)\n UNION ALL\n SELECT bool_and(v) EXPORT_STATE AS s FROM (VALUES (true)) 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"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":38,"query_location_length":157,"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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":86,"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":99,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":4,"catalog":"","schema":"","type_name":"bool","children":[]}}},"try_cast":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":138,"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":147,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":173,"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":182,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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}]},"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(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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bb"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}]}],[{"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":[]}}]}]]},"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"]}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"v","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":71,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}}]}],[{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"v","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":98,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}]]},"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"]}}]}}]}}]}],"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],[{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":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"]}}]}],"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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}]]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"apple"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"cherry"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}]}],"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":[]}],"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"]}}]}}]}],"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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(combine_aggr(s)) FROM (\n SELECT product(v) EXPORT_STATE AS s FROM (VALUES (2.0), (3.0)) t(v)\n UNION ALL\n SELECT product(v) EXPORT_STATE AS s FROM (VALUES (4.0), (5.0)) 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":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"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":38,"query_location_length":161,"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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":85,"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":94,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":20}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":30}}]]},"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":137,"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":145,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":171,"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":180,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":40}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":50}}]]},"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 kahan_sum(NULL::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":36,"function_name":"kahan_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":21,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\" integer);","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":40,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":38,"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":[]},{"class":"TYPE","type":"TYPE","alias":"value","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(state, state)) FROM t3_product;","json":{"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":"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":24,"query_location_length":5,"column_names":["state"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":5,"column_names":["state"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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_syy(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_syy","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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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":"WITH states AS (\n SELECT sum(v) EXPORT_STATE AS s\n FROM (VALUES (2::BIGINT)) t(v)\n)\nSELECT\n finalize(combine_aggr(s, 3::INTEGER)),\n finalize(combine_aggr(s, 3::UINTEGER)),\n finalize(combine_aggr(s, 3::SMALLINT))\nFROM 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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":62,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"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":110,"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":123,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":127,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":129,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":144,"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":153,"query_location_length":28,"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":166,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":170,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":172,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":188,"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":197,"query_location_length":28,"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":210,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":214,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":216,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":232,"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 corr(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":25,"function_name":"corr","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":12,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"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":15,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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, skewness(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":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":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":19,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"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":42,"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(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":"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 finalize(quantile_disc(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_disc","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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}]}],"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 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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}]}],"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":75}}}]}}]}],"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 string_agg(d, '''' || chr(10) || '🦆') 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":40,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":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":21,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"'"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"🦆"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"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(sum(d) EXPORT_STATE), finalize(avg(d) EXPORT_STATE)::integer, finalize(count(d) EXPORT_STATE), finalize(min(d) EXPORT_STATE), finalize(max(d) EXPORT_STATE), finalize(first(d) EXPORT_STATE), finalize(last(d) EXPORT_STATE), finalize(kurtosis(d) EXPORT_STATE), finalize(kurtosis_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":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":"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":20,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":47,"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":51,"query_location_length":1,"column_names":["d"]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"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":87,"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":93,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"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":120,"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":124,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":142,"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":151,"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":155,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":173,"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":182,"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":188,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":206,"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":215,"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":220,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":238,"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":247,"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":256,"query_location_length":1,"column_names":["d"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":274,"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":283,"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":296,"query_location_length":1,"column_names":["d"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":318,"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_avgy(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":17,"function_name":"regr_avgy","schema":"","filter":null,"order_bys":{"type":"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"]}},{"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":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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_sxy(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":16,"function_name":"regr_sxy","schema":"","filter":null,"order_bys":{"type":"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":"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":["d"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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":[]}]}} @@ -107,583 +109,590 @@ {"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 histogram(n, []) 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":16,"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":["n"]}},{"name":"","expression":{"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":[]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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, [10, 20, NULL]) 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":28,"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":["n"]}},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"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_OR(3), BIT_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":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":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"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":25,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 BIT_XOR(i), BIT_XOR(1), BIT_XOR(DISTINCT i), BIT_XOR(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":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":15,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":19,"function_name":"bit_xor","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":48,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":13,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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_count(BITSTRING_AGG(i)) FROM smallints WHERE i = 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":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"]}}]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","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":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(DISTINCT i) 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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 BITSTRING_AGG(column0) FROM '{TEST_DIR}/bitstring_agg.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":22,"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":7,"column_names":["column0"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":30,"schema_name":"","table_name":"{TEST_DIR}/bitstring_agg.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/bitstring_agg.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select bool_or(*)","json":{"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":"bool_or","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select corr(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":9,"function_name":"corr","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i, COUNT() 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":52,"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":7,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"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 COVAR_POP(x,y), COVAR_SAMP(x,y) FROM integers 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":14,"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":17,"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":15,"function_name":"covar_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":34,"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"]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":59,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select entropy(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":13,"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":4,"column_names":["name"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"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 ANY_VALUE(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":41,"function_name":"any_value","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":28,"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":17,"query_location_length":1,"column_names":["i"]}}]}],"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 j * 2 FROM integer GROUP BY j * 2 ORDER BY j * 2;","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":50,"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":50,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"query_location_length":7,"schema_name":"","table_name":"integer","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integer"]}},"where_clause":null,"group_expressions":[{"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":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT histogram('、')","json":{"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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 histogram(CAST('2021-08-20' 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":45,"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":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"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":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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 FAVG(n) - '2251799813685248.5'::DOUBLE FROM doubles;","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":7,"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":12,"query_location_length":1,"column_names":["n"]}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2251799813685248.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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_pop(k), kurtosis_pop(v), kurtosis_pop(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":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":20,"query_location_length":1,"column_names":["k"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":37,"query_location_length":1,"column_names":["v"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":16,"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":54,"query_location_length":2,"column_names":["v2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"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":24,"query_location_length":1,"column_names":["d"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","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":46,"query_location_length":2,"column_names":["dt"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"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":69,"query_location_length":1,"column_names":["t"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"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":91,"query_location_length":1,"column_names":["s"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}],[{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 median(r::hugeint)::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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"hugeint","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"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 min(l) from lists where l[1]\u003e2;","json":{"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":["l"]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":31,"query_location_length":6,"left":{"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":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"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 aggr\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":70,"query_location_length":1,"column_names":["k"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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 k, mode(v) from intervals 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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"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 DESC, i ASC) 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":31,"function_name":"first","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":24,"query_location_length":1,"column_names":["i"]}},{"type":"ASCENDING","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":false,"catalog":"","arguments":[{"name":"","expression":{"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":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 percentile_disc(0.25) within group(order by i desc) from generate_series(0,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":51,"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":51,"query_location_length":1,"column_names":["i"]}}]},"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":64,"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":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"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 percentile_disc(strftime(DATE '1-11-25',NULL)) WITHIN GROUP (ORDER BY 1 DESC);","json":{"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":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1-11-25"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 product()","json":{"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":"product","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::decimal(10,2), 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":36,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":15,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["r"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"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(interval (r/100) second, 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":43,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":23,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":31,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"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 (120::TINYINT), (122::TINYINT)) 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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":34,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":120}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":122}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}]]},"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('1990-01-01'::DATE + interval (r/100) day, [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":75,"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":"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":33,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1990-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":"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":"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":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"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":65,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":75}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"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_cont(r, [\"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":41,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":6,"column_names":["0.25"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["0.5"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":6,"column_names":["0.75"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"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(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_disc","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 quantile_disc(interval (r) second, 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":39,"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":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":31,"query_location_length":1,"column_names":["r"]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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(case when r is null then null else [r] end, [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":74,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"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"]}}]}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"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":66,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"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(('2021-01-01'::TIMESTAMP + interval (r) hour)::TIMESTAMPTZ, [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":90,"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":66,"query_location_length":13,"child":{"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["r"]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"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":82,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"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":12,"function_name":"regr_avgx","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(*)","json":{"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_slope","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_sxy(*)","json":{"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_sxy","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, regr_slope(v, v2) from aggr 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":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["v2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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":47,"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 regr_syy(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":15,"function_name":"regr_syy","schema":"","filter":null,"order_bys":{"type":"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["v2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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(1), MIN(1), FIRST(1), LAST(1),MAX(1), SUM(1), 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":24,"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":70,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 sem(v),sem(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":6,"function_name":"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":12,"query_location_length":1,"column_names":["v"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":7,"function_name":"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":19,"query_location_length":2,"column_names":["v2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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 skewness(*)","json":{"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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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"]}}]},{"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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"]}}]}],"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(x,','), STRING_AGG(x,y) 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":"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":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":15,"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":37,"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"]}}]}],"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 g, STRING_AGG(x, y ORDER BY x DESC) FROM strings GROUP BY g 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":32,"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":35,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["y"]}}]}],"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":[{"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 g, STRING_AGG(x,',' ORDER BY x DESC) FROM strings GROUP BY g 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":"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":36,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]}],"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":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"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 name, weighted_avg(grade, etcs) FROM students GROUP BY name 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":76,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":25,"function_name":"weighted_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":26,"query_location_length":5,"column_names":["grade"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":4,"column_names":["etcs"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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":62,"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 DISTINCT ON (grp) grp, val FROM t2 ORDER BY grp, val DESC LIMIT 3","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":["grp"]}]},{"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":["grp"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["val"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":3,"column_names":["grp"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":3,"column_names":["val"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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 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 DISTINCT ON (person_id)\n *\nFROM\n example\nORDER BY\n person_id,\n effective_date DESC\n;","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":9,"column_names":["person_id"]}]},{"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":9,"column_names":["person_id"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":14,"column_names":["effective_date"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":35,"query_location_length":1,"relation_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":7,"schema_name":"","table_name":"example","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["example"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT type, COUNT(*), avg(value), sum(distinct value), avg(distinct value), FROM students GROUP BY CUBE(value, type) ORDER BY GROUPING(value), GROUPING(type), 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":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":127,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":5,"column_names":["value"]}]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":144,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":4,"column_names":["type"]}]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["type"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":10,"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":27,"query_location_length":5,"column_names":["value"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":48,"query_location_length":5,"column_names":["value"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"query_location_length":19,"function_name":"avg","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":69,"query_location_length":5,"column_names":["value"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"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":105,"query_location_length":5,"column_names":["value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"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 count(*), avg(distinct value) FILTER (where value \u003c 5), avg(distinct value), course, avg(value), type\n from students\n group by grouping sets (grouping sets(course, ()), grouping sets(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":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":44,"function_name":"avg","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":51,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":5,"column_names":["value"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":19,"function_name":"avg","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":76,"query_location_length":5,"column_names":["value"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":6,"column_names":["course"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"query_location_length":10,"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":96,"query_location_length":5,"column_names":["value"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":4,"column_names":["type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":122,"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":177,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"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 t1\nFROM T\nORDER BY t1, t2;","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":35,"query_location_length":2,"column_names":["t1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["t2"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["t1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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(DISTINCT s), string_agg(DISTINCT s, ',' ORDER BY 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":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":["s"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":43,"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":62,"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":46,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"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 string_agg(DISTINCT value, ',' ORDER BY value::INTEGER) FILTER (WHERE keep)\nFROM distinct_rewrite_filter_errors;","json":{"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":"string_agg","schema":"","filter":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":4,"column_names":["keep"]},"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":5,"column_names":["value"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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":5,"column_names":["value"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"query_location_length":30,"schema_name":"","table_name":"distinct_rewrite_filter_errors","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_rewrite_filter_errors"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT g, count(DISTINCT nextval('distinct_rewrite_seq_grouping_sets')), GROUPING(g)\nFROM (VALUES (1), (2), (1)) tbl(g)\nGROUP BY CUBE(g)\nORDER BY GROUPING(g), g;","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":146,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":1,"column_names":["g"]}]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"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":61,"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":25,"query_location_length":45,"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":33,"query_location_length":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"distinct_rewrite_seq_grouping_sets"}}}]}}]},{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":73,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["g"]}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":90,"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":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]]},"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"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 DISTINCT ON (j, i) i, j FROM integers WHERE i \u003c\u003e 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":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["i"]}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["j"]}],"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":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"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 k","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":["k"]}}]}],"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 (a.ak, b.bk) * FROM a JOIN b ON a.ak = b.bk ORDER BY a.ak, b.bk","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":4,"column_names":["a","ak"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":4,"column_names":["b","bk"]}]},{"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":4,"column_names":["a","ak"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["b","bk"]}}]}],"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":"JOIN","alias":"","sample":null,"query_location":41,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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":46,"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":51,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":4,"column_names":["a","ak"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["b","bk"]}},"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 DISTINCT ON (COLUMNS('key')) * FROM (\n SELECT * FROM (VALUES (1,1,2),(1,1,3)) AS t(key1,key2,v)\n) subq 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":20,"query_location_length":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key"}},"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":122,"query_location_length":4,"column_names":["key1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":4,"column_names":["key2"]}}]}],"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":"subq","sample":null,"query_location":43,"query_location_length":64,"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":"t","sample":null,"query_location":63,"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":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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\tsum(j),\n\tsum(distinct i),\n\tcount(j),\n\tsum(distinct j)\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":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":12,"query_location_length":1,"column_names":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":30,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":41,"query_location_length":1,"column_names":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":59,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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 SUM(i), g FROM integers GROUP BY ALL 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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["g"]}],"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, g%2, SUM(i), SUM(g) FROM integers GROUP BY 1, 2, 3 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":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],"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":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"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":13,"query_location_length":1,"column_names":["g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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":["i"]}}]},{"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":["g"]}}]}],"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":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],"group_sets":[[0,1,2]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(SUM(41)), 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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":15,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":41}}}]}}]},{"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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 % 2 AS f, COUNT(SUM(a)) FROM test GROUP BY f;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"f","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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":"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":["a"]}}]}}]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["f"]}],"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 k\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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"]}}]}],"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":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM tbl GROUP BY SUM(41)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":41}}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT k, SUM(v) FROM r2l3r4l5i4i2l3v\nGROUP BY k\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":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"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":47,"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 LOWER(NULL) FROM t0 GROUP BY 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":"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":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},{"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(*)\ngroup by 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 as a from t1 group by a having a=42;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["a"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT b, SUM(a) FROM test GROUP BY b HAVING SUM(a)\u003e(SELECT SUM(t.a)*0.5 FROM test 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":["b"]},{"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":["a"]}}]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":45,"query_location_length":40,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":49,"query_location_length":1,"column_names":["a"]}}]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":52,"query_location_length":33,"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":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":60,"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":64,"query_location_length":3,"column_names":["t","a"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":78,"query_location_length":6,"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":[]},"child":null,"comparison_type":"INVALID"}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 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":"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_EQUAL","alias":"","query_location":25,"query_location_length":4,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":37,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":41,"query_location_length":1,"column_names":["a"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM exam QUALIFY first_value(mark) OVER (PARTITION BY student ORDER BY mark) \u003e= 60 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":102,"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":65,"left":{"class":"WINDOW","type":"WINDOW_FIRST_VALUE","alias":"","query_location":27,"query_location_length":59,"function_name":"first_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"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":81,"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":39,"query_location_length":4,"column_names":["mark"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":60}}}},"named_param_map":[]}]}} -{"sql":"SELECT * FROM exam WINDOW w AS (ORDER BY mark) QUALIFY row_number() OVER w = 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":"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_EQUAL","alias":"","query_location":55,"query_location_length":23,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":55,"query_location_length":19,"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":41,"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},"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 t WHERE j = 8888","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":8,"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":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8888}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 entry","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"entry","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["entry"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM v2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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 * FROM t_default;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"t_default","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_default"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"happy"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 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":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 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"]}}]}],"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 other.dont_export_me;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"other","table_name":"dont_export_me","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["other","dont_export_me"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from table1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"table1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * EXCLUDE (new_col) FROM (SELECT * RENAME (db1.s1.t.c AS new_col) 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":19,"relation_name":"","exclude_list":["new_col"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":32,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":40,"query_location_length":32,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[{"key":{"catalog":"db1","schema":"s1","table":"t","column":"c"},"value":"new_col"}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":73,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"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":88,"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":[]},"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 schema.table 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":12,"column_names":["schema","table"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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(*) FROM glob('{TEST_DIR}/other_no_wal_writes.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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/other_no_wal_writes.db.wal"}}}]},"column_name_alias":[],"with_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 db1.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":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":12,"schema_name":"db1","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db1","integers"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM table_in_db2","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":"","table_name":"table_in_db2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table_in_db2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM db1.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":6,"schema_name":"db1","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db1","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_database.integers ORDER BY new_database.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":45,"query_location_length":23,"column_names":["new_database","integers","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 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":5,"function_name":"one","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 test_data as (\n select 'foo' as a\n)\nselect test_data.foobar as new_column from test_data where new_column is not null;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"test_data","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":"a","query_location":29,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":"new_column","query_location":49,"query_location_length":16,"column_names":["test_data","foobar"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":9,"schema_name":"","table_name":"test_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_data"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":112,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":10,"column_names":["new_column"]}]},"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\nHAVING alias.c = 2\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":82,"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":[]}],"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":{"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":7,"column_names":["alias","c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT c1, row_number() over(partition BY c1 order by c2) as rk FROM VALUES ('a', 1), ('b', 2), ('b', 3), ('c', 4) AS t(c1, c2) qualify rk.add(1) \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":2,"column_names":["c1"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rk","query_location":11,"query_location_length":46,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["c1"]}],"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":["c2"]}}],"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":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":69,"query_location_length":58,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["c1","c2"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":136,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"query_location_length":9,"function_name":"add","schema":"rk","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}},"named_param_map":[]}]}} -{"sql":"SELECT a AS x FROM (VALUES (1),(2),(3)) t(a)\nWHERE alias.x \u003e 1\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":72,"query_location_length":1,"column_names":["a"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":51,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":7,"column_names":["alias","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select a as \"user\" from test order by \"user\";","json":{"error":false,"statements":[{"node":{"type":"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":6,"column_names":["user"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"user","query_location":7,"query_location_length":1,"column_names":["a"]}],"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 ['a a ', ' b ', ' cc'].list_transform(lambda x: x.trim().nullif('')) as trimmed_and_nulled;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"trimmed_and_nulled","query_location":30,"query_location_length":45,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a a "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" b "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" cc"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":45,"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":64,"query_location_length":10,"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":55,"query_location_length":8,"function_name":"trim","schema":"x","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * similar to '(a|c)' from foo;","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":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":20,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a|c)"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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 \n1 = 1 AND \nCreatedAt \u003e= '2023-12-01' AND\nCreatedAt \u003c '2023-12-13' \nGROUP BY HasCustomAddress ;","json":{"error":false,"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":["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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"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":72,"query_location_length":65,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":5,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":83,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":9,"column_names":["CreatedAt"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-12-01"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":113,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":9,"column_names":["CreatedAt"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-12-13"}}}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"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 s1.tbl, s2.tbl, s3.tbl 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":6,"column_names":["s1","tbl"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["s2","tbl"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":6,"column_names":["s3","tbl"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"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":35,"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":43,"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":51,"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 lineitem_long","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"lineitem_long","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lineitem_long"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 1 IN ('1', '2');","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":10,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 s1.t.c, t.c, c FROM 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":6,"column_names":["s1","t","c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["t","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":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT alias(a), alias(b), alias(a * 2) AS c, alias(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":89,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["a"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":8,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["b"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":27,"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":33,"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":33,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"d","query_location":46,"query_location_length":18,"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":52,"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":52,"query_location_length":1,"column_names":["b"]}},{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}],"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 alias(HeLlO) 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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":5,"column_names":["HeLlO"]}}]}],"from_table":{"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"]}},"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 hello FROM (SELECT 42) tbl(\"HeLlO\")","json":{"error":false,"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":["hello"]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":18,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["HeLlO"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH test AS (\n SELECT 'woot' AS my_column\n)\nFROM test\nSELECT\n\tmy_column.substr(2) AS partial_woot,\n\tpartial_woot.substr(2) AS more_partially_woot\nWHERE\n more_partially_woot = 'ot';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"test","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":"my_column","query_location":26,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"partial_woot","query_location":66,"query_location_length":19,"function_name":"substr","schema":"my_column","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"more_partially_woot","query_location":104,"query_location_length":22,"function_name":"substr","schema":"partial_woot","filter":null,"order_bys":{"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":19,"column_names":["more_partially_woot"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ot"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(i) AS i FROM integers HAVING integers.i=5 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":"FUNCTION","type":"FUNCTION","alias":"i","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"]}}]}],"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":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select main.test from structs, 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":18,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":7,"schema_name":"","table_name":"structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["structs"]}},"right":{"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"]}},"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 NULL UNION ALL SELECT NULL UNION ALL 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":95,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":105,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::INTEGER as a, NULL::INTEGER 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":82,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":102,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i + 1 AS a, a + 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":"a","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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 i AS \"hello world\" FROM integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"hello world","query_location":7,"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT true='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":8,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 'unknownbool'=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":19,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"unknownbool"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::BOOL;","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":6,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"BOOL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::INT[3] 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":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["l"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%.17g"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":19,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":18,"scale":17}},"is_null":false,"value":41000000000000003}}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.41000000000000003"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":15,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1e308"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.1'::UTINYINT;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"255.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-2147483648.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.7e1'::HUGEINT, '-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"17014118346046923173168730371588410572.7e1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-17014118346046923173168730371588410572.8e1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.9e1'::SMALLINT;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-3276.9e1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.00000000000170141183460469231731687303715884105727e50'::HUGEINT;","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":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":57,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.00000000000170141183460469231731687303715884105727e50"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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":36,"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":31,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[NULL, NULL , ]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 tripleNested;","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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":13,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":12,"schema_name":"","table_name":"tripleNested","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tripleNested"]}},"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":108,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":85,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[ [ \" hello\"] ,[\" world\" ],[ \"! \" ] ]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":103,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,13,14], NULL], [[4]], NULL, [[2, NULL, 1, 0], [99]] ]' 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":81,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":62,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[ [[12,13,14], NULL], [[4]], NULL, [[2, NULL, 1, 0], [99]] ]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":78,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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][[]][][[[][]]]]]' 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":49,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[[[[[]][3][[]][][[[][]]]]]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\":\"\\\"\"}]'::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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"bar\":\"\\\"\"}]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\\,\", test]$$::VARCHAR[];","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\"hello\\,\", test]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\\,\"chars]$$::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":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\"mix\\ of\\ special\\,\"chars]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT $$[\",comma at start and end,\", \",leading and trailing comma,\"]$$::VARCHAR[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":62,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\",comma at start and end,\", \",leading and trailing comma,\"]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":73,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT $$[unterminated string]\"]$$::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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[unterminated string]\"]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\\\" \", def, ghi]$$::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":36,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\" \\\"abc\\\" \", def, ghi]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":61,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":63,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"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 '{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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\"}}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"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":[]},{"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":[]}]},{"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":[]}]},{"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":[]}]}]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":242,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":255,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"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":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{a:\"}\", b: hello universe}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":58,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{key_C: 8, key_A: 2}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"key_B","query_location":55,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]},{"class":"TYPE","type":"TYPE","alias":"key_C","query_location":69,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{a:3}]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{ "}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(row(21)), $$((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":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":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":"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":21}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"((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 {\"123456789\": 42}::MAP(BIGINT, INT);","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":18,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":"123456789","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"123456789","query_location":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":16,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {meta: MAP{'key': 'value'}}::MAP(VARCHAR, 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":34,"query_location_length":37,"child":{"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":"meta","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"meta","query_location":14,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key"}}}]}},{"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":25,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"value"}}}]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":35,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT {\"CamelCase\": 1, \"lowercase\": 2, \"UPPERCASE\": 3}::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":55,"query_location_length":19,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":"CamelCase","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"CamelCase","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"lowercase","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"lowercase","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"UPPERCASE","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"UPPERCASE","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":17,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::BIT::BOOL;","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":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"BOOL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::FLOAT 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":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["b"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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;","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":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::BLOB::BIT::BLOB;","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":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":5,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ab"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::INT::BIT;","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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":11,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483648}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1000000000000000000000000000000000000000000000000000000000000000'::BIT::BIGINT;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1000000000000000000000000000000000000000000000000000000000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.4028235e+38)::FLOAT::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":22,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":13,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":3.4028235e38}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('YeS' 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":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"YeS"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 INTEGER) 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1,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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 UHUGEINT) 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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}2'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{prefix}2"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":19,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{prefix}1_"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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}111111111111111111111111111111111111111111111111111111111111111'::BIGINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":73,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{prefix}111111111111111111111111111111111111111111111111111111111111111"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::INT","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0X"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '0x100000000'::UINT32","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0x100000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":6,"catalog":"","schema":"","type_name":"UINT32","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' 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":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(TIMESTAMP '2262-04-11 23:47:16.854776' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2262-04-11 23:47:16.854776"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(TIMESTAMP_S 'infinity' 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":36,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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, j 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":35,"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"]},{"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":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) JOIN d 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":58,"query_location_length":20,"left":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":20,"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},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"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":"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 FULL OUTER JOIN 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":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},"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 comment from duckdb_functions() where function_name='test_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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":26,"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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test_macro"}}},"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='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":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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":15,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"j"}}},"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_views AS ddb\nLEFT JOIN pg_description AS pg\n ON pg.classoid=ddb.database_oid AND pg.objoid=ddb.view_oid\nWHERE pg.objsubid=0 AND ddb.view_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":60,"query_location_length":93,"left":{"type":"BASE_TABLE","alias":"ddb","sample":null,"query_location":40,"query_location_length":19,"schema_name":"","table_name":"duckdb_views","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["duckdb_views"]}},"right":{"type":"BASE_TABLE","alias":"pg","sample":null,"query_location":70,"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":98,"query_location_length":55,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":11,"column_names":["pg","classoid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":16,"column_names":["ddb","database_oid"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":131,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":9,"column_names":["pg","objoid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":12,"column_names":["ddb","view_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":160,"query_location_length":43,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":11,"column_names":["pg","objsubid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":178,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":13,"column_names":["ddb","view_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test_view"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select a, b 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":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":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 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":"BASE_TABLE","alias":"","sample":null,"query_location":14,"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 m('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":6,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 * from m('c', 'd', b := '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":"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":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":31,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"e"}}}]},"column_name_alias":[],"with_ordinality":"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('WITH a(i) AS (SELECT 1) SELECT a1.i AS i1, a2.i AS i2 FROM a AS a1, a AS a2');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":77,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"WITH a(i) AS (SELECT 1) SELECT a1.i AS i1, a2.i AS i2 FROM a AS a1, a AS a2"}}}]},"column_name_alias":[],"with_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"]}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT mod_two(a), SUM(a) FROM integers GROUP BY mod_two(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":"mod_two","schema":"","filter":null,"order_bys":{"type":"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"]}}]},{"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":["a"]}}]}],"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":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":10,"function_name":"mod_two","schema":"","filter":null,"order_bys":{"type":"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"]}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT in_with_cte(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":14,"function_name":"in_with_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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 f(x := (SELECT 41));","json":{"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":"f","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"x","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"x","query_location":14,"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":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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 multi_add(),\n multi_add(42),\n multi_add(42, 1),\n multi_add(42, 1, 1),\n multi_add(42, 1, 1, 1),\n multi_add(42, 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":11,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":13,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":16,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":19,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":22,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":25,"function_name":"multi_add","schema":"","filter":null,"order_bys":{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 parameter_types[1]\nfrom duckdb_functions()\nwhere function_name = 'm'\nand function_type = 'macro'\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":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":22,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":15,"column_names":["parameter_types"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}],"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_functions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":56,"query_location_length":47,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":13,"column_names":["function_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"m"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":13,"column_names":["function_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"macro"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"from table_integral_default()","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":24,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"table_integral_default","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_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 m('duck')","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":9,"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":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT having_macro(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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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":18,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 my_macro(a := 42, 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":26,"function_name":"my_macro","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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\t* FROM xt(200,'andrew');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":16,"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":18,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"andrew"}}}]},"column_name_alias":[],"with_ordinality":"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(suit) FROM card_select() GROUP BY 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":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":13,"query_location_length":4,"column_names":["suit"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":13,"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":[]},"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 * FROM fibonacci(1, 2, 5, 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":22,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"fibonacci","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"column_name_alias":[],"with_ordinality":"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_count(DISTINCT i % 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":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":32,"function_name":"my_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":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":45,"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":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 duckdb_schemas()\nWHERE database_name = 'memory' AND schema_name IN ('s1','child','grandchild','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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":44,"query_location_length":81,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"memory"}}},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":88,"query_location_length":37,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"child"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"grandchild"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"sibling"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM s1.s2.v2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"s2","table_name":"v2","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","s2","v2"]}},"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.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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"happy"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":17,"catalog":"parent","schema":"child","type_name":"mood","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":"SHOW TABLES FROM s1.nope;","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":"s1","schema_name":"nope"},"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 ('s1','child');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":44,"query_location_length":58,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"memory"}}},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":88,"query_location_length":14,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"child"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s1.tbl.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":8,"column_names":["s1","tbl","i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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 l.i, l.s, r.v FROM s1.child.t1 l JOIN s1.child.t2 r USING (i) ORDER BY l.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":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":12,"query_location_length":3,"column_names":["l","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["r","v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":26,"query_location_length":13,"schema_name":"child","table_name":"t1","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","child","t1"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":45,"query_location_length":13,"schema_name":"child","table_name":"t2","column_name_alias":[],"catalog_name":"s1","at_clause":null,"qualified_name":{"path":["s1","child","t2"]}},"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 count(*) FROM duckdb_tables() WHERE table_name IN ('t2','wal_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":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":57,"query_location_length":18,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":10,"column_names":["table_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"wal_table"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM duckdb_triggers();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"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('xx')","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xx"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('myseq');","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"myseq"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('myseq', 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"myseq"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 nextval('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":"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"persisted_seq"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"seq\""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select \"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\" 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":67,"column_names":["AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"]}],"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":[]}]}} -{"sql":"SELECT i0, j, i1 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":2,"column_names":["i0"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":2,"column_names":["i1"]}],"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 \"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 out_of_path.oop_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":21,"schema_name":"out_of_path","table_name":"oop_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["out_of_path","oop_table"]}},"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_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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"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 test.test_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":21,"function_name":"test_macro","schema":"test","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 MAIN.CURRENT_SCHEMAS(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":27,"function_name":"current_schemas","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":28,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_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":18,"function_name":"current_database","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, name FROM sqlite_master WHERE name='👤' 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":64,"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":["type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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":43,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"👤"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select trim(sql, chr(10)) from duckdb_views() where internal = 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":"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":12,"query_location_length":3,"column_names":["sql"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":8,"column_names":["internal"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'A' COLLATE NOCASE 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":26,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"A"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":31,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%A"}},"collation":"NOCASE"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(x) from (select 1::INT as x group by 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":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":["x"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":22,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"x","query_location":31,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]}],"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 icu_sort_key('æ', '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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"æ"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"en"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('côte', 'fr_ca')","json":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"côte"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"fr_ca"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select rtrim(b collate de, '\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":25,"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":"COLLATE","type":"COLLATE","alias":"","query_location":13,"query_location_length":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["b"]},"collation":"de"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\u003c\u003e"}}}]}],"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 collate_test.s, collate_join_table.s, i FROM collate_test JOIN collate_join_table ON (collate_test.s=collate_join_table.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":139,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":14,"column_names":["collate_test","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":20,"column_names":["collate_join_table","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":65,"query_location_length":64,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":18,"schema_name":"","table_name":"collate_join_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_join_table"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":14,"column_names":["collate_test","s"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":20,"column_names":["collate_join_table","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":[]}]}} -{"sql":"SELECT collate_test.s, collate_join_table.s, i FROM collate_test JOIN collate_join_table ON (collate_test.s=collate_join_table.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":139,"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":14,"column_names":["collate_test","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":20,"column_names":["collate_join_table","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":65,"query_location_length":64,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":12,"schema_name":"","table_name":"collate_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_test"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":18,"schema_name":"","table_name":"collate_join_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collate_join_table"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":14,"column_names":["collate_test","s"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":20,"column_names":["collate_join_table","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":[]}]}} -{"sql":"SELECT list_position(['hello', 'world'], 'WORLD' 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":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":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":22,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"world"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"WORLD"}},"collation":"NOCASE"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([needle], 'BANANA'), list_position([needle], 'BANANA') FROM t 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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BANANA"}}}]},{"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BANANA"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"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":89,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' AS c1 ORDER BY 1 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":26,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"collation":"NOCASE"}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c1","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 concat('a', (SELECT s)) FROM collate_test ORDER BY 1 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":58,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"collation":"NOCASE"}}]}],"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":19,"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":27,"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":36,"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 reverse(a collate noaccent) 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":27,"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":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["a"]},"collation":"noaccent"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"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 strings WHERE 'goethe' \u003e s COLLATE NOACCENT.de 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":7,"schema_name":"","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["strings"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":28,"query_location_length":32,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goethe"}},"right":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":39,"query_location_length":21,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["s"]},"collation":"NOACCENT.de"}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from (select chr(2*16*256+1*256+2*16+11) union select chr(12*16+5)) as t(s) group by s collate nfc;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":62,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":27,"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":"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":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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":256}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":256}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":70,"query_location_length":12,"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":"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":74,"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":74,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["s"]},"where_clause":null,"group_expressions":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":101,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["s"]},"collation":"nfc"}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT position('EL' IN ('hello' 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":42,"function_name":"position","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":25,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"EL"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', '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":21,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"HELLO"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"EL"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FOREIGN KEY"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM album;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 count(*) \u003e 1 FROM glob('{TEST_DIR}/async_lifecycle_rotate/*.parquet');","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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":51,"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":30,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/async_lifecycle_rotate/*.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":"FROM read_csv('{DATA_DIR}/csv/14512.csv', 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":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":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/14512.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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_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":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":34,"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/test_2.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/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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BLA"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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',columns={'col1': '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":[]}],"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test/blob.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":24,"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":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":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":78,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 typeof(column0), typeof(column1), typeof(column2) 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":"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"]}}]},{"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"]}}]},{"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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":62,"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":77,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_file.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":104,"query_location_length":41,"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":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":126,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT linenr, mixed_string, mixed_double FROM test WHERE linenr \u003e 27000 LIMIT 3;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":6,"column_names":["linenr"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":12,"column_names":["mixed_string"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":12,"column_names":["mixed_double"]}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":["linenr"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":27000}}},"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', 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":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":28,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]},"column_name_alias":[],"with_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 = ',', 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":185,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":97,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"col3","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col3","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":171,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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/invalid_utf_list.csv', header=0, auto_detect=false, quote = '\"',columns = {'col1': '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":127,"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":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test/invalid_utf_list.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":8,"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":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}},{"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":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"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":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"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":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":127,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER[]"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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}/copy_to_overwrite.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":34,"schema_name":"","table_name":"{TEST_DIR}/copy_to_overwrite.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/copy_to_overwrite.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select typeof(Year), typeof(Quarter) from read_csv_auto('{DATA_DIR}/csv/real/ontime_sample.csv', dtypes={'Quarter': 'TINYINT'}) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["Year"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":28,"query_location_length":7,"column_names":["Quarter"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":42,"query_location_length":85,"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":56,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/real/ontime_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":6,"column_names":["dtypes"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"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":"Quarter","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"Quarter","query_location":116,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"TINYINT"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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', columns={'i':'varchar', 'b':'varchar'}, types=['VARCHAR', '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":113,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/auto/int_bol.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":38,"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":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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":71,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":86,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":5,"column_names":["types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"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":105,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}}]},"column_name_alias":[],"with_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/response.csv', types={'column0': 'bla'}, nullstr = 'Null', header = 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":100,"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":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/response.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":5,"column_names":["types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":"column0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column0","query_location":68,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bla"}}}]}}},{"name":"","expression":{"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":7,"column_names":["nullstr"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Null"}}}},{"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":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]},"column_name_alias":[],"with_ordinality":"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, part, date from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv', HIVE_PARTITIONING=1) 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":134,"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":["value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":4,"column_names":["part"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":4,"column_names":["date"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"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":48,"query_location_length":54,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":104,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"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=CAST('2012-01-01' as DATE) AND concat(date_cast::VARCHAR, part_cast::VARCHAR) == 'foobar') OR (part_cast=9000) 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":314,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":183,"query_location_length":121,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":184,"query_location_length":99,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":9,"column_names":["date_cast"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":194,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2012-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":215,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":225,"query_location_length":58,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":225,"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":241,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":9,"column_names":["date_cast"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":243,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":261,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":9,"column_names":["part_cast"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":263,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":275,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobar"}}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":289,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":289,"query_location_length":9,"column_names":["part_cast"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":299,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9000}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select part, filename.replace('\\', '/').split('/')[-2], a, b from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/mismatching_types/*/*.csv', HIVE_PARTITIONING=1, FILENAME=1, UNION_BY_NAME=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":202,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["part"]},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":50,"query_location_length":4,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":13,"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":30,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":66,"query_location_length":125,"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":80,"query_location_length":60,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/hive-partitioning/mismatching_types/*/*.csv"}}},{"name":"","expression":{"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":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":163,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"select column00, column01, column02, column03 from '{DATA_DIR}/csv/real/lineitem_sample.csv' 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":41,"schema_name":"","table_name":"{DATA_DIR}/csv/real/lineitem_sample.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/real/lineitem_sample.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/header.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":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":14,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/nullbyte_header.csv', columns={'col1': 'VARCHAR', 'col2': 'VARCHAR'}, delim='|', 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":119,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/nullbyte_header.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":46,"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":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":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":78,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":97,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}},{"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":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_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 = 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":166,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"height","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"height","query_location":187,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":166,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"height","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"height","query_location":187,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"none"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"null"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dont_exist"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":142,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":160,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":179,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-05-12"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":205,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}},{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":224,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9be2bc9d-d49f-4564-bfa4-6336b211a874"}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/glob/a1/a1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/glob/a2/a2.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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}//csv///glob///*//////*.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([]::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\|"}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":55}}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":112,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":128,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":144,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}}]},"column_name_alias":[],"with_ordinality":"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Total Time"}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/auto/test_multiple_columns.csv"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/aws_locations.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/error/quotednewlines.csv', parallel=true, sep=',', 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":141,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":107,"query_location_length":34,"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":115,"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":122,"query_location_length":3,"column_names":["int"]}},{"name":"h2","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"h2","query_location":133,"query_location_length":7,"column_names":["varchar"]}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":143,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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 SELECT i, row_number() OVER () AS rn\n FROM read_csv(['{TEST_DIR}/csv_ra_0.csv.gz', '{TEST_DIR}/csv_ra_1.csv.gz', '{TEST_DIR}/csv_ra_2.csv.gz'])\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":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":154,"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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":73,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":90,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_ra_0.csv.gz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_ra_1.csv.gz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_ra_2.csv.gz"}}}]}}]},"column_name_alias":[],"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":182,"query_location_length":11,"left":{"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":"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":186,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":191,"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 *\nFROM read_csv_auto('a.csv', delim=',', 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":37,"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a.csv"}}},{"name":"","expression":{"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":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"column_name_alias":[],"with_ordinality":"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","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":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(\n '{DATA_DIR}/csv/error/mismatch/bad.csv',\n columns = {'col0': 'INTEGER', 'col1': 'INTEGER', 'col2': 'VARCHAR'},\n store_rejects = true, 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":171,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":111,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":146,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":168,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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, file_id) FROM reject_errors 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":28,"relation_name":"","exclude_list":["scan_id","file_id"],"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":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 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_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":"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"]}}]}}]},{"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"]}}]}}]},{"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":[]},{"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"]}}]},{"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"]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":120,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rejects_scan_2"}}}}]},"column_name_alias":[],"with_ordinality":"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 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"]}}]}}]},{"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"]}}]}}]},{"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":[]},{"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"]}}]},{"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"]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":194,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rejects_errors_3"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":269,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":269,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":285,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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 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":214,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":111,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"csv_rejects_table"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":209,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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;","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":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":"FROM read_csv('{DATA_DIR}/csv/rejects/multiple_errors/unquoted_maxline.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, 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":260,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/rejects/multiple_errors/unquoted_maxline.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":118,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"current_day","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"current_day","query_location":144,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"barks","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"barks","query_location":161,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":248,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":260,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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/unescaped_quote.csv', strict_mode=false, escape = '', quote = '\"', 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":121,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/unescaped_quotes/unescaped_quote.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":101,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":114,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/inconsistencies/line_with_spaces.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/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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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 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":[]}],"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('{DATA_DIR}/csv/test/no_newline_unicode.csv', delim= '🦆') limit 5;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":69,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test/no_newline_unicode.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"🦆"}}}}]},"column_name_alias":[],"with_ordinality":"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('{TEMP_DIR}/timetz.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":34,"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/timetz.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/bad_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":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"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":30,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/bad_date.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 new_timestamps 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":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":14,"schema_name":"","table_name":"new_timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["new_timestamps"]}},"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(18,15)', '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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"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":40,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/decimal.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":58,"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":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":97,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NULL"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DECIMAL(18,15)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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 long_escaped_value_unicode","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":26,"schema_name":"","table_name":"long_escaped_value_unicode","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["long_escaped_value_unicode"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(bar) FROM read_csv(['{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/2.csv','{DATA_DIR}/csv/17451/extra/3.csv'], files_to_sniff = 5) limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":445,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"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":["bar"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":414,"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":33,"query_location_length":384,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":266,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":295,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":324,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":353,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":382,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/extra/3.csv"}}}]}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":419,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":419,"query_location_length":14,"column_names":["files_to_sniff"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":436,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}}]},"column_name_alias":[],"with_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 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":"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":"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM nullable_type","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"nullable_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nullable_type"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from proj 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":4,"schema_name":"","table_name":"proj","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["proj"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SHOW 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":"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":"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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/mixed_new_line.csv', columns = {'a':'integer', 'b':'integer', 'c':'integer'}, new_line = '\\r\\n', header = false, strict_mode=true, delim = ',', 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":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":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/mixed_new_line.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":55,"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":61,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":66,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integer"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":81,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integer"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":96,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integer"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":8,"column_names":["new_line"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\r\\n"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":127,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":143,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":161,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":174,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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 s COLLATE NFC = 'ü'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":20,"left":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":38,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["s"]},"collation":"NFC"},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ü"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select filename from read_csv('{DATA_DIR}/csv/nullpadding.csv',null_padding=true, columns={\n'a': 'INTEGER','b': 'INTEGER','c': 'INTEGER','d': 'INTEGER'}, auto_detect =\u003e false, ignore_errors =\u003e true, filename =\u003e true, strict_mode=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":8,"column_names":["filename"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":213,"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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/nullpadding.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":12,"column_names":["null_padding"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":70,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":90,"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":97,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":112,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":127,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":142,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}},{"name":"auto_detect","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"auto_detect","query_location":169,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},{"name":"ignore_errors","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"ignore_errors","query_location":193,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"filename","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"filename","query_location":211,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":217,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":217,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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 v where c 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":[]}],"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":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":31,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["c"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM read_csv_auto('{TEST_DIR}/data.csv.d2/*/*/*.csv.zst') 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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":53,"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":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/data.csv.d2/*/*/*.csv.zst"}}}]},"column_name_alias":[],"with_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/quoted_values_delimited.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":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":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/quoted_values_delimited.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/fuzzing/{i}.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/fuzzing/{i}.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/fuzzing/{i}.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":69,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/error/mismatch/big_bad.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":13,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"FROM sniff_csv('{DATA_DIR}/csv/auto/backslash_escape.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":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":15,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/auto/backslash_escape.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', header=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":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":15,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"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":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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', types=['INTEGER','BIGINT','BIGINT','BIGINT','BIGINT', 'DOUBLE','DOUBLE','DOUBLE','VARCHAR', 'VARCHAR','DATE', 'DATE', 'DATE', 'VARCHAR', 'VARCHAR', '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":214,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":160,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":5,"column_names":["types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":154,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/test_apple_financial.csv.gz', skip=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":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"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":30,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test_apple_financial.csv.gz"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}}]},"column_name_alias":[],"with_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 = '', delim = 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":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":14,"query_location_length":47,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/thousands_separator/simple.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":14,"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":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}},{"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":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}}]},"column_name_alias":[],"with_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/multi_column.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":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":14,"query_location_length":53,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/thousands_separator/multi_column.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":9,"column_names":["thousands"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}}]},"column_name_alias":[],"with_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_tz.csv', dtypes = [TIMESTAMPTZ], timestampformat = '%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":97,"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":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/timestamp_tz.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":6,"column_names":["dtypes"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":59,"query_location_length":11,"column_names":["TIMESTAMPTZ"]}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":15,"column_names":["timestampformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%d/%m/%Y"}}}}]},"column_name_alias":[],"with_ordinality":"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/union-by-name/part=[ab]/*',HIVE_PARTITIONING=TRUE, null_padding=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":96,"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":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/union-by-name/part=[ab]/*"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":14,"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":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]},"column_name_alias":[],"with_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/quoted_new_value.csv', columns = {'band': 'varchar', 'album': 'varchar', 'release': 'varchar'}, quote = '''', delim = ';', header = 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":169,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/validator/quoted_new_value.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":71,"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":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":"band","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"band","query_location":82,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}},{"name":"album","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"album","query_location":102,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}},{"name":"release","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"release","query_location":124,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":136,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"'"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":163,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]},"column_name_alias":[],"with_ordinality":"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 tbl_tz","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"tbl_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n hamming(replace(string_agg(w, '|' ORDER BY y), E'\\r\\n', E'\\n'), E'\\\\|,|\"|\\n'),\n hamming(string_agg(z, '|' ORDER BY y), '\"|\"a\"|\"b|c\"'),\n bool_and(x = concat(w, '\"', w))::int\nFROM read_csv('{DATA_DIR}/csv/unquoted_escape/mixed.csv', quote = '\"', escape = '\\', sep = ',', strict_mode = false);","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":77,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":29,"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":54,"query_location_length":1,"column_names":["y"]}}]},"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":["w"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\r\n"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\n"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\|,|\"|\n"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"query_location_length":53,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"query_location_length":29,"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":129,"query_location_length":1,"column_names":["y"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["z"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"|\"a\"|\"b|c\""}}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":184,"query_location_length":5,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":153,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":162,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":1,"column_names":["x"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":166,"query_location_length":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":1,"column_names":["w"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":1,"column_names":["w"]}}]}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":186,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":195,"query_location_length":111,"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":204,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/unquoted_escape/mixed.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":248,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":261,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":270,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":275,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":275,"query_location_length":3,"column_names":["sep"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":281,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":286,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":286,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":300,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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='encrypted_v0'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":28,"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"encrypted_v0"}}},"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}/file_size_bytes_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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/file_size_bytes_parquet/*.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 test2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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 * FROM '{TEST_DIR}/uuid_v7/a=5/a_name_with_????????-????-7???-????-????????????.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":81,"schema_name":"","table_name":"{TEST_DIR}/uuid_v7/a=5/a_name_with_????????-????-7???-????-????????????.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/uuid_v7/a=5/a_name_with_????????-????-7???-????-????????????.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 read_parquet(['{TEST_DIR}/allow_empty_missing.parquet'], allow_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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":76,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":40,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/allow_empty_missing.parquet"}}}]}},{"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":11,"column_names":["allow_empty"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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}-v1.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":175,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":93,"query_location_length":53,"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":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/dict-{type}-v1.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"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 BOOL_AND(NOT bloom_filter_excludes)\nFROM parquet_bloom_probe('{TEST_DIR}/bloom_decimal.parquet', 'dec_int64', 0.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":35,"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_NOT","alias":"","query_location":16,"query_location_length":25,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":21,"column_names":["bloom_filter_excludes"]}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"query_location_length":89,"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":68,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_decimal.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dec_int64"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":121,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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}/bloom_interval_equivalent.parquet')\nWHERE iv_struct.iv = INTERVAL '101 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_interval_equivalent.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"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":12,"column_names":["iv_struct","iv"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":103,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"101 days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}},"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_value[1] IN (101, 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_list.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":90,"query_location_length":11,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":83,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":10,"column_names":["list_value"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":101}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]},"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', 'r2', '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":65,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"r2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"200"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT bloom_filter_excludes\nFROM parquet_bloom_probe('{TEST_DIR}/bloom_blob.parquet', 'b', from_hex('FF')::BLOB);","json":{"error":false,"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":["bloom_filter_excludes"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":79,"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":54,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_blob.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"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":101,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FF"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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_or(bloom_filter_excludes)\nFROM parquet_bloom_probe('{TEST_DIR}/bloom_temporal.parquet', 'tm_tz', TIMETZ '12:00:00+02');","json":{"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":"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":15,"query_location_length":21,"column_names":["bloom_filter_excludes"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":43,"query_location_length":87,"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":63,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_temporal.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tm_tz"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":109,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:00:00+02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":109,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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_length from parquet_metadata('{TEST_DIR}/bloom7.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":101,"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":19,"column_names":["bloom_filter_length"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":46,"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":63,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom7.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 parquet_scan('test/sql/copy/parquet/broken/twomarkers.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":[]}],"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_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":49,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test/sql/copy/parquet/broken/twomarkers.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 row_group_num_rows\nFROM parquet_metadata('{TEST_DIR}/cte_batch_exchange.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":98,"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":18,"column_names":["row_group_num_rows"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"query_location_length":57,"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":48,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/cte_batch_exchange.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('{DATA_DIR}/parquet-testing/encryption/arrow_uniform_encryption_ten_row_groups.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":162,"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":87,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/encryption/arrow_uniform_encryption_ten_row_groups.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":116,"query_location_length":59,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":17,"column_names":["encryption_config"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"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":147,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"arrow_key_generated_files"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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 timeseries\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":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":15,"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM '{DATA_DIR}/parquet-testing/broken/broken_utinyint.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":59,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/broken/broken_utinyint.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/broken/broken_utinyint.parquet"]}},"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 (SELECT unnest(parquet_kv_metadata, recursive:=True) FROM parquet_full_metadata('{TEST_DIR}/kv_metadata_test.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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":41,"query_location_length":119,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":19,"column_names":["parquet_kv_metadata"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":88,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":99,"query_location_length":60,"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":121,"query_location_length":37,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/kv_metadata_test.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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT name, type, duckdb_type FROM (SELECT unnest(parquet_schema, recursive:=True) FROM parquet_full_metadata('data/parquet-testing/lineitem-top10000.gzip.parquet')) WHERE type 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":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":11,"column_names":["duckdb_type"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":36,"query_location_length":130,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"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":51,"query_location_length":14,"column_names":["parquet_schema"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":78,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":89,"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":111,"query_location_length":53,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/parquet-testing/lineitem-top10000.gzip.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":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":178,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":173,"query_location_length":4,"column_names":["type"]}]},"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_mismatch_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":138,"query_location_length":9,"column_names":["timestamp"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"AdaptiveFilter"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":70,"query_location_length":58,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INIT"}}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"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":"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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%af_mismatch_2.parquet"}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT f, i\nFROM integer_file_first\nWHERE i 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":["f"]},{"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":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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":44,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"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 count(*) from parquet_scan('{DATA_DIR}/parquet-testing/glob/*.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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":43,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob/*.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 '{DATA_DIR}/parquet-testing/issue10279_delta_encoding.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":62,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/issue10279_delta_encoding.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/issue10279_delta_encoding.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 parquet_scan('{DATA_DIR}/parquet-testing/bug1588.parquet') WHERE has_image_link = '1'::bool","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/bug1588.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":14,"column_names":["has_image_link"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":4,"catalog":"","schema":"","type_name":"bool","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x FROM read_parquet(['{TEST_DIR}/ubn22147_struct.parquet', '{TEST_DIR}/ubn22147_int.parquet', '{TEST_DIR}/ubn22147_null.parquet'], union_by_name=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":["x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":143,"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":109,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ubn22147_struct.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ubn22147_int.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ubn22147_null.parquet"}}}]}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":138,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select \"repositoryTopics.edges\" from \"{DATA_DIR}/parquet-testing/bug4859.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":24,"column_names":["repositoryTopics.edges"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":44,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/bug4859.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/bug4859.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, n FROM '{TEST_DIR}/all_null.parquet' WHERE i IN (0, 5000, 9999) 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":83,"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":["n"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/all_null.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/all_null.parquet"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":58,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5000}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9999}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT typeof(#1) FROM parquet_scan('{DATA_DIR}/parquet-testing/binary_string.parquet',binary_as_string=False) limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"query_location_length":87,"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":50,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/binary_string.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":16,"column_names":["binary_as_string"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT num_values, row_group_num_rows, stats_null_count\nFROM parquet_metadata('{DATA_DIR}/parquet-testing/parquet_column_num_values_mismatch.parquet')\nWHERE path_in_schema = '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":10,"column_names":["num_values"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":18,"column_names":["row_group_num_rows"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":16,"column_names":["stats_null_count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"query_location_length":89,"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":78,"query_location_length":71,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/parquet_column_num_values_mismatch.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":157,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":14,"column_names":["path_in_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM read_parquet('{TEST_DIR}/encrypted{key_len}.parquet', encryption_config={footer_key: 'key{key_len}'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":101,"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":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/encrypted{key_len}.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":46,"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":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":"footer_key","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"footer_key","query_location":99,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key{key_len}"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":255}}}]}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zz"}}}]}]},"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/arrow/lineitem-arrow.parquet', '{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":132,"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":27,"query_location_length":118,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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":57,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":57,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/arrow/lineitem-arrow.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, value as f, date from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet', HIVE_PARTITIONING=1) where filename='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":"f","query_location":11,"query_location_length":5,"column_names":["value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["date"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"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":46,"query_location_length":79,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":127,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":154,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"value1"}}},"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 = 'value2';","json":{"error":false,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%mismatching_count%"}}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"value2"}}}]},"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 = '2013-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2013-01-01"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select id, value, part, CAST(date AS DATE) as date_cast from parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet', HIVE_PARTITIONING=1) where concat(date_cast::VARCHAR, part) == '2012-01-01a';","json":{"error":false,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":4,"column_names":["part"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"date_cast","query_location":24,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":4,"column_names":["date"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"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":74,"query_location_length":79,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/hive-partitioning/different_order/*/*/test.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":155,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":182,"query_location_length":49,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":182,"query_location_length":32,"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":198,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":9,"column_names":["date_cast"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":200,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":4,"column_names":["part"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":218,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2012-01-01a"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * \nfrom parquet_scan('{TEST_DIR}/null-parquet/**/*.parquet', hive_partitioning=1, hive_types={'a': INT})\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":15,"query_location_length":96,"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":28,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/null-parquet/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":10,"column_names":["hive_types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"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":"a","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":106,"query_location_length":3,"column_names":["INT"]}}]}}}]},"column_name_alias":[],"with_ordinality":"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(part), part FROM read_parquet('{TEST_DIR}/hive_override_u/part=42/*.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":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":["part"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":4,"column_names":["part"]}],"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":"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":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/hive_override_u/part=42/*.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 j FROM test WHERE j \u003e 3 ORDER 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":40,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["j"]}],"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":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select count(*) from parquet_scan([]::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":[]}],"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":"parquet_scan","schema":"","filter":null,"order_bys":{"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":11,"child":{"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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]},"column_name_alias":[],"with_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 per_file AS (\n SELECT file_name, COUNT(*) AS rows_per_file\n FROM parquet_schema('data/parquet-testing/glob3/**/*.parquet')\n GROUP BY file_name\n)\nSELECT\n SUM(rows_per_file) AS total_rows,\n MAX(rows_per_file) AS max_rows_per_filename,\n (SELECT COUNT(DISTINCT column_id) FROM parquet_schema('data/parquet-testing/glob3/**/*.parquet')) AS distinct_column_ids\nFROM per_file;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"per_file","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":9,"column_names":["file_name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"rows_per_file","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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":76,"query_location_length":57,"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":91,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/parquet-testing/glob3/**/*.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":9,"column_names":["file_name"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"total_rows","query_location":170,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":13,"column_names":["rows_per_file"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"max_rows_per_filename","query_location":208,"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":212,"query_location_length":13,"column_names":["rows_per_file"]}}]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"distinct_column_ids","query_location":257,"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":265,"query_location_length":25,"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":280,"query_location_length":9,"column_names":["column_id"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":296,"query_location_length":57,"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":311,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/parquet-testing/glob3/**/*.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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":383,"query_location_length":8,"schema_name":"","table_name":"per_file","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["per_file"]}},"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/glob2/t1.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":59,"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":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob2/t1.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 accepted_column_gap\nFROM duckdb_logs_parsed('ParquetPrefetch')\nWHERE file_path LIKE '%cost_model_gap.parquet' AND row_group_id = 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":19,"column_names":["accepted_column_gap"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"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":51,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ParquetPrefetch"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":76,"query_location_length":61,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%cost_model_gap.parquet"}}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":12,"column_names":["row_group_id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 '%rgo_proj.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":156,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ParquetPrefetch"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"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":112,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%rgo_proj.parquet"}}}]},"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}/rgo3.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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["c"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["g"]}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/rgo3.parquet"}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":500}}},"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}/prefetch_tracked_big.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":[]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":41,"schema_name":"","table_name":"{TEST_DIR}/prefetch_tracked_big.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/prefetch_tracked_big.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a FROM parquet_scan(['{TEST_DIR}/evolution_2.parquet', '{TEST_DIR}/evolution_1.parquet', '{TEST_DIR}/evolution_*.parquet']) 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":140,"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":102,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/evolution_2.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/evolution_1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/evolution_*.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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/empty-group/empty_group_test.parquet"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"inner"}}},"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/signed_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":67,"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":49,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/signed_stats.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 '{DATA_DIR}/parquet-testing/arrow/int32_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":56,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/arrow/int32_decimal.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/arrow/int32_decimal.parquet"]}},"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(l_comment) s from 'data/parquet-testing/lineitem-top10000.gzip.parquet') LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":86,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":33,"query_location_length":16,"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":39,"query_location_length":9,"column_names":["l_comment"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":53,"schema_name":"","table_name":"data/parquet-testing/lineitem-top10000.gzip.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["data/parquet-testing/lineitem-top10000.gzip.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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob/t1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob/t2.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob2/t1.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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4096}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/{codec}.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(*), sum(i) FROM '{TEST_DIR}/starved.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":[]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":28,"schema_name":"","table_name":"{TEST_DIR}/starved.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/starved.parquet"]}},"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.has_null, s.has_no_null from (select stats(col) s from '{TEST_DIR}/not_fully_shredded_list.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":10,"column_names":["s","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":13,"column_names":["s","has_no_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":57,"query_location_length":79,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":65,"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":71,"query_location_length":3,"column_names":["col"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":83,"query_location_length":44,"schema_name":"","table_name":"{TEST_DIR}/not_fully_shredded_list.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/not_fully_shredded_list.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 my_map['A'], * FROM parquet_scan('{DATA_DIR}/parquet-testing/struct_skip_test.parquet') where filter == '0'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":13,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["my_map"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"A"}}]},{"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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":67,"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":40,"query_location_length":53,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/struct_skip_test.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"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":6,"column_names":["filter"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}}},"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/userdata1.parquet') where id \u003e 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/userdata1.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":88,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":500}}},"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/date.parquet') where d \u003c cast('1978-01-01' as 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":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":27,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/date.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":76,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1978-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},"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 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/date.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":85,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"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 * FROM parquet_scan('does_not_exist')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"does_not_exist"}}}]},"column_name_alias":[],"with_ordinality":"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(registration_dttm), MAX(registration_dttm) FROM userdata1","json":{"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":"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":17,"column_names":["registration_dttm"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":22,"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":17,"column_names":["registration_dttm"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"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(ip_address) OVER w, LAST(ip_address) 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":162,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":24,"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":94,"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":10,"column_names":["ip_address"]}}]},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":33,"query_location_length":23,"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":94,"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":38,"query_location_length":10,"column_names":["ip_address"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"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(comments) OVER w, LAST(comments) 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":158,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":22,"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":90,"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":8,"column_names":["comments"]}}]},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":31,"query_location_length":21,"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":90,"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":36,"query_location_length":8,"column_names":["comments"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":58,"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 * 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"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"]}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/hive-partitioning/union_by_name/x=1"}}}]}},"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-two-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":54,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/dict-two-values.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 CAST(ufield AS UNION(nums INT[], flag BOOLEAN))\nFROM read_parquet('{TEMP_DIR}/u_int.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":110,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":47,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":6,"column_names":["ufield"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":31,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"nums","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]},{"class":"TYPE","type":"TYPE","alias":"flag","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":60,"query_location_length":40,"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":73,"query_location_length":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/u_int.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 typeof(b) FROM '{TEST_DIR}/bools.parquet' LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"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}/enums.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":26,"schema_name":"","table_name":"{TEST_DIR}/enums.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/enums.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 = 'I' and num_children \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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/my.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":67,"query_location_length":31,"children":[{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"I"}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":82,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":12,"column_names":["num_children"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM signed EXCEPT SELECT * FROM '{TEST_DIR}/signed.parquet'","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":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":"signed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["signed"]}},"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":35,"query_location_length":1,"relation_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":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 * FROM '{TEST_DIR}/timestamps.parquet' WHERE d='1992-01-01 12:03:27'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":31,"schema_name":"","table_name":"{TEST_DIR}/timestamps.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/timestamps.parquet"]}},"where_clause":{"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":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 12:03:27"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM '{TEST_DIR}/unsigned.parquet' WHERE d\u003e=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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/unsigned.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/unsigned.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","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":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM glob('{TEST_DIR}/empty_file_size_bytes/*.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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":50,"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":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/empty_file_size_bytes/*.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 parquet_scan('{TEMP_DIR}/userdata1-gzip.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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/userdata1-gzip.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 stats_null_count 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":16,"column_names":["stats_null_count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"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":46,"query_location_length":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/stats.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 *\nfrom parquet_scan('{DATA_DIR}/parquet-testing/hive-partitioning/duplicate_names/**/*.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":"STAR","type":"STAR","alias":"","query_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":89,"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":75,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/hive-partitioning/duplicate_names/**/*.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 read_parquet('{TEST_DIR}/delayed_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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/delayed_ordered/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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}/partitioned7/part_col=1/*.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":96,"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":42,"schema_name":"","table_name":"{TEST_DIR}/partitioned7/part_col=1/*.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/partitioned7/part_col=1/*.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH per_file AS (\n\tSELECT\n\t\tfile_row_number,\n\t\tid,\n\t\tlag(id) OVER (PARTITION BY filename ORDER BY file_row_number) AS prev_id\n\tFROM read_parquet(\n\t\t'{TEST_DIR}/ordered_only_parallel/*.parquet',\n\t\tfilename = true,\n\t\tfile_row_number = true\n\t)\n)\nSELECT count(*)\nFROM per_file\nWHERE file_row_number \u003e 0 AND prev_id \u003c id;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"per_file","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":15,"column_names":["file_row_number"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":2,"column_names":["id"]},{"class":"WINDOW","type":"WINDOW_LAG","alias":"prev_id","query_location":54,"query_location_length":61,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":8,"column_names":["filename"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":15,"column_names":["file_row_number"]}}],"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":2,"column_names":["id"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":133,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ordered_only_parallel/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":197,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":216,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":216,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"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":251,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":265,"query_location_length":8,"schema_name":"","table_name":"per_file","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["per_file"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":280,"query_location_length":36,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":280,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":280,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":298,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":304,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":304,"query_location_length":7,"column_names":["prev_id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":314,"query_location_length":2,"column_names":["id"]}}]},"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":[]},{"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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)\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":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":22,"query_location_length":4,"column_names":["col1"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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":58,"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(*) \u003e 1 FROM glob('{TEST_DIR}/ordered_partitioned/p=0/*.parquet');","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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":25,"query_location_length":52,"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":30,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ordered_partitioned/p=0/*.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 partition1, partition2, LAG(col1) OVER w AS prev\nFROM partitioned_tbl2\nWINDOW w AS (PARTITION BY partition1, partition2 ORDER BY col1)\nQUALIFY (col1 - prev) \u003c\u003e 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":10,"column_names":["partition1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":10,"column_names":["partition2"]},{"class":"WINDOW","type":"WINDOW_LAG","alias":"prev","query_location":31,"query_location_length":16,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":10,"column_names":["partition1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":10,"column_names":["partition2"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"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":35,"query_location_length":4,"column_names":["col1"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"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":150,"query_location_length":18,"left":{"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":["col1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":4,"column_names":["prev"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}},"named_param_map":[]}]}} -{"sql":"SELECT part_col, value_col, value2_col FROM '{TEST_DIR}/no-part-cols8/part_col=0/value_col=*/value2_col=*/*.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":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}/no-part-cols8/part_col=0/value_col=*/value2_col=*/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/no-part-cols8/part_col=0/value_col=*/value2_col=*/*.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 PARQUET_SCAN('{TEST_DIR}/per_thread_output/*.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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/per_thread_output/*.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 '{TEST_DIR}/row_groups_per_file3/*.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":43,"schema_name":"","table_name":"{TEST_DIR}/row_groups_per_file3/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/row_groups_per_file3/*.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_file9/*.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":43,"schema_name":"","table_name":"{TEST_DIR}/row_groups_per_file9/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/row_groups_per_file9/*.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM db2.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":8,"schema_name":"db2","table_name":"tbl1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db2","tbl1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM tbl5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"tbl5","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl5"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM 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":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 42 AS a) FROM (SUMMARIZE TABLE 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":"a","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":"","sample":null,"query_location":34,"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":"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":"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},"show_type":"SUMMARY","catalog_name":"","schema_name":""},"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_aggregate(map_values(histogram(n, [10, 10, 10, 10])), 'sum') 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":65,"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":42,"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":33,"query_location_length":30,"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":43,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":47,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"sum"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"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('010110'::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":22,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"010110"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_XOR(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":23,"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":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":23,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 smallints","json":{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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 bit_count(BITSTRING_AGG(i)) 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":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"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"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 BITSTRING_AGG(i) FROM null_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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":10,"schema_name":"","table_name":"null_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select bool_and()","json":{"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":"bool_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select corr(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":15,"function_name":"corr","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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, COUNT(*) 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":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":"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":[]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"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 COVAR_SAMP(x,y), COVAR_SAMP(x,1), COVAR_SAMP(1,y), COVAR_SAMP(x,NULL), COVAR_SAMP(NULL,y) 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":"covar_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":18,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":1,"column_names":["y"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":15,"function_name":"covar_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":35,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":15,"function_name":"covar_samp","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["y"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":18,"function_name":"covar_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":69,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"query_location_length":18,"function_name":"covar_samp","schema":"","filter":null,"order_bys":{"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["y"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"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 entropy(k) from aggr group by k%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":"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"]}}]}],"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":[{"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":["k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ANY_VALUE(i ORDER BY grp DESC NULLS FIRST) 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":42,"function_name":"any_value","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":28,"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":17,"query_location_length":1,"column_names":["i"]}}]}],"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 FIRST(i) FROM (VALUES (NULL::INT32)) 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":"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":["i"]}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":21,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":5,"catalog":"","schema":"","type_name":"INT32","children":[]}}},"try_cast":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 histogram(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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 histogram(CAST('2021-08-20' AS 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":45,"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":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 MIN(MIN(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":"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 kurtosis(k), kurtosis(v), kurtosis(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":"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":16,"query_location_length":1,"column_names":["k"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"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":29,"query_location_length":1,"column_names":["v"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":42,"query_location_length":2,"column_names":["v2"]}}]}],"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(d ORDER BY 5-i), LAST(dt ORDER BY 5-i), LAST(t ORDER BY 5-i), LAST(s ORDER BY 5-i) 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":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":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":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"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":["d"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":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":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"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":34,"query_location_length":2,"column_names":["dt"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"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":57,"query_location_length":1,"column_names":["t"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"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":79,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":100,"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=1 GROUP BY 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":"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"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 mad(x) from (values ('2147483647'::DECIMAL(10,0)), ('-2147483648'::DECIMAL(10,0))) 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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":19,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2147483647"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-2147483648"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":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 median(r::bigint)::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":24,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":17,"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":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["r"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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(x)\nFROM (VALUES\n\t(INTERVAL '1 day'),\n\t(INTERVAL '10 days')\n) 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":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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"v","sample":null,"query_location":22,"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":32,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 day"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10 days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":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 mode(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":10,"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":4,"column_names":["name"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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 mode(v) 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"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 FIRST(i ORDER BY i DESC) 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":24,"function_name":"first","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":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"]}}]}],"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":"SELECT \"dest\", percentile_disc([0.25, 0.5, 0.75]) WITHIN GROUP (ORDER BY \"arr_delay\") AS \"iqr_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":"iqr_delay","query_location":15,"query_location_length":70,"function_name":"quantile_disc","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":73,"query_location_length":11,"column_names":["arr_delay"]}}]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":32,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":75}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":106,"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":125,"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(sum(1)) WITHIN GROUP (ORDER BY 1 DESC);","json":{"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":"quantile_disc","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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":"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":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 extract(year from d), extract(month from d) from dates group by 1, 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"YEAR"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["d"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":37,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MONTH"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"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":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_cont(r, 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":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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT quantile_cont('00:00:00'::TIME + interval (r/100) second, 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_cont","schema":"","filter":null,"order_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":23,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":50,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"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_cont(r, 0.1, 50) 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":25,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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('2021-01-01'::TIMESTAMP + interval (r/100) hour, [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":81,"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":"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":33,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":"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":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":71,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":75}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"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_cont(r, [0.25, 0.5, NULL]) 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":"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":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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}]}],"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(NULL, 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":24,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 quantile_disc('1990-01-01'::DATE + interval (r) day, 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":57,"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":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":33,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1990-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":52,"query_location_length":1,"column_names":["r"]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"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, q) 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":19,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["q"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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('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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"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"]},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}}]}],"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 regr_avgx(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":14,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regr_slope(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":"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 regr_syy(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":19,"function_name":"regr_syy","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 k, regr_avgy(v, v2) from aggr 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":16,"function_name":"regr_avgy","schema":"","filter":null,"order_bys":{"type":"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":2,"column_names":["v2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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":46,"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 regr_r2(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":14,"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":["v"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":2,"column_names":["v2"]}}]}],"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select regr_sxy(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_sxy","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"]}}]}],"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 sem(*)","json":{"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":"sem","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select skewness(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":"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":16,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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"]}}]},{"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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"]}}]}],"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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 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":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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 g, STRING_AGG(x ORDER BY x DESC), STRING_AGG(x, '|' ORDER BY x DESC) FROM strings GROUP BY g 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":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":32,"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":34,"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":68,"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":52,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"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":98,"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(*) FROM (SELECT g, STRING_AGG(x,',') FROM strings GROUP BY g) 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":[]}],"from_table":{"type":"SUBQUERY","alias":"t1","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"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":17,"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":43,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"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":72,"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 weighted_avg(3, 0), weighted_avg(3, 0.0), weighted_avg(0, 3), weighted_avg(0.0, 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":"weighted_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":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":20,"function_name":"weighted_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":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":18,"function_name":"weighted_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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":20,"function_name":"weighted_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":82,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 COUNT(*) FROM (SELECT DISTINCT i FROM empty_table LIMIT 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":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"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"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":11,"schema_name":"","table_name":"empty_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["empty_table"]}},"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 i, 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":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"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 distinct on(a) a, b from foo order by b 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":["a"]}]},{"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":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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 GROUPING(course), GROUPING(value), course, sum(distinct value), COUNT(*) FROM students GROUP BY CUBE(course, value) HAVING GROUPING(course)=0 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":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":25,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":5,"column_names":["value"]}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":6,"column_names":["course"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":63,"query_location_length":5,"column_names":["value"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"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":108,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":5,"column_names":["value"]}],"group_sets":[[],[0],[0,1],[1]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":130,"query_location_length":18,"left":{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":130,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":6,"column_names":["course"]}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select sum(distinct value), count(*), course, type\n\tfrom students\n\tgroup by grouping sets((course, type), (course))\n\torder 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"]}}]},{"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":[]},{"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":57,"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":91,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":4,"column_names":["type"]}],"group_sets":[[0,1],[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT g, STRING_AGG(DISTINCT y ORDER BY y, '_' ) FILTER (WHERE g \u003c 4)\nFROM strings\nGROUP BY g\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":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":60,"function_name":"string_agg","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":64,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["g"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"order_bys":{"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":["y"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"_"}}}]},"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":1,"column_names":["y"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"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":93,"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, count(DISTINCT x), count(DISTINCT y), sum(DISTINCT x), sum(y)\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":120,"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":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":25,"query_location_length":1,"column_names":["x"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":44,"query_location_length":1,"column_names":["y"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":61,"query_location_length":1,"column_names":["x"]}}]},{"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":["y"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"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":109,"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(DISTINCT value::INTEGER) FILTER (WHERE keep)\nFROM distinct_rewrite_filter_errors;","json":{"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":"count","schema":"","filter":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":5,"column_names":["value"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":30,"schema_name":"","table_name":"distinct_rewrite_filter_errors","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_rewrite_filter_errors"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(DISTINCT nextval('distinct_rewrite_seq_filtered_arg')) FILTER (WHERE false)\nFROM 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":81,"function_name":"count","schema":"","filter":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},"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":44,"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":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"distinct_rewrite_seq_filtered_arg"}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":94,"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":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"column_name_alias":[],"with_ordinality":"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 ON (i) i, j FROM integers WHERE i \u003c\u003e 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"]}]}],"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":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":48,"query_location_length":6,"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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT ON (2) j, (SELECT DISTINCT ON (i) i FROM integers ORDER BY 1 LIMIT 1) FROM integers ORDER BY 2","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["j"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":26,"query_location_length":59,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"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":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"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":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":91,"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),(2,1,4)) AS t(key1,key2,v)\nSELECT DISTINCT ON (COLUMNS('key'), v) key1, key2, v ORDER BY key1, v","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":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key"}},"qualified_exclude_list":[],"rename_list":[]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["v"]}]},{"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":4,"column_names":["key1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":4,"column_names":["key1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":4,"column_names":["key2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":5,"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":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]]},"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":"FROM (VALUES (1,1,2),(1,1,3)) AS t(key1,key2,v)\nSELECT DISTINCT ON (COLUMNS(['key1', 'key2'])) * 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":68,"query_location_length":25,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":77,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key2"}}}]},"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":106,"query_location_length":4,"column_names":["key1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":4,"column_names":["key2"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":95,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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\n\tsum(i),\n\tsum(distinct i),\n\tsum(j)\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":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":12,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":30,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":39,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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(distinct i), min(distinct i), max(distinct i), sum(distinct i), product(distinct 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":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"]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]}],"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":[],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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"]}}]},{"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"]}}]}],"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"]}}]}],"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 b % 2 AS f, SUM(a) FROM test GROUP BY f ORDER BY f;","json":{"error":false,"statements":[{"node":{"type":"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":["f"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"f","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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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":["a"]}}]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["f"]}],"group_sets":[[0]],"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+1 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":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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":"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":45,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (10-i) AS k, SUM(i) FROM integers GROUP BY k ORDER BY FIRST(i);","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":61,"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":67,"query_location_length":1,"column_names":["i"]}}]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]}}]},{"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":["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":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"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, SUM(v) FROM struct_lint_lstr\nGROUP BY k\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":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":16,"schema_name":"","table_name":"struct_lint_lstr","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_lint_lstr"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"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 NULL FROM t0 GROUP BY 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select course as crs, type, count(*) from students group by cube (crs), (), 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":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"crs","query_location":7,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":4,"column_names":["type"]},{"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"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":66,"query_location_length":3,"column_names":["crs"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":4,"column_names":["type"]}],"group_sets":[[1],[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT GROUPING(students.course), GROUPING(students.type), GROUPING(course)+GROUPING(type), course, type, COUNT(*) FROM students GROUP BY CUBE(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":166,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":7,"query_location_length":25,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":15,"column_names":["students","course"]}]},{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":34,"query_location_length":23,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":13,"column_names":["students","type"]}]},{"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":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":59,"query_location_length":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":6,"column_names":["course"]}]}},{"name":"","expression":{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":76,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":4,"column_names":["type"]}]}}]},{"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"]},{"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":120,"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":143,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"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 GROUPING(course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course, course), course, type, COUNT(*) FROM students GROUP BY CUBE(course, type) 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":731,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":734,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":737,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":740,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"GROUPING_FUNCTION","alias":"","query_location":7,"query_location_length":648,"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":24,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":192,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":208,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":216,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":224,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":240,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":256,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":264,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":272,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":280,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":288,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":304,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":312,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":320,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":328,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":336,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":344,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":352,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":360,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":368,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":376,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":384,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":392,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":400,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":408,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":416,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":424,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":432,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":440,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":448,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":456,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":464,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":472,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":480,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":488,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":496,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":504,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":512,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":520,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":528,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":536,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":544,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":552,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":560,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":568,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":576,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":584,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":592,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":600,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":608,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":616,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":624,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":632,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":640,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":648,"query_location_length":6,"column_names":["course"]}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":657,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":665,"query_location_length":4,"column_names":["type"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":671,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":685,"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":708,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":716,"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 count(*), course, type\n from students\n group by grouping sets (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":149,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},{"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":98,"query_location_length":6,"column_names":["course"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"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 course, COUNT(*) FROM students GROUP BY GROUPING SETS ((), (course)) HAVING random()\u003e1000;","json":{"error":false,"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":["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":[]}],"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":67,"query_location_length":6,"column_names":["course"]}],"group_sets":[[],[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":83,"query_location_length":13,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select course, count(*) from students group by rollup (grouping_sets (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":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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":55,"query_location_length":22,"function_name":"grouping_sets","schema":"","filter":null,"order_bys":{"type":"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":6,"column_names":["course"]}}]}],"group_sets":[[],[0]],"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 COUNT(*) = 1 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":74,"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"]}}]}],"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":12,"left":{"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(42) HAVING (SELECT SUM(42)) \u003e SUM(80)","json":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":22,"query_location_length":26,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":22,"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":30,"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":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":80}}}]}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM exam QUALIFY rank() OVER (PARTITION BY student ORDER BY mark DESC) = 2 ORDER BY student","json":{"error":false,"statements":[{"node":{"type":"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":7,"column_names":["student"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_EQUAL","alias":"","query_location":27,"query_location_length":57,"left":{"class":"WINDOW","type":"WINDOW_RANK","alias":"","query_location":27,"query_location_length":53,"function_name":"rank","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":7,"column_names":["student"]}],"orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}},"named_param_map":[]}]}} +{"sql":"SELECT * \nFROM (\n\tSELECT b FROM test as t \n\tGROUP BY b \n\tQUALIFY rank() OVER (PARTITION BY t.b) = 1\n) \nQUALIFY row_number() OVER (PARTITION BY b) = 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":159,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","sample":null,"query_location":15,"query_location_length":86,"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":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":32,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":34,"left":{"class":"WINDOW","type":"WINDOW_RANK","alias":"","query_location":65,"query_location_length":30,"function_name":"rank","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":3,"column_names":["t","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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},"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":111,"query_location_length":38,"left":{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":111,"query_location_length":34,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":143,"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},"named_param_map":[]}]}} +{"sql":"SELECT PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY \"l_extendedprice\") FROM lineitem;","json":{"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_cont","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":51,"query_location_length":17,"column_names":["l_extendedprice"]}}]},"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"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 table_name, database_name, temporary FROM duckdb_tables() WHERE table_name='temp_drop_not_null_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":["table_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":9,"column_names":["temporary"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":49,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"temp_drop_not_null_test"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test 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":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":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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 tbl4","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"tbl4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl4"]}},"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_db.sample","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":14,"schema_name":"test_db","table_name":"sample","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_db","sample"]}},"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}/test6.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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/test6.db.wal"}}}]},"column_name_alias":[],"with_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 memory.main.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":15,"schema_name":"main","table_name":"ddb","column_name_alias":[],"catalog_name":"memory","at_clause":null,"qualified_name":{"path":["memory","main","ddb"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT database_name FROM duckdb_databases() WHERE database_name = 'first';","json":{"error":false,"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"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"first"}}},"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 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":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 * FROM attach_index_db.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":21,"schema_name":"attach_index_db","table_name":"tbl_a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["attach_index_db","tbl_a"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":4,"column_names":["a_id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":25,"column_names":["database","schema","table","col"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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(*) FROM glob('{TEST_DIR}/no_wal_writes.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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/no_wal_writes.db.wal"}}}]},"column_name_alias":[],"with_ordinality":"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 c.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":1,"column_names":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":6,"schema_name":"c","table_name":"file","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["c","file"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"DESCRIBE ALL TABLES","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_UNQUALIFIED","catalog_name":"","schema_name":""},"where_clause":null,"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 * FROM new_database.main.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":50,"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":26,"schema_name":"main","table_name":"integers","column_name_alias":[],"catalog_name":"new_database","at_clause":null,"qualified_name":{"path":["new_database","main","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_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":7,"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":"SHOW SCHEMAS","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":"\"schemas\"","query":null,"show_type":"SHOW_UNQUALIFIED","catalog_name":"","schema_name":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a + 1 AS x, alias.x % 2 AS y, SUM(a) AS s\nFROM (VALUES (1),(2),(3),(4)) t(a)\nGROUP BY a\nHAVING alias.s \u003e 2\nORDER BY 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":123,"query_location_length":1,"column_names":["y"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"x","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"y","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":7,"column_names":["alias","x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":37,"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":41,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":54,"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":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]]},"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["a"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":102,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":7,"column_names":["alias","s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a AS \"MiXeD\", row_number() OVER (ORDER BY a) AS r\nFROM (VALUES (2),(1)) t(a)\nQUALIFY alias.r = 1\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":113,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"MiXeD","query_location":7,"query_location_length":1,"column_names":["a"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"r","query_location":21,"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":49,"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":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":62,"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":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":92,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":7,"column_names":["alias","r"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},"named_param_map":[]}]}} +{"sql":"SELECT alias.col1, alias.col2 FROM alias;","json":{"error":false,"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":["alias","col1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":10,"column_names":["alias","col2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select ss_items.item_id, cs_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":116,"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"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":16,"column_names":["cs_items","item_id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":22,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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":56,"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":71,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":16,"column_names":["ss_items","item_id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"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 list_filter([[1, 2, 1], [1, 2, 3], [1, 1, 1]], lambda x: list_contains_macro(x, 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":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":19,"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":20,"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":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":54,"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":64,"query_location_length":25,"function_name":"list_contains_macro","schema":"","filter":null,"order_bys":{"type":"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":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 + 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":"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i[1] FROM integers","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":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}],"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 a, sum(a) AS total FROM test_alias GROUP BY a HAVING alias.total \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":85,"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":"total","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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"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":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":60,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":11,"column_names":["alias","total"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT tbl.col FROM s1.tbl, 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":7,"column_names":["tbl","col"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":15,"query_location_length":19,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"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":28,"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},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select date '1992-01-01'\u003e'1991-01-01';","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":30,"left":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1991-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 date '1992-01-01'\u003ei from (values ('1991-01-01')) t(i);","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["i"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":32,"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":41,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1991-01-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 i + 1 + 1 + 1 AS k, abs(i) AS l 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":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"k","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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":27,"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":31,"query_location_length":1,"column_names":["i"]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":3,"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":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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":5,"column_names":["HeLlO"]}],"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 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":12,"column_names":["test","HELLo"]}],"from_table":{"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"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT test2.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":11,"column_names":["test2","hello"]}],"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":"test1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test1"]}},"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tv.trim('\u003e\u003c') AS trim_inequality,\n\ttrim_inequality.replace('%', '') AS only_alphabet,\n\tonly_alphabet.lower() AS lower\nFROM varchars","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"trim_inequality","query_location":8,"query_location_length":12,"function_name":"trim","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":15,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\u003e\u003c"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"only_alphabet","query_location":42,"query_location_length":32,"function_name":"replace","schema":"trim_inequality","filter":null,"order_bys":{"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"lower","query_location":94,"query_location_length":21,"function_name":"lower","schema":"only_alphabet","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":130,"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 COUNT(i) AS j FROM integers HAVING j=5;","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"]}}]}],"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select t from (SELECT * FROM test) 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":["t"]}],"from_table":{"type":"SUBQUERY","alias":"t","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},"named_param_map":[]}]}} +{"sql":"select * from tbl where str collate nocase not 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":"OPERATOR_NOT","alias":"","query_location":24,"query_location_length":35,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":50,"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":51,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcde"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT bool_and(i) FROM (SELECT * FROM (SELECT NULL::INTEGER) tbl(i) UNION ALL SELECT CAST(1 as BOOLEAN)) 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":"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":1,"column_names":["i"]}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":24,"query_location_length":81,"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":32,"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":39,"query_location_length":22,"subquery":{"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":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":86,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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},"named_param_map":[]}]}} +{"sql":"SELECT [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":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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\n split(from0, ' ') as expr_parts,\n case\n try(expr_parts[6][1]::int)\n when 1 \n then 'NOT'\n end as dayname,\nfrom (select '1 2 3 1 2 3 4 5 6' as from0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"expr_parts","query_location":11,"query_location_length":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":5,"column_names":["from0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]},{"class":"CASE","type":"CASE_EXPR","alias":"dayname","query_location":48,"query_location_length":97,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18446744073709551615,"query_location_length":0,"left":{"class":"OPERATOR","type":"OPERATOR_TRY","alias":"","query_location":61,"query_location_length":26,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":5,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":78,"query_location_length":3,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":75,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":10,"column_names":["expr_parts"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NOT"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":163,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"from0","query_location":171,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 2 3 1 2 3 4 5 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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"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 '9.9000000000000000000000000000000000000'::DECIMAL(38,37)::DECIMAL(37,36);","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":16,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9.9000000000000000000000000000000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":36}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('%.9g', CAST(CAST('0.0000000000000001' AS DECIMAL(20,20)) AS FLOAT)),\n printf('%.9g', CAST('0.0000000000000001' AS 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":75,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%.9g"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":59,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":44,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.0000000000000001"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":91,"query_location_length":51,"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":98,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%.9g"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.0000000000000001"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":135,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 43 - MAX( ALL - 87 + col1 ) FROM tab2 WHERE col1 * col1 * - CAST( - col2 AS SIGNED ) * + - col0 * + - 77 * - col0 IS NOT NULL AND NOT + col0 BETWEEN 35 * - col2 AND NULL","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":22,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-87}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":4,"column_names":["col1"]}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":4,"schema_name":"","table_name":"tab2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tab2"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":51,"query_location_length":125,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":121,"query_location_length":11,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":69,"function_name":"*","schema":"","filter":null,"order_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":51,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["col1"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"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":67,"query_location_length":24,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"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":75,"query_location_length":4,"column_names":["col2"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":6,"catalog":"","schema":"","type_name":"SIGNED","children":[]}}},"try_cast":false}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":94,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":4,"column_names":["col0"]}}]}}]}}]}},{"name":"","expression":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-77}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":114,"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":116,"query_location_length":4,"column_names":["col0"]}}]}}]}]},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":137,"query_location_length":39,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":148,"query_location_length":28,"input":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":141,"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":143,"query_location_length":4,"column_names":["col0"]}}]},"lower":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":156,"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":156,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":35}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"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":163,"query_location_length":4,"column_names":["col2"]}}]}}]},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '32767.5'::SMALLINT;","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"32767.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5'::UBIGINT;","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":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"18446744073709551615.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.8e1'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12.8e1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '429496729.6e1'::UINTEGER;","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"429496729.6e1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[Hello World!]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[[ [🦆, 🦆, 🦆]], [[duck, db, 🦆], [🦆]], [[🦆, duck, db]]]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\"]\", \"hello\", \"world\"]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[3],[[]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{a:[12,13,14], b:\"🦆\", c:{a:[[a], [b, c]], b:[123]}}]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":92,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"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":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":112,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":127,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\\\\ \\ \", def, ghi]$$::VARCHAR[] a, a[1], len(a[1])","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":38,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\"\\ \\\\abc\\\\ \\ \", def, ghi]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false},{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":54,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":9,"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":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":64,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 $$[nested[brackets], test]$$::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":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[nested[brackets], test]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT $$[\" space at start\", \" leading space\"]$$::VARCHAR[];","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\" space at start\", \" leading space\"]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT $$[\"\\\"quotes\\\" and \\ spaces \", \"\\ leading and trailing \\ \"]$$::VARCHAR[];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":59,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\"\\\"quotes\\\" and \\ spaces \", \"\\ leading and trailing \\ \"]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":70,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 comma (not quoted)","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\\,]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_B: 3, key_C: 8}'::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":39,"query_location_length":46,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{key_A: 2, key_B: 3, key_C: 8}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":44,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"key_A","query_location":54,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"key_B","query_location":65,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]},{"class":"TYPE","type":"TYPE","alias":"key_C","query_location":79,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 3, 4], key_B: [Hello, World]}'::STRUCT(key_A INT[], key_B VARCHAR[]);","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":38,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":43,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{key_A: [2, 3, 4], key_B: [Hello, World]}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":36,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"key_A","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]},{"class":"TYPE","type":"TYPE","alias":"key_B","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":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_B: {key_C: hello world } X }'::STRUCT(key_A INT, key_B STRUCT(key_C VARCHAR));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":48,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":60,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{ key_A: 2, key_B: {key_C: hello world } X }"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":46,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"key_A","query_location":82,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"key_B","query_location":93,"query_location_length":21,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"key_C","query_location":106,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":11,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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:{a:3}, b:{{b:1}}}' AS STRUCT(a STRUCT(a INT), b STRUCT(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":72,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{a:{a:3}, b:{{b:1}}}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":40,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":47,"query_location_length":13,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":56,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":64,"query_location_length":13,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"b","query_location":73,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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': 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","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":109,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":120,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{'a': test}, {'a': NULL}, {'a': 'null'}, {'a': 'nUlL'}, {'a': NULL}, {'a': NULLz}, {'a': 'NULL'}]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":120,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":144,"query_location_length":21,"child":{"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":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":137,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":146,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":155,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":169,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":169,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":192,"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 [\n\trow('test'),\n\t$$(NULL)$$,\n\t$$('null')$$,\n\t$$('nUlL')$$,\n\t$$(NuLl)$$,\n\t$$(\"NULLz\")$$,\n\t$$(\"NULL\")$$\n] a, a::VARCHAR::STRUCT(a VARCHAR)[] b, a IS NOT DISTINCT FROM b","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":103,"function_name":"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":10,"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":14,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(NULL)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"('null')"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"('nUlL')"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(NuLl)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(\"NULLz\")"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(\"NULL\")"}}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":124,"query_location_length":21,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":115,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":117,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":126,"query_location_length":17,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":135,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":149,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"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 (NULL::STRUCT(name VARCHAR, age INT))::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":44,"query_location_length":23,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":29,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"name","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"age","query_location":39,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::MAP(INT, 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":15,"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":8,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":13,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_val\": true, \"false_val\": false}::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":45,"query_location_length":23,"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":"true_val","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"true_val","query_location":20,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"false_val","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"false_val","query_location":39,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":21,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::UTINYINT 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"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::BIT;","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":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', 65)::BIGINT;","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":65}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::HUGEINT::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-15}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::UBIGINT::BIT;","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":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":20,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":18446744073709551615}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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=0 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":20,"child":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":12,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('nO' 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":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nO"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 integer) 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 float) 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":35,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" E1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{prefix}11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{prefix}00000000000000000000000000000000111111111"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12442952}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2000000111}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0x80"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0x100"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":5,"catalog":"","schema":"","type_name":"UINT8","children":[]}}},"try_cast":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 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"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 'infinity' 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":34,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":12,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-02-04"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"with \"CTE\" AS (SELECT 42)\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":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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 * from A join B using(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":16,"query_location_length":15,"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":["X"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_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 FULL OUTER JOIN b USING (hello) FULL OUTER JOIN c USING (hello) FULL OUTER JOIN d USING (hello) FULL OUTER JOIN e 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":112,"query_location_length":31,"left":{"type":"JOIN","alias":"","sample":null,"query_location":80,"query_location_length":31,"left":{"type":"JOIN","alias":"","sample":null,"query_location":48,"query_location_length":31,"left":{"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},"right":{"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"]}},"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},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":96,"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":"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":128,"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":"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 (SELECT 1 \"hello\", 2 \"HeLlO\") NATURAL JOIN (SELECT 1 \"hello\", 2 \"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":44,"query_location_length":42,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"hello","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"HeLlO","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":57,"query_location_length":29,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"hello","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"HeLlO","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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_sequences() where sequence_name='test_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":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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":29,"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":59,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test_sequence"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT table_name, database_name, temporary FROM duckdb_tables() WHERE table_name='temp_comment_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":["table_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":13,"column_names":["database_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":9,"column_names":["temporary"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":49,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"temp_comment_test"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select database_name, schema_name, comment from duckdb_indexes() where index_name='test_index' 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":104,"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":7,"column_names":["comment"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":71,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":10,"column_names":["index_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test_index"}}},"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 colname, colname2, colname3, colname4, colname5 FROM tablename;","json":{"error":false,"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":["colname"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":8,"column_names":["colname2"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":8,"column_names":["colname3"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":8,"column_names":["colname4"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":8,"column_names":["colname5"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":9,"schema_name":"","table_name":"tablename","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tablename"]}},"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(integers, 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":25,"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":8,"column_names":["integers"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["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 * from m(b := 'a', 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":"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":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":21,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":31,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]},"column_name_alias":[],"with_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 1, 2, 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":23,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 1, 2, 3"}}}]},"column_name_alias":[],"with_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([tbl, 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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":5,"query_location_length":24,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["tbl"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["tbl2"]}}]}}]},"column_name_alias":[],"with_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('SELECT 4 + 2');","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":"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 4 + 2"}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"QUÁCK BÁRK"}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[^a-z]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\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}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":557,"query_location_length":2,"column_names":["df"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":562,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}}]}}]}},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":596,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":12}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":616,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":75}}}]}},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}}]}}]}}]}}]}}]}],"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":[]}],"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"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"]}}]}}]}],"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"arithmetic"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"multi_add"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"generate_numbers"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select m('duck')","json":{"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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select parameter_types[1]\nfrom duckdb_functions()\nwhere function_name = 'm'\nand function_type = 'table_macro'\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":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":22,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":15,"column_names":["parameter_types"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}],"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_functions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":56,"query_location_length":53,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":13,"column_names":["function_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"m"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":13,"column_names":["function_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"table_macro"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT in_next_n(12, 'seq', 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":"in_next_n","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 in_expression_list(1, 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":27,"function_name":"in_expression_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":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 IFELSE(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":12,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 two_default_params()","json":{"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":"two_default_params","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT subquery(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":11,"function_name":"subquery","schema":"","filter":null,"order_bys":{"type":"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":["a"]}}]}],"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 * FROM test_tbl where id\u003e=(SELECT max(id) FROM xt(id,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":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"test_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":29,"query_location_length":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":2,"column_names":["id"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":33,"query_location_length":31,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":45,"query_location_length":2,"column_names":["id"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":54,"query_location_length":9,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]},"column_name_alias":[],"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},"named_param_map":[]}]}} +{"sql":"SELECT * FROM sc2(50.0, 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":12,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"sc2","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":500}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"column_name_alias":[],"with_ordinality":"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_agg(range) OVER () \nfrom range(2);","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":21,"function_name":"my_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":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":5,"column_names":["range"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":35,"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":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT schema_name, parent_schema FROM duckdb_schemas()\nWHERE database_name = 'memory' AND schema_name IN ('s1','child','grandchild','sibling')\nORDER BY schema_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":153,"query_location_length":11,"column_names":["schema_name"]}}]}],"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":13,"column_names":["parent_schema"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":62,"query_location_length":81,"children":[{"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":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"memory"}}},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":106,"query_location_length":37,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":11,"column_names":["schema_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"child"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"grandchild"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"sibling"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_schemas()\nWHERE schema_name IN ('parent','child','grandchild','gc1','gc2','sibling','leaf');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":59,"query_location_length":60,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":11,"column_names":["schema_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"parent"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"child"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"grandchild"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"gc1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"gc2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"sibling"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"leaf"}}]},"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":[]}],"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"memory"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'angry'::s1.s2.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":12,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"angry"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":10,"catalog":"s1","schema":"s2","type_name":"mood","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_functions() WHERE function_name IN ('double', 'tbl_macro');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":63,"query_location_length":23,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"double"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl_macro"}}]},"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;%';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/nested_export/schema.sql"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"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":"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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%CREATE SCHEMA s1.s2;%"}}}]},"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_types() WHERE type_name = 'ty';","json":{"error":false,"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_types","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":9,"column_names":["type_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ty"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_tables() t, duckdb_schemas() s\nWHERE t.table_name = 't1' AND t.schema_oid = s.oid AND s.parent_schema = '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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":42,"left":{"type":"TABLE_FUNCTION","alias":"t","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_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"s","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":[]},"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":65,"query_location_length":71,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":12,"column_names":["t","table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t1"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":12,"column_names":["t","schema_oid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":5,"column_names":["s","oid"]}},{"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":15,"column_names":["s","parent_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT tbl.s.b 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":7,"column_names":["tbl","s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"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.s2.dup.a AS x, s4.s2.dup.a AS y FROM s1.s2.dup, s4.s2.dup;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":7,"query_location_length":11,"column_names":["s1","s2","dup","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"y","query_location":25,"query_location_length":11,"column_names":["s4","s2","dup","a"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":25,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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":58,"query_location_length":9,"schema_name":"s2","table_name":"dup","column_name_alias":[],"catalog_name":"s4","at_clause":null,"qualified_name":{"path":["s4","s2","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 parent.child.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":39,"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":15,"schema_name":"child","table_name":"t1","column_name_alias":[],"catalog_name":"parent","at_clause":null,"qualified_name":{"path":["parent","child","t1"]}},"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 schema_name IN ('parent', '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":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":59,"query_location_length":33,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":11,"column_names":["schema_name"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"parent"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"child"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"grandchild"}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM duckdb_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":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"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('seq6') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq6"}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}}]},"column_name_alias":[],"with_ordinality":"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');","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"myseq"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 nextval('seq'), 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":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":15,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":31,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, nextval('seq') 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":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":18,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]}],"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 COUNT(DISTINCT 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":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":["a"]}}]}],"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 j FROM integers2 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":33,"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":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"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 COUNT(*) FROM test_catalog.nonexistent_schema.some_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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":42,"schema_name":"nonexistent_schema","table_name":"some_table","column_name_alias":[],"catalog_name":"test_catalog","at_clause":null,"qualified_name":{"path":["test_catalog","nonexistent_schema","some_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT k FROM out_of_path.oop_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":["k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":21,"schema_name":"out_of_path","table_name":"oop_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["out_of_path","oop_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM main_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":9,"schema_name":"","table_name":"main_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main_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('test_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test_sequence"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_schemas(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":21,"function_name":"current_schemas","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 * FROM s1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"s1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x FROM v1 t1(x) WHERE x \u003e 41","json":{"error":false,"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":"t1","sample":null,"query_location":14,"query_location_length":8,"schema_name":"","table_name":"v1","column_name_alias":["x"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":41}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 'ABC' in (select s collate nocase) from (values ('aBc')) t(s);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":16,"query_location_length":25,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLLATE","type":"COLLATE","alias":"","query_location":24,"query_location_length":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["s"]},"collation":"nocase"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ABC"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":47,"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":56,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aBc"}}]]},"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%ö' COLLATE NOACCENT LIKE 'a$%ö' ESCAPE '$'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":"COLLATE","type":"COLLATE","alias":"","query_location":7,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a%ö"}},"collation":"NOACCENT"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a$%ö"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 (select c1 from t0) collate nocase;","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":34,"child":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":19,"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":2,"column_names":["c1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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":[]},"child":null,"comparison_type":"INVALID"},"collation":"nocase"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(chr(44032), '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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":44032}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"en"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(collate_de('a')), typeof(icu_collate_de('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":23,"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":15,"function_name":"collate_de","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":19,"function_name":"icu_collate_de","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 right(left(b collate de, 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":31,"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":21,"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":12,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["b"]},"collation":"de"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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 NULL product_id, region, sum(amount_sold) from sales group by region\nUNION ALL\nselect NULL product_id, NULL region, sum(amount_sold) from sales\nUNION ALL\nselect product_id, NULL region, sum(amount_sold) from sales group by product_id order by 1,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":250,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":252,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":"product_id","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":6,"column_names":["region"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":16,"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":36,"query_location_length":11,"column_names":["amount_sold"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":6,"column_names":["region"]}],"group_sets":[[0]],"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":"product_id","query_location":93,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"region","query_location":110,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"query_location_length":16,"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":127,"query_location_length":11,"column_names":["amount_sold"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":145,"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":10,"column_names":["product_id"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"region","query_location":180,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":193,"query_location_length":16,"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":197,"query_location_length":11,"column_names":["amount_sold"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":215,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":230,"query_location_length":10,"column_names":["product_id"]}],"group_sets":[[0]],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_contains(['hello', 'world'], '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":42,"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":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":22,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"world"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"SELECT NULL::VARCHAR GROUP BY NULL::VARCHAR;","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":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"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":34,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NULL::INTERVAL IN (NULL::INTERVAL, INTERVAL 1 DAY);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":25,"query_location_length":32,"children":[{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false},{"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 999::VARCHAR ORDER BY 1 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":29,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"collation":"NOCASE"}}]}],"cte_map":{"map":[]},"select_list":[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":999}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select lower(a collate noaccent) 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":25,"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":13,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":1,"column_names":["a"]},"collation":"noaccent"}}]}],"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 a from tbl where starts_with(b collate noaccent, '\u003e\u003e\u003e\u003e\u003eo') 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":"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":41,"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":"COLLATE","type":"COLLATE","alias":"","query_location":36,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["b"]},"collation":"noaccent"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\u003e\u003e\u003e\u003e\u003eo"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select icu_sort_key('Ş', 'ro');","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Ş"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ro"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'Á' COLLATE \"NOACCENT.ICU_NOACCENT\"","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":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Á"}},"collation":"NOACCENT.ICU_NOACCENT"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '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":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":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"HELLO"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"SELECT strpos('a' 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":30,"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":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}},"collation":"NOCASE"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 pkt1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"pkt1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pkt1"]}},"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","json":{"error":false,"statements":[{"node":{"type":"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":"STAR","type":"STAR","alias":"","query_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 count(*) FROM read_parquet('{TEST_DIR}/async_lifecycle_sync.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":[]}],"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":"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":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/async_lifecycle_sync.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 FROM sniff_csv('{DATA_DIR}/csv/14512_og.csv', strict_mode = false, delim = ',', quote = '\"', escape = '\"')","json":{"error":false,"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":101,"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":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/14512_og.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":6,"column_names":["escape"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}}]},"column_name_alias":[],"with_ordinality":"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, Quote, Escape FROM sniff_csv(\"data/19578.csv\", strict_mode=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":["Delimiter"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":5,"column_names":["Quote"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":6,"column_names":["Escape"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":47,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":16,"column_names":["data/19578.csv"]}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_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_1.csv', rejects_scan=0, buffer_size=655371, all_varchar=false, rejects_scan=0, buffer_size=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":133,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/afl/3977/case_1.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":12,"column_names":["rejects_scan"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}},{"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":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":655371}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":11,"column_names":["all_varchar"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":107,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":12,"column_names":["rejects_scan"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":123,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}}]},"column_name_alias":[],"with_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_13.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/afl/3977/case_13.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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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_25.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/afl/3977/case_25.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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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_37.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/afl/3977/case_37.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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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_49.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/afl/3977/case_49.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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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_61.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/afl/3977/case_61.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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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_73.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/afl/3977/case_73.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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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_85.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/afl/3977/case_85.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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":115,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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/4496/crashes/case_1.csv', auto_detect=false, buffer_size=42, columns={'json': 'JSON'}, delim=NULL, rejects_limit=658694493994253607, 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":181,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/afl/4496/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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":24,"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":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":"json","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"json","query_location":112,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"JSON"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":133,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":13,"column_names":["rejects_limit"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":18,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":658694493994253607}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":167,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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 locations_header_trailing_comma","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":31,"schema_name":"","table_name":"locations_header_trailing_comma","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["locations_header_trailing_comma"]}},"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_auto('{DATA_DIR}/csv/test/multi_column_string.csv', COLUMN_TYPES=STRUCT_PACK(column0 := 'DOUBLE')) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"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":37,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test/multi_column_string.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":45,"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":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":"column0","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column0","query_location":121,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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, nfc_normalize(j) j, k FROM '{DATA_DIR}/csv/real/greek_utf8.csv' t(i, j, 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":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":10,"query_location_length":16,"function_name":"nfc_normalize","schema":"","filter":null,"order_bys":{"type":"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"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":37,"query_location_length":47,"schema_name":"","table_name":"{DATA_DIR}/csv/real/greek_utf8.csv","column_name_alias":["i","j","k"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/real/greek_utf8.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/pipe_delim.csv', columns={'a': '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":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":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/pipe_delim.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":61,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"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":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_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 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":"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":"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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, column04, column05, column06, column07, column08, column09, column10, column11, 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":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"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":8,"column_names":["column04"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":8,"column_names":["column05"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":8,"column_names":["column06"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":8,"column_names":["column07"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":8,"column_names":["column08"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":8,"column_names":["column09"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":8,"column_names":["column10"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":8,"column_names":["column11"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":8,"column_names":["column12"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":141,"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 _select, _insert, _join FROM test ORDER BY _select;","json":{"error":false,"statements":[{"node":{"type":"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":7,"column_names":["_select"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["_select"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["_insert"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":5,"column_names":["_join"]}],"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 * FROM read_csv_auto ('{TEST_DIR}/csv_file.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":29,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_file.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(column0), typeof(column1), typeof(column2) FROM read_csv_auto ('{TEST_DIR}/csv_file.csv', auto_type_candidates=['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"]}}]},{"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"]}}]},{"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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":62,"query_location_length":83,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_file.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":104,"query_location_length":40,"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":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":126,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FLOAT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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, d, ts 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":41,"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":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["ts"]}],"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":"FROM read_csv('{DATA_DIR}/csv/auto/issue_1254_rn.csv', buffer_size=10)","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":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":14,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/auto/issue_1254_rn.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}}]},"column_name_alias":[],"with_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_big.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":161,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test/invalid_utf_big.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":65,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":75,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":93,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"col3","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col3","query_location":111,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"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":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":142,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}},{"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":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}}]},"column_name_alias":[],"with_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/invalid_utf8.csv', auto_detect = false, columns={'c01': '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":98,"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":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/invalid_utf8.csv"}}},{"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":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":26,"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":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":"c01","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c01","query_location":91,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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_separators;","json":{"error":false,"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":18,"schema_name":"","table_name":"decimal_separators","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimal_separators"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select typeof(Year), typeof(Quarter) from read_csv_auto('{DATA_DIR}/csv/real/ontime_sample.csv', dtypes=['INT', 'TINYINT']) LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["Year"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":28,"query_location_length":7,"column_names":["Quarter"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":42,"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":56,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/real/ontime_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":97,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":6,"column_names":["dtypes"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"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":105,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"TINYINT"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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', columns={'i':'varchar', 'b':'varchar'}, column_types={'x': 'INTEGER', 'y': 'BOOLEAN'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":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":23,"query_location_length":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/auto/int_bol.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":38,"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":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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":71,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":86,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":45,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":12,"column_names":["column_types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"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":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":117,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":133,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BOOLEAN"}}}]}}}]},"column_name_alias":[],"with_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/15473.csv', delim = ',', columns = {'A' : 'VARCHAR','B' : 'VARCHAR','C' : 'VARCHAR','D' : '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":126,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/15473.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":55,"query_location_length":75,"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":65,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"B","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"B","query_location":88,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"C","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"C","query_location":104,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"D","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"D","query_location":120,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/hive-partitioning/mismatching_names/*/*/test.csv', 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":101,"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":65,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/hive-partitioning/mismatching_names/*/*/test.csv"}}},{"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":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"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=CAST('2012-01-01' as DATE) AND concat(date_cast::VARCHAR, part_cast::VARCHAR) == 'foobar') OR (part_cast=1337) 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":314,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":183,"query_location_length":121,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":184,"query_location_length":99,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":9,"column_names":["date_cast"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":194,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2012-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":215,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":225,"query_location_length":58,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":225,"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":241,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":9,"column_names":["date_cast"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":243,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":261,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":9,"column_names":["part_cast"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":263,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":275,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobar"}}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":289,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":289,"query_location_length":9,"column_names":["part_cast"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":299,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1337}}}]},"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/hive-partitioning/mismatching_contents/part=1/test.csv', '{DATA_DIR}/csv/hive-partitioning/mismatching_contents/part=2/test.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":186,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":161,"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":28,"query_location_length":146,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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":71,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/hive-partitioning/mismatching_contents/part=1/test.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":71,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/hive-partitioning/mismatching_contents/part=2/test.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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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":[]}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":172,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"height","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"height","query_location":193,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"null"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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 * FROM read_csv_auto('{DATA_DIR}/csv/empty_first_line.csv', delim='|', auto_detect=false, columns={'column00': 'VARCHAR'}, skip = 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":125,"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":37,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/empty_first_line.csv"}}},{"name":"","expression":{"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":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":105,"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":"column00","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column00","query_location":118,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":130,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT * FROM read_csv(['{DATA_DIR}/csv/glob/a?/a*.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":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/glob/a?/a*.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/glob/a?/a*.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":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":43,"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":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":24,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/glob/*/a*a.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/glob_dif_dialect/14166/__200*.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":50,"schema_name":"","table_name":"{DATA_DIR}/csv/glob_dif_dialect/14166/__200*.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/glob_dif_dialect/14166/__200*.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_auto('{DATA_DIR}/csv/issue6764.csv', all_varchar=true, 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":82,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":17,"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":82,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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/aab_delim.csv', delim = 'AAB')","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":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/multidelimiter/aab_delim.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":13,"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":69,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"AAB"}}}}]},"column_name_alias":[],"with_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/null_terminator.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":36,"schema_name":"","table_name":"{DATA_DIR}/csv/null_terminator.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/null_terminator.csv"]}},"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/new_line_string_rn.csv', COLUMNS=STRUCT_PACK(a := 'INTEGER', b := 'INTEGER', c := 'INTEGER', d := 'VARCHAR'), auto_detect='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":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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"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":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test/new_line_string_rn.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":83,"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":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":100,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":116,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":132,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":148,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":160,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":180,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":180,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}}]},"column_name_alias":[],"with_ordinality":"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, value, date from read_csv_auto('{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv', HIVE_PARTITIONING=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":130,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["part"]},{"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":4,"column_names":["date"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":30,"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":44,"query_location_length":54,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/hive-partitioning/simple/*/*/test.csv"}}},{"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":17,"column_names":["HIVE_PARTITIONING"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"select *\nfrom read_csv('{DATA_DIR}/csv/bug_7578.csv', delim='\\t', quote = '`', columns={\n 'transaction_id': 'VARCHAR',\n 'team_id': 'INT',\n 'direction': 'INT',\n 'amount':'DOUBLE',\n 'account_id':'INT',\n 'transaction_date':'DATE',\n 'recorded_date':'DATE',\n 'tags.transaction_id':'VARCHAR',\n 'tags.team_id':'INT',\n 'tags':'varchar'\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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":15,"query_location_length":326,"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":24,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/bug_7578.csv"}}},{"name":"","expression":{"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":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\t"}}}},{"name":"","expression":{"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":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"`"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":260,"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":252,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"transaction_id","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"transaction_id","query_location":110,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"team_id","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"team_id","query_location":134,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INT"}}},{"name":"direction","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"direction","query_location":156,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INT"}}},{"name":"amount","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"amount","query_location":174,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"account_id","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"account_id","query_location":199,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INT"}}},{"name":"transaction_date","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"transaction_date","query_location":227,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"recorded_date","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recorded_date","query_location":253,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"tags.transaction_id","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"tags.transaction_id","query_location":285,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"tags.team_id","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"tags.team_id","query_location":313,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INT"}}},{"name":"tags","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"tags","query_location":329,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/wrongtype.csv', sep=',', buffer_size=100, 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":115,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/wrongtype.csv"}}},{"name":"","expression":{"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":3,"column_names":["sep"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":15,"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":81,"query_location_length":34,"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":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":96,"query_location_length":3,"column_names":["int"]}},{"name":"h2","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"h2","query_location":107,"query_location_length":7,"column_names":["varchar"]}}]}}},{"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":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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/date.csv', parallel=false, sep=',', buffer_size=100, columns={'h1': date, '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":133,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/error/date.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":8,"column_names":["parallel"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":3,"column_names":["sep"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"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":11,"column_names":["buffer_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":35,"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":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":"h1","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"h1","query_location":113,"query_location_length":4,"column_names":["date"]}},{"name":"h2","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"h2","query_location":125,"query_location_length":7,"column_names":["varchar"]}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":135,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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(j) FROM read_csv(['{TEST_DIR}/csv_ra_0.csv', '{TEST_DIR}/csv_ra_union.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_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"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":["j"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_ra_0.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/csv_ra_union.csv"}}}]}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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 t(i, j) AS\n(\n\tSELECT 1, 0\n\tUNION ALL\n\t(\n\t\tSELECT i + 1, j + a\n\t\tFROM t, r\n\t\tWHERE i \u003c= part\n\t)\n)\nSELECT * 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":137,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["i","j"],"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":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":64,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":["j"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":79,"query_location_length":9,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":84,"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":87,"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":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":97,"query_location_length":9,"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":102,"query_location_length":4,"column_names":["part"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i","j"],"key_targets":[]}}}]},"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":"BASE_TABLE","alias":"","sample":null,"query_location":126,"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 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 store_rejects=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":"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"]}}]}}]},{"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"]}}]}}]},{"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":[]},{"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"]}}]},{"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"]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"query_location_length":107,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":190,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":13,"column_names":["store_rejects"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":204,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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/bad2.csv',\n columns = {'col0': 'INTEGER', 'col1': 'INTEGER', 'col2': 'INTEGER'},\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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/error/mismatch/bad2.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":112,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":131,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"datetime","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"datetime","query_location":89,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"TIMESTAMPTZ"}}},{"name":"time","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"time","query_location":112,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"TIME"}}},{"name":"timestamp","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"timestamp","query_location":133,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"TIMESTAMP"}}},{"name":"time_tz","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"time_tz","query_location":157,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"TIMETZ"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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"]}}]}}]},{"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"]}}]}}]},{"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":[]},{"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"]}}]},{"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"]}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rejects_errors_3"}}}}]},"column_name_alias":[],"with_ordinality":"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"]}}]}}]},{"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"]}}]}}]},{"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":[]},{"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"]}}]},{"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"]}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":111,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"col2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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":[]}]}} +{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":122,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"current_day","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"current_day","query_location":148,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"tomorrow","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"tomorrow","query_location":168,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":118,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"current_day","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"current_day","query_location":144,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"barks","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"barks","query_location":161,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c2","query_location":111,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"column2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"column2","query_location":133,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/null_comparison.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(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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"!"}}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 COUNT(a), COUNT(b), COUNT(c), MIN(LENGTH(b)), MAX(LENGTH(b)), SUM(a), SUM(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":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"]}}]},{"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"]}}]},{"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":48,"query_location_length":1,"column_names":["b"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":14,"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":57,"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":64,"query_location_length":1,"column_names":["b"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"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":73,"query_location_length":1,"column_names":["a"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"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":81,"query_location_length":1,"column_names":["c"]}}]}],"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":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/error/json.csv', columns={'a':'JSON'}, 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":85,"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":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/error/json.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":60,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"JSON"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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/real/lineitem_sample.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":41,"schema_name":"","table_name":"{DATA_DIR}/csv/real/lineitem_sample.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/real/lineitem_sample.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('{TEST_DIR}/timestamp-format.csv', all_varchar=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":61,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/timestamp-format.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":11,"column_names":["all_varchar"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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[1].type FROM sniff_csv('{DATA_DIR}/csv/bad_date_2.csv')","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":15,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":14,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["columns"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"type"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"query_location_length":42,"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":38,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/bad_date_2.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/dateformat/not_working.csv', header=true,dateformat='%d-%b-%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":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":90,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/dateformat/not_working.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":11,"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":83,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":10,"column_names":["dateformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%d-%b-%Y"}}}}]},"column_name_alias":[],"with_ordinality":"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(number) FROM read_csv('{DATA_DIR}/csv/double_trouble.csv', decimal_separator=',', auto_type_candidates = ['FLOAT']) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["number"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"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":36,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/double_trouble.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":17,"column_names":["decimal_separator"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":20,"column_names":["auto_type_candidates"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":119,"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":120,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FLOAT"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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 tbl_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_2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_2"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(bar) FROM read_csv(['{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/1.csv','{DATA_DIR}/csv/17451/2.csv','{DATA_DIR}/csv/17451/extra/3.csv'], files_to_sniff = -1) limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":446,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"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":["bar"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"query_location_length":415,"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":33,"query_location_length":384,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":266,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":295,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":324,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":353,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":382,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/17451/extra/3.csv"}}}]}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":419,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":419,"query_location_length":14,"column_names":["files_to_sniff"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":436,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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":[]}]}} +{"sql":"SELECT columns from sniff_csv('{DATA_DIR}/csv/header_only_2.csv', types = {'foo':'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":7,"column_names":["columns"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":20,"query_location_length":72,"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":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/header_only_2.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":5,"column_names":["types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"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":81,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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_ignore_errors.csv', columns = {'Order ref ID': 'VARCHAR'}, delim = ',', ignore_errors=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":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":23,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test_ignore_errors.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":37,"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":74,"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":"Order ref ID","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"Order ref ID","query_location":91,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":5,"column_names":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":117,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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 timestamps;","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":"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 * 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_no_header.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":244,"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":234,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/multiple_files/more_columns/file_3.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":193,"query_location_length":63,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/multiple_files/more_columns/file_no_header.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/mixed_new_line_2.csv', new_line ='\\r\\n', strict_mode = False, columns = {'a':'varchar', 'b':'varchar'}, auto_detect = false, 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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":162,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/mixed_new_line_2.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":8,"column_names":["new_line"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\r\\n"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":108,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"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":123,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":138,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}}]}}},{"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":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"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":["delim"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}}]},"column_name_alias":[],"with_ordinality":"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 source COLLATE NFC=nfc","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":22,"left":{"class":"COLLATE","type":"COLLATE","alias":"","query_location":38,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":6,"column_names":["source"]},"collation":"NFC"},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":3,"column_names":["nfc"]}},"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, strict_mode=True)\nwhere b = 100;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":195,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":105,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":120,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":135,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]}}},{"name":"auto_detect","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"auto_detect","query_location":162,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},{"name":"ignore_errors","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"ignore_errors","query_location":186,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":192,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":192,"query_location_length":11,"column_names":["strict_mode"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":204,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":217,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":217,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},"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)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":30,"query_location_length":37,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":";"}}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]},"column_name_alias":[],"with_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.csv', columns = {'a':'varchar', 'b':'integer'}, auto_detect = false, header = true) 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":128,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test_default_option.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":71,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":86,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integer"}}}]}}},{"name":"","expression":{"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":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":119,"query_location_length":13,"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":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":140,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM read_csv('{DATA_DIR}/csv/quoted_values_delimited.csv', 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":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":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/quoted_values_delimited.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":5,"column_names":["quote"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}}]},"column_name_alias":[],"with_ordinality":"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 people2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"people2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["people2"]}},"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=10000);","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":73,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/error/mismatch/big_bad.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":["sample_size"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}}]},"column_name_alias":[],"with_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/comments/simple.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":47,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/comments/simple.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/auto/time_date_timestamp_yyyy.mm.dd.csv', 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":104,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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":35,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":15,"column_names":["timestampformat"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y.%m.%d %H:%M:%S"}}}}]},"column_name_alias":[],"with_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', column_types=['INTEGER','BIGINT','BIGINT','BIGINT','BIGINT', 'DOUBLE','DOUBLE','DOUBLE','VARCHAR', 'VARCHAR','DATE', 'DATE', 'DATE', 'VARCHAR', 'VARCHAR', '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":221,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/real/lineitem_sample.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":167,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":12,"column_names":["column_types"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":154,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOUBLE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":204,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}}]},"column_name_alias":[],"with_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', header = 1, 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":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":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/test_apple_financial.csv.gz"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":60,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":6,"column_names":["header"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},{"name":"","expression":{"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":4,"column_names":["skip"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}}]},"column_name_alias":[],"with_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 = ',', decimal_separator = ',')","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":47,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":17,"column_names":["decimal_separator"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}}]},"column_name_alias":[],"with_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 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":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 read_csv_auto(['{TEMP_DIR}/ubn1.csv', '{TEMP_DIR}/ubn2.csv', '{TEMP_DIR}/ubn3.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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":29,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/ubn1.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/ubn2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/ubn3.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/union_by_name_2/*.csv', union_by_name=True, parallel = 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":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/union_by_name_2/*.csv"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":13,"column_names":["union_by_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"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":8,"column_names":["parallel"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"column_name_alias":[],"with_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"varchar"}}}]}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\""}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":24}}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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(*) FROM read_csv_auto('{TEST_DIR}/file_size_bytes_csv3/*.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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/file_size_bytes_csv3/*.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}/trailing/a=9/????????-????-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":79,"schema_name":"","table_name":"{TEST_DIR}/trailing/a=9/????????-????-4???-????-????????????_trailing.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/trailing/a=9/????????-????-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 '{TEST_DIR}/pto/basename_????????-????-4???-????-????????????.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":70,"schema_name":"","table_name":"{TEST_DIR}/pto/basename_????????-????-4???-????-????????????.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/pto/basename_????????-????-4???-????-????????????.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, payload, partition_key\nFROM read_parquet(['{TEST_DIR}/allow_empty_hive/**/*.parquet'], hive_partitioning = true, allow_empty = 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":153,"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":["payload"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":13,"column_names":["partition_key"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"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":53,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/allow_empty_hive/**/*.parquet"}}}]}},{"name":"","expression":{"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":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"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":11,"column_names":["allow_empty"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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}/dict-{type}-v2.parquet' WHERE r='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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":35,"schema_name":"","table_name":"{TEST_DIR}/dict-{type}-v2.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/dict-{type}-v2.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":["r"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"20"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT BOOL_AND(NOT bloom_filter_excludes)\nFROM parquet_bloom_probe('{TEST_DIR}/bloom_decimal.parquet', 'dec_int32', 0.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":35,"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_NOT","alias":"","query_location":16,"query_location_length":25,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":21,"column_names":["bloom_filter_excludes"]}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"query_location_length":88,"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":68,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_decimal.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dec_int32"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":121,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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}/bloom_interval_equivalent.parquet')\nWHERE iv_list[1] = 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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_interval_equivalent.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":29,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":95,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["iv_list"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 day"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}},"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 struct_value.level_1.level_2.value = 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_list.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":34,"column_names":["struct_value","level_1","level_2","value"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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', 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":63,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"r"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},"column_name_alias":[],"with_ordinality":"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 IS NOT NULL), bool_and(bloom_filter_length IS NOT NULL)\nFROM parquet_metadata('{TEST_DIR}/bloom_temporal.parquet')\nGROUP BY column_id\nORDER 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":190,"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":41,"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_NOT_NULL","alias":"","query_location":47,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":19,"column_names":["bloom_filter_offset"]}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":41,"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_NOT_NULL","alias":"","query_location":90,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":19,"column_names":["bloom_filter_length"]}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":108,"query_location_length":53,"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":125,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom_temporal.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":171,"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 count(*)\nFROM read_parquet('{TEST_DIR}/timestamp_ms_infinity_bloom.parquet')\nWHERE ts = 'infinity'::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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","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":48,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/timestamp_ms_infinity_bloom.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":90,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":2,"column_names":["ts"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":105,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":107,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"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}/bloom9.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":146,"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":74,"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":91,"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":108,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bloom9.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 parquet_scan('test/sql/copy/parquet/broken/hugefooter.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":[]}],"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_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":49,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test/sql/copy/parquet/broken/hugefooter.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 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":[]}],"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":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/cte_nested_batch_exchange.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 * FROM parquet_file_metadata('{DATA_DIR}/parquet-testing/arrow/alltypes_dictionary.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":85,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"parquet_file_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":36,"query_location_length":62,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/arrow/alltypes_dictionary.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 '{DATA_DIR}/parquet-testing/broken/broken_bigint.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":57,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/broken/broken_bigint.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/broken/broken_bigint.parquet"]}},"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.csv' 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"tbl","sample":null,"query_location":19,"query_location_length":32,"schema_name":"","table_name":"{TEST_DIR}/integers.csv","column_name_alias":["i"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/integers.csv"]}},"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 (SELECT unnest(parquet_kv_metadata, recursive:=True) FROM parquet_full_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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":41,"query_location_length":120,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":19,"column_names":["parquet_kv_metadata"]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":88,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":99,"query_location_length":61,"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":121,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/kv_metadata_test3.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":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}/af_cross_1.parquet', '{TEST_DIR}/af_cross_2.parquet', '{TEST_DIR}/af_cross_3.parquet']) WHERE a \u003e 100 AND b \u003e 3 AND c \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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":113,"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":99,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/af_cross_1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/af_cross_2.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/af_cross_3.parquet"}}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":141,"query_location_length":28,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":141,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":153,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":163,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}}]},"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}/ord_abc.parquet', '{TEST_DIR}/ord_cab.parquet']) WHERE a \u003e 100 AND b \u003e 3 AND c \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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ord_abc.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ord_cab.parquet"}}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":102,"query_location_length":28,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":102,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":114,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":124,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT f, i\nFROM string_file_first\nWHERE i\u003e'10'\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":["f"]},{"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":17,"schema_name":"","table_name":"string_file_first","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["string_file_first"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":41,"query_location_length":6,"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":43,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10"}}},"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/g*/t1.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":[]}],"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":"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":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/g*/t1.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 name from parquet_schema( '{DATA_DIR}/parquet-testing/bug13053.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":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":62,"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":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/bug13053.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 backlink_count FROM parquet_scan('{DATA_DIR}/parquet-testing/bug1589.parquet') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":14,"column_names":["backlink_count"]}],"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":"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":40,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/bug1589.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 x FROM read_parquet(['{TEST_DIR}/ubn22147_struct.parquet', '{TEST_DIR}/ubn22147_int_val.parquet'], union_by_name=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":["x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":111,"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":77,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ubn22147_struct.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":37,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ubn22147_int_val.parquet"}}}]}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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(total_compressed_size) \u003e 10000,\n SUM(total_uncompressed_size) \u003e 10000,\n SUM(total_uncompressed_size) \u003e SUM(total_compressed_size)\nFROM parquet_metadata('{TEST_DIR}/test_5209.parquet');","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":34,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":11,"query_location_length":21,"column_names":["total_compressed_size"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":50,"query_location_length":36,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":23,"column_names":["total_uncompressed_size"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":95,"query_location_length":57,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":23,"column_names":["total_uncompressed_size"]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":126,"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":130,"query_location_length":21,"column_names":["total_compressed_size"]}}]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":158,"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":175,"query_location_length":30,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/test_5209.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 '{TEST_DIR}/all_null.parquet' WHERE coalesce(n, i) = 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/all_null.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/all_null.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":57,"query_location_length":18,"left":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":57,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["n"]},{"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":74,"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 typeof(#1) FROM parquet_scan('{DATA_DIR}/parquet-testing/binary_string.parquet',binary_as_string=True) limit 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":23,"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":36,"query_location_length":50,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/binary_string.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":16,"column_names":["binary_as_string"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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/parquet_column_num_values_mismatch.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":["x"]}],"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":71,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/parquet_column_num_values_mismatch.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('{TEST_DIR}/encrypted128.parquet', encryption_config={footer_key: 'key192'})","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":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":27,"query_location_length":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/encrypted128.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":17,"column_names":["encryption_config"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"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":93,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key192"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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}/expr_prune_double.parquet' WHERE d + d \u003c 20479.5e0","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":38,"schema_name":"","table_name":"{TEST_DIR}/expr_prune_double.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/expr_prune_double.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":66,"query_location_length":17,"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":66,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["d"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":9,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":20479.5}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*)\nFROM '{TEST_DIR}/expr_prune_prefix_or.parquet'\nWHERE s ILIKE 'P000000'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":41,"schema_name":"","table_name":"{TEST_DIR}/expr_prune_prefix_or.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/expr_prune_prefix_or.parquet"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"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":69,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"P000000"}}}]},"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:] from parquet_scan('{DATA_DIR}/parquet-testing/glob*/t?.parquet', FILENAME=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":125,"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":["j"]},{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","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"]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":44,"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":57,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob*/t?.parquet"}}},{"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":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"select i, j, filename as file from parquet_scan('{DATA_DIR}/parquet-testing/glob*/t?.parquet', FILENAME=1) where file='{DATA_DIR}/parquet-testing/glob2/t1.parquet' or file='{DATA_DIR}/parquet-testing/glob/t2.parquet' 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":226,"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":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"file","query_location":13,"query_location_length":8,"column_names":["filename"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":35,"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":48,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob*/t?.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":8,"column_names":["FILENAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":113,"query_location_length":103,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":113,"query_location_length":50,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":4,"column_names":["file"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob2/t1.parquet"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":167,"query_location_length":49,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":4,"column_names":["file"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/glob/t2.parquet"}}}]},"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 '%simple%' and value = 'value2';","json":{"error":false,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":120,"query_location_length":45,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"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":120,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%simple%"}}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":149,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":5,"column_names":["value"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"value2"}}}]},"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 = '2018-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2018-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=1, 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"]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"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"]}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NULL"}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/hive_override_u/part=42/*.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/hive_override_s/part=42/*.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 * FROM (SELECT 100 + i i, 1000 + j j, 10000 + k k, 100000 + l l FROM (SELECT -i i, -j j, -k k, -l l FROM test)) ORDER BY j 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":128,"query_location_length":1,"column_names":["j"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"SUBQUERY","alias":"","sample":null,"query_location":14,"query_location_length":104,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"i","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"j","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"k","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["k"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"l","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100000}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["l"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":76,"query_location_length":41,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"i","query_location":84,"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":85,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"j","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":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"k","query_location":96,"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":97,"query_location_length":1,"column_names":["k"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":102,"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":103,"query_location_length":1,"column_names":["l"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":112,"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":[]},"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_schema('{DATA_DIR}/parquet-testing/lineitem-top10000.gzip.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":75,"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":59,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/lineitem-top10000.gzip.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 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":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":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"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 * from parquet_scan('{DATA_DIR}/parquet-testing/arrow_nan.parquet', can_have_nan := true) where f='nan';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/arrow_nan.parquet"}}},{"name":"can_have_nan","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"can_have_nan","query_location":91,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["f"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nan"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT accepted_column_gap\nFROM duckdb_logs_parsed('ParquetPrefetch')\nWHERE file_path LIKE '%cost_model_gap.parquet'","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":19,"column_names":["accepted_column_gap"]}],"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":"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":60,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ParquetPrefetch"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":9,"column_names":["file_path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%cost_model_gap.parquet"}}}]},"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 '%rgo_proj_gap.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":160,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ParquetPrefetch"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"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":"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%rgo_proj_gap.parquet"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(a + b + c + d)\nFROM read_parquet('{TEST_DIR}/rgo_ab.parquet')\nWHERE a \u003e 50 AND b \u003e 50 AND c = 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":"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["c"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["d"]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"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":44,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/rgo_ab.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":79,"query_location_length":27,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":83,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}},{"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":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select min(file_row_number), max(file_row_number), avg(file_row_number), count(*) from parquet_scan('{DATA_DIR}/parquet-testing/lineitem-top10000.gzip.parquet', file_row_number=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":"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":15,"column_names":["file_row_number"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":33,"query_location_length":15,"column_names":["file_row_number"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":55,"query_location_length":15,"column_names":["file_row_number"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":88,"query_location_length":92,"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":101,"query_location_length":59,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/lineitem-top10000.gzip.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":162,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT c FROM '{TEST_DIR}/evolution_*.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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{TEMP_DIR}/test_nested.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":32,"schema_name":"","table_name":"{TEMP_DIR}/test_nested.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEMP_DIR}/test_nested.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/unsigned_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":69,"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":51,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/unsigned_stats.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 '{DATA_DIR}/parquet-testing/arrow/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":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":56,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/arrow/int64_decimal.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/arrow/int64_decimal.parquet"]}},"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}/ubn*.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":88,"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":59,"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":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ubn*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":59,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":13,"column_names":["UNION_BY_NAME"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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:] from '{DATA_DIR}/parquet-testing/glob*/t?.parquet' 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":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["j"]},{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","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"]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"query_location_length":45,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/glob*/t?.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/glob*/t?.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, file_row_group_number from '{TEST_DIR}/rg.parquet' where i in (0, 2048, 9999) 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":100,"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":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":21,"column_names":["file_row_group_number"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"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":75,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2048}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9999}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM read_parquet('{TEST_DIR}/lists.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":40,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/lists.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":"WITH RECURSIVE t(it, accum) AS\n(\n\tSELECT 1, 0\n\tUNION ALL\n\t(\n\t\tSELECT it + 1, accum + j\n\t\tFROM t, r\n\t\tWHERE it \u003c= x\n\t)\n)\nSELECT * FROM t ORDER BY it, accum;","json":{"error":false,"statements":[{"node":{"type":"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":2,"column_names":["it"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":5,"column_names":["accum"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["it","accum"],"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":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":69,"query_location_length":2,"column_names":["it"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":77,"query_location_length":5,"column_names":["accum"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":89,"query_location_length":9,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"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":97,"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":true,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_approx":false},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":107,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":2,"column_names":["it"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["x"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["it","accum"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":127,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":134,"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 s.min, s.max, s.has_null, s.has_no_null from (select stats(col).fully_shredded.child_stats.stats s from '{TEST_DIR}/fully_shredded_list_element_with_nulls.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":127,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"s","query_location":60,"query_location_length":43,"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":"FUNCTION","type":"FUNCTION","alias":"","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":["col"]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"fully_shredded"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"child_stats"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"stats"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":111,"query_location_length":59,"schema_name":"","table_name":"{TEST_DIR}/fully_shredded_list_element_with_nulls.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/fully_shredded_list_element_with_nulls.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/aws1.snappy.parquet') limit 100","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/aws1.snappy.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 parquet_scan('{DATA_DIR}/parquet-testing/userdata1.parquet') where id \u003e 100 and id \u003c 900","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"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":34,"query_location_length":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/userdata1.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":88,"query_location_length":21,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":88,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":101,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":900}}}]},"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/date.parquet') where d \u003e= cast('1990-01-01' as 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":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":27,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/date.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":76,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1990-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":102,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},"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/map.parquet') sq limit 3;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"TABLE_FUNCTION","alias":"sq","sample":null,"query_location":14,"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":27,"query_location_length":40,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/map.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 \"{DATA_DIR}/parquet-testing/arrow/alltypes_plain.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":57,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/arrow/alltypes_plain.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/arrow/alltypes_plain.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FIRST(id) OVER w, LAST(id) 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":146,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":16,"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":78,"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":2,"column_names":["id"]}}]},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":25,"query_location_length":15,"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":78,"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":30,"query_location_length":2,"column_names":["id"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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(cc) OVER w, LAST(cc) 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":146,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":16,"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":78,"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":2,"column_names":["cc"]}}]},{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":25,"query_location_length":15,"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":78,"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":30,"query_location_length":2,"column_names":["cc"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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 time from parquet_scan('{DATA_DIR}/parquet-testing/timestamp*.parquet') where time \u003e '2020-10-06'","json":{"error":false,"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":["time"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"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":30,"query_location_length":47,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/parquet-testing/timestamp*.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":85,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":4,"column_names":["time"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-10-06"}}},"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)\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":157,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT k 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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["k"]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/union_by_name_pushdown1.parquet"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/union_by_name_pushdown2.parquet"}}}]}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_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 two AS (\n\tSELECT total_uncompressed_size AS sz\n\tFROM parquet_metadata('{TEST_DIR}/dict-two-values.parquet')\n), three AS (\n\tSELECT total_uncompressed_size AS sz\n\tFROM parquet_metadata('{TEST_DIR}/dict-three-values.parquet')\n)\nSELECT CASE WHEN two.sz * 3 \u003c three.sz * 2 THEN 1 ELSE 0 END\nFROM two, three;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"two","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":"sz","query_location":22,"query_location_length":23,"column_names":["total_uncompressed_size"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":58,"query_location_length":54,"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":75,"query_location_length":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/dict-two-values.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}}},{"key":"three","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":"sz","query_location":135,"query_location_length":23,"column_names":["total_uncompressed_size"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":171,"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":188,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/dict-three-values.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}}}]},"select_list":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":237,"query_location_length":53,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":247,"query_location_length":25,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":247,"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":247,"query_location_length":6,"column_names":["two","sz"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":260,"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":260,"query_location_length":8,"column_names":["three","sz"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":271,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":278,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":285,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":291,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":296,"query_location_length":3,"schema_name":"","table_name":"two","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["two"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":301,"query_location_length":5,"schema_name":"","table_name":"three","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["three"]}},"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 items FROM read_parquet('{TEMP_DIR}/list_union.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":73,"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":5,"column_names":["items"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":18,"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":31,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/list_union.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 '{TEST_DIR}/compress_level2.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":36,"schema_name":"","table_name":"{TEST_DIR}/compress_level2.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/compress_level2.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 FROM parquet_metadata('{TEST_DIR}/enum_stats_single_1.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":58,"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":40,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/enum_stats_single_1.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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/my.parquet"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"F"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{TEST_DIR}/signed.parquet' WHERE d=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":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_EQUAL","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":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(d) FROM '{TEST_DIR}/timestamps.parquet' 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":31,"schema_name":"","table_name":"{TEST_DIR}/timestamps.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/timestamps.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}/unsigned.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":29,"schema_name":"","table_name":"{TEST_DIR}/unsigned.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/unsigned.parquet"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":57,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM '{TEST_DIR}/overwrite.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":30,"schema_name":"","table_name":"{TEST_DIR}/overwrite.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/overwrite.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('{TEMP_DIR}/userdata1-uncompressed.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":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":27,"query_location_length":43,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/userdata1-uncompressed.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 '{TEST_DIR}/stats.parquet' WHERE i 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":26,"schema_name":"","table_name":"{TEST_DIR}/stats.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/stats.parquet"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":56,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"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 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/escaped_partitions/**/*.parquet"}}}]},"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":"WITH per_file AS (\n\tSELECT\n\t\tfilename,\n\t\tv,\n\t\tlag(v) OVER (PARTITION BY filename ORDER BY file_row_number) AS prev_v\n\tFROM read_parquet(\n\t\t'{TEST_DIR}/delayed_ordered/**/*.parquet',\n\t\tfilename = true,\n\t\tfile_row_number = true,\n\t\thive_partitioning = true\n\t)\n)\nSELECT count(*)\nFROM per_file\nWHERE prev_v IS NOT NULL AND prev_v \u003e v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"per_file","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":8,"column_names":["filename"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]},{"class":"WINDOW","type":"WINDOW_LAG","alias":"prev_v","query_location":46,"query_location_length":60,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":8,"column_names":["filename"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":15,"column_names":["file_row_number"]}}],"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":50,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":123,"query_location_length":133,"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":139,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/delayed_ordered/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":184,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":203,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":229,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":229,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":249,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"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":266,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":280,"query_location_length":8,"schema_name":"","table_name":"per_file","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["per_file"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":295,"query_location_length":33,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":302,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":295,"query_location_length":6,"column_names":["prev_v"]}]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":318,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":318,"query_location_length":6,"column_names":["prev_v"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":327,"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 part_col, value_col, value2_col FROM '{TEST_DIR}/partitioned8/part_col=0/*.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":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}/partitioned8/part_col=0/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/partitioned8/part_col=0/*.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 glob('{TEST_DIR}/ordered_only_empty/*.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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":47,"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":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ordered_only_empty/*.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":"WITH per_file AS (\n\tSELECT\n\t\tfilename,\n\t\tv,\n\t\tlag(v) OVER (PARTITION BY filename ORDER BY file_row_number) AS prev_v\n\tFROM read_parquet(\n\t\t'{TEST_DIR}/partitioned_early_finalize_ordered/**/*.parquet',\n\t\tfilename = true,\n\t\tfile_row_number = true,\n\t\thive_partitioning = true\n\t)\n)\nSELECT count(*)\nFROM per_file\nWHERE prev_v IS NOT NULL AND prev_v \u003e v;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"per_file","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":8,"column_names":["filename"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]},{"class":"WINDOW","type":"WINDOW_LAG","alias":"prev_v","query_location":46,"query_location_length":60,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":8,"column_names":["filename"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":15,"column_names":["file_row_number"]}}],"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":50,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":123,"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":139,"query_location_length":60,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/partitioned_early_finalize_ordered/**/*.parquet"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":203,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":214,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":222,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":222,"query_location_length":15,"column_names":["file_row_number"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":240,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":248,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":17,"column_names":["hive_partitioning"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":268,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"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":285,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":299,"query_location_length":8,"schema_name":"","table_name":"per_file","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["per_file"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":314,"query_location_length":33,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":321,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":314,"query_location_length":6,"column_names":["prev_v"]}]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":337,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":337,"query_location_length":6,"column_names":["prev_v"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":346,"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 partition, COUNT(DISTINCT col2)\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":20,"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":33,"query_location_length":4,"column_names":["col2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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":69,"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(*) FROM glob('{TEST_DIR}/ordered_partitioned/p=0/data_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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":57,"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":51,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ordered_partitioned/p=0/data_1.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":[]}],"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"]}}]}],"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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 FROM '{TEST_DIR}/no-part-cols9/part_col=0/value_col=*/value2_col=*/*.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":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}/no-part-cols9/part_col=0/value_col=*/value2_col=*/*.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/no-part-cols9/part_col=0/value_col=*/value2_col=*/*.parquet"]}},"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 f FROM GLOB('{TEST_DIR}/per_thread_output/data_*.parquet') ORDER BY f","json":{"error":false,"statements":[{"node":{"type":"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":["f"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"f","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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":27,"query_location_length":51,"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":32,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/per_thread_output/data_*.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 glob('{TEST_DIR}/row_groups_per_file3/*.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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":49,"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":43,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/row_groups_per_file3/*.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(*) BETWEEN 1 AND 10 FROM glob('{TEST_DIR}/row_groups_per_file9/*.parquet')","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":16,"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":[]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":38,"query_location_length":49,"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":43,"query_location_length":43,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/row_groups_per_file9/*.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 db2.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":8,"schema_name":"db2","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db2","test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl6;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"tbl6","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl6"]}},"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 segment_type ILIKE 'INTEGER' LIMIT 3","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"T"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"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":55,"query_location_length":12,"column_names":["segment_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]},"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\n del AS (DELETE FROM t WHERE i = 1 RETURNING i),\n remaining AS (SELECT i FROM t)\nSELECT * FROM remaining;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"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":37,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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"]}},"using_clauses":[],"returning_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]}]}}},{"key":"remaining","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":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}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":99,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":106,"query_location_length":9,"schema_name":"","table_name":"remaining","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["remaining"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT * FROM t_aux;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"t_aux","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_aux"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM table2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":"with recursive t as MATERIALIZED (select 1 as x except 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":111,"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":"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":"x","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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":79,"query_location_length":5,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":93,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM cte_order_sorted_copy LIMIT 5;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":21,"schema_name":"","table_name":"cte_order_sorted_copy","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_order_sorted_copy"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*)\nFROM cte_parallel_sparse current_row\nJOIN cte_parallel_sparse previous_row\n\tON current_row.rowid = previous_row.rowid + 1\nWHERE current_row.i \u003c= previous_row.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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":53,"query_location_length":84,"left":{"type":"BASE_TABLE","alias":"current_row","sample":null,"query_location":21,"query_location_length":31,"schema_name":"","table_name":"cte_parallel_sparse","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_parallel_sparse"]}},"right":{"type":"BASE_TABLE","alias":"previous_row","sample":null,"query_location":58,"query_location_length":32,"schema_name":"","table_name":"cte_parallel_sparse","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte_parallel_sparse"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":95,"query_location_length":42,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":17,"column_names":["current_row","rowid"]},"right":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":18,"column_names":["previous_row","rowid"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":144,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":13,"column_names":["current_row","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":14,"column_names":["previous_row","i"]}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 _.x\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":198,"query_location_length":1,"column_names":["x"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"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":176,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":57,"query_location_length":126,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"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},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":3,"column_names":["_","x"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":149,"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":159,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":174,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":181,"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 l JOIN c r USING (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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":82,"query_location_length":18,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":78,"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":87,"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":["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":"WITH l AS MATERIALIZED (SELECT i FROM range(10000) t(i)),\n r AS MATERIALIZED (SELECT i FROM range(10000) t(i))\nSELECT count(*) FROM (\n SELECT l.i FROM l JOIN r USING (i)\n UNION ALL\n SELECT l.i FROM l JOIN r USING (i)\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"l","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"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":"r","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":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":96,"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":102,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"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":122,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":136,"query_location_length":89,"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":147,"query_location_length":3,"column_names":["l","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":158,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":156,"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":163,"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":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":196,"query_location_length":3,"column_names":["l","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":207,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":205,"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":212,"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":"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":"with cte1 as MATERIALIZED (Select i as j from a) select * from (with cte2 as MATERIALIZED (select max(j) as j from cte1) select * from cte2) f","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":"SUBQUERY","alias":"f","sample":null,"query_location":63,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte2","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":98,"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":102,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":115,"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}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":128,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":135,"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},"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 cte1 as MATERIALIZED (Select i as j from a) select * from cte1 where j = (select max(j) from cte1 as 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":[]},"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":"BASE_TABLE","alias":"","sample":null,"query_location":63,"query_location_length":4,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":37,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["j"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":78,"query_location_length":33,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"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":90,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"cte2","sample":null,"query_location":98,"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},"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 t(x) AS MATERIALIZED (SELECT 1) 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":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"STAR","type":"STAR","alias":"","query_location":44,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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 t(x) AS MATERIALIZED (SELECT 1),\n u(x) AS MATERIALIZED (SELECT 2)\n SELECT *\n FROM u FULL OUTER JOIN t ON TRUE;","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":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}},{"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":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"STAR","type":"STAR","alias":"","query_location":84,"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":95,"query_location_length":25,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"query_location_length":1,"schema_name":"","table_name":"u","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["u"]}},"right":{"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"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 * FROM ctenames;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"ctenames","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ctenames"]}},"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 x+1 from t where x \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":116,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":59,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"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":76,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":90,"query_location_length":2,"column_names":["zz"]}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":98,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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, unused) AS (\n\tVALUES (1, 0::BIGINT)\n\tUNION ALL\n\tSELECT i + 1, nextval('recursive_member_pruning_sequence') FROM t WHERE i \u003c 3\n)\nSELECT max(i), currval('recursive_member_pruning_sequence') FROM t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["i","unused"],"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}]]},"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":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":75,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"query_location_length":44,"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":90,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"recursive_member_pruning_sequence"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":132,"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":140,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["i","unused"],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":155,"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":159,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"query_location_length":44,"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":171,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"recursive_member_pruning_sequence"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":213,"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 ins AS (INSERT INTO t1 VALUES (1, 10), (2, 20)),\n upd AS (UPDATE t1 SET j = j + 1)\nSELECT 1;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[],"on_conflict_info":null,"table_ref":null,"default_values":false,"column_order":"INSERT_BY_POSITION"}}},{"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":74,"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":[],"set_info":{"condition":null,"columns":["j"],"expressions":[{"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":85,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]},"prioritize_table_when_binding":false}}}]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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)\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]},"prioritize_table_when_binding":false}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":129,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":136,"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 (\n INSERT INTO base SELECT i + 1 FROM base_view 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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":9,"schema_name":"","table_name":"base_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["base_view"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"columns":[],"table":"base","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"}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":84,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":91,"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 RECURSIVE cte AS (SELECT 42) 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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},{"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"]}}]},{"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"]}}]}],"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":"WITH RECURSIVE t(y, arr) AS MATERIALIZED\n(\n SELECT 1, array[1,2,3,4,5,6]\n UNION ALL\n SELECT y+1, arr[:loc]\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_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":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":55,"query_location_length":18,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":105,"query_location_length":6,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":3,"column_names":["arr"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":3,"column_names":["loc"]}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":114,"query_location_length":11,"left":{"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"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":124,"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":134,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":134,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":149,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":1,"column_names":["y"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"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":166,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":173,"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 parents_tab (id , value , parent )\nas MATERIALIZED (values (1, 1, 2), (2, 2, 4), (3, 1, 4), (4, 2, -1), (5, 1, 2), (6, 2, 7), (7, 1, -1)\n),\nparents_tab2(id , value , parent )\nas MATERIALIZED (values (1, 1, 2), (2, 2, 4), (3, 1, 4), (4, 2, -1), (5, 1, 2), (6, 2, 7), (7, 1, -1)\n),\nparents as MATERIALIZED (\n select * from parents_tab\n union all\n select id, value+2, parent from parents_tab2\n)\nselect * from parents ORDER BY id, value, parent;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":437,"query_location_length":2,"column_names":["id"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":441,"query_location_length":5,"column_names":["value"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":448,"query_location_length":6,"column_names":["parent"]}}]}],"cte_map":{"map":[{"key":"parents_tab","value":{"aliases":["id","value","parent"],"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":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"parents_tab2","value":{"aliases":["id","value","parent"],"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":205,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":208,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":216,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":230,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":238,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":241,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":250,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":253,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":261,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":264,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":272,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":275,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":278,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"parents","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_ALWAYS","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":"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":"BASE_TABLE","alias":"","sample":null,"query_location":329,"query_location_length":11,"schema_name":"","table_name":"parents_tab","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parents_tab"]}},"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":366,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":375,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":370,"query_location_length":5,"column_names":["value"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":376,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":379,"query_location_length":6,"column_names":["parent"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":391,"query_location_length":12,"schema_name":"","table_name":"parents_tab2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parents_tab2"]}},"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":413,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":420,"query_location_length":7,"schema_name":"","table_name":"parents","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parents"]}},"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 _.x\n UNION\n SELECT t1.y + t2.y + _.x\n FROM t AS t1, t AS t2\n WHERE t1.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":222,"query_location_length":1,"column_names":["x"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"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":200,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":57,"query_location_length":150,"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":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"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},"right":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":133,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":4,"column_names":["t1","y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":4,"column_names":["t2","y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":3,"column_names":["_","x"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":148,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":155,"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":164,"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":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":180,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":180,"query_location_length":4,"column_names":["t1","y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":198,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":[]},"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(i) AS MATERIALIZED (VALUES (1), (2), (2), (NULL)), b(i) AS (VALUES (2), (3), (NULL))\nSELECT count(*) FROM c SEMI 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]]},"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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":115,"query_location_length":22,"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":125,"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":130,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":3,"column_names":["c","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":3,"column_names":["b","i"]}},"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":"WITH c AS MATERIALIZED (SELECT i FROM range(1000) t(i))\nSELECT count(*) FROM c l JOIN c r USING (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":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":44,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"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":63,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":81,"query_location_length":18,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":77,"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":86,"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":["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":"with cte1(xxx) as MATERIALIZED (Select i as j from a) select x from cte1 t1(x);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte1","value":{"aliases":["xxx"],"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":39,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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":61,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":68,"query_location_length":10,"schema_name":"","table_name":"cte1","column_name_alias":["x"],"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":[]}]}} +{"sql":"with cte (a) as MATERIALIZED (\n select 1\n)\nselect\n a as alias1,\n alias1 as alias2\nfrom cte\nwhere alias2 \u003e 0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte","value":{"aliases":["a"],"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"alias1","query_location":57,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"alias2","query_location":74,"query_location_length":6,"column_names":["alias1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":96,"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":106,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":6,"column_names":["alias2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH d AS MATERIALIZED (\n SELECT\n i AS c00,\n i AS c01, i AS c02, i AS c03, i AS c04, i AS c05, i AS c06, i AS c07,\n i AS c08, i AS c09, i AS c10, i AS c11, i AS c12, i AS c13, i AS c14, i AS c15\n FROM range(300000) tbl(i)\n)\nSELECT (SELECT sum(c00 + c01 + c02 + c03 + c04 + c05 + c06 + c07 +\n c08 + c09 + c10 + c11 + c12 + c13 + c14 + c15)\n FROM (SELECT * FROM d LIMIT 10)),\n (SELECT sum(c00 + c01 + c02 + c03 + c04 + c05 + c06 + c07 +\n c08 + c09 + c10 + c11 + c12 + c13 + c14 + c15)\n FROM (SELECT * FROM d LIMIT 10));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"d","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":"c00","query_location":38,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c01","query_location":52,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c02","query_location":62,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c03","query_location":72,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c04","query_location":82,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c05","query_location":92,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c06","query_location":102,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c07","query_location":112,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c08","query_location":126,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c09","query_location":136,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c10","query_location":146,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c11","query_location":156,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c12","query_location":166,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c13","query_location":176,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c14","query_location":186,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"c15","query_location":196,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":212,"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":218,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":300000}}}]},"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":242,"query_location_length":166,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":250,"query_location_length":117,"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":361,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":355,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":349,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":343,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":337,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":331,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":325,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":300,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":294,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":288,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":282,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":276,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"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":264,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_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":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":254,"query_location_length":3,"column_names":["c00"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":260,"query_location_length":3,"column_names":["c01"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":266,"query_location_length":3,"column_names":["c02"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":272,"query_location_length":3,"column_names":["c03"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":278,"query_location_length":3,"column_names":["c04"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":284,"query_location_length":3,"column_names":["c05"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":290,"query_location_length":3,"column_names":["c06"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":3,"column_names":["c07"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":321,"query_location_length":3,"column_names":["c08"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":327,"query_location_length":3,"column_names":["c09"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":333,"query_location_length":3,"column_names":["c10"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":339,"query_location_length":3,"column_names":["c11"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":345,"query_location_length":3,"column_names":["c12"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":351,"query_location_length":3,"column_names":["c13"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":357,"query_location_length":3,"column_names":["c14"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":363,"query_location_length":3,"column_names":["c15"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":381,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":404,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":389,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":396,"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"},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":417,"query_location_length":166,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":425,"query_location_length":117,"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":536,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":524,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":518,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":512,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":506,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":500,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":475,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":469,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":463,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":457,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":451,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":445,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":439,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":433,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":429,"query_location_length":3,"column_names":["c00"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":435,"query_location_length":3,"column_names":["c01"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":441,"query_location_length":3,"column_names":["c02"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":447,"query_location_length":3,"column_names":["c03"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":453,"query_location_length":3,"column_names":["c04"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":459,"query_location_length":3,"column_names":["c05"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":465,"query_location_length":3,"column_names":["c06"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":471,"query_location_length":3,"column_names":["c07"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":496,"query_location_length":3,"column_names":["c08"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":502,"query_location_length":3,"column_names":["c09"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":508,"query_location_length":3,"column_names":["c10"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":514,"query_location_length":3,"column_names":["c11"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":520,"query_location_length":3,"column_names":["c12"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":526,"query_location_length":3,"column_names":["c13"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":532,"query_location_length":3,"column_names":["c14"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":538,"query_location_length":3,"column_names":["c15"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":556,"query_location_length":26,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":579,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":564,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":571,"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 collatz(x, t, steps) AS MATERIALIZED\n(\n SELECT x, x, 0\n FROM (WITH RECURSIVE n(t) AS (SELECT 1 UNION ALL SELECT t+1 FROM n WHERE t \u003c 10) SELECT * FROM n) AS _(x)\n UNION ALL\n (SELECT x, CASE WHEN t%2 = 1 THEN t * 3 + p ELSE t / 2 END, steps + p\n FROM collatz, (WITH RECURSIVE n(t) AS (SELECT 1 UNION ALL SELECT t+1 FROM n WHERE t \u003c 1) SELECT * FROM n) AS _(p)\n WHERE t \u003c\u003e 1)\n)\nSELECT * FROM collatz WHERE t = 1\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":449,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[{"key":"collatz","value":{"aliases":["x","t","steps"],"materialized":"CTE_MATERIALIZE_ALWAYS","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"collatz","union_all":true,"left":{"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":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],"from_table":{"type":"SUBQUERY","alias":"_","sample":null,"query_location":80,"query_location_length":92,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"n","value":{"aliases":["t"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"n","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":131,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":140,"query_location_length":1,"schema_name":"","table_name":"n","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["n"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":148,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":1,"column_names":["t"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["t"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":163,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":170,"query_location_length":1,"schema_name":"","table_name":"n","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["n"]}},"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":205,"query_location_length":1,"column_names":["x"]},{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":208,"query_location_length":47,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":218,"query_location_length":7,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":218,"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":218,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":224,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":237,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":231,"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":231,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":239,"query_location_length":1,"column_names":["p"]}}]}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":246,"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":246,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":250,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":263,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":257,"query_location_length":5,"column_names":["steps"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":1,"column_names":["p"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":270,"query_location_length":115,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":277,"query_location_length":7,"schema_name":"","table_name":"collatz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collatz"]}},"right":{"type":"SUBQUERY","alias":"_","sample":null,"query_location":286,"query_location_length":91,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"n","value":{"aliases":["t"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"n","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":318,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":338,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":339,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":346,"query_location_length":1,"schema_name":"","table_name":"n","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["n"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":354,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":354,"query_location_length":1,"column_names":["t"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":358,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["t"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":368,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":375,"query_location_length":1,"schema_name":"","table_name":"n","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["n"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["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":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":396,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":396,"query_location_length":1,"column_names":["t"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":401,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["x","t","steps"],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":413,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":420,"query_location_length":7,"schema_name":"","table_name":"collatz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["collatz"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":434,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":434,"query_location_length":1,"column_names":["t"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":438,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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 min(a1.x) from t a1, t a2;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"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":100,"query_location_length":4,"column_names":["a1","x"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":106,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"a1","sample":null,"query_location":111,"query_location_length":4,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"a2","sample":null,"query_location":117,"query_location_length":4,"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 recursive t as MATERIALIZED (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":145,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":49,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":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":"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":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"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":80,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]}],"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":{"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":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":127,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":134,"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(x) AS (\n\tVALUES (1), (2), (3)\n\tUNION ALL\n\tSELECT x + (SELECT a FROM (VALUES (1), (2), (3)) df(a) LIMIT 1)\n\tFROM r\n\tWHERE x \u003c 4\n)\nSELECT * FROM r;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"r","value":{"aliases":["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":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]]},"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":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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":70,"query_location_length":52,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"SUBQUERY","alias":"df","sample":null,"query_location":85,"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":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"child":null,"comparison_type":"INVALID"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"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":138,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"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":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":"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(i, payload, unused) AS (\n\tSELECT 1, 10, repeat('x', 1000)\n\tUNION ALL\n\t(\n\t\tWITH materialized_state AS MATERIALIZED (\n\t\t\tSELECT i, payload, unused FROM t\n\t\t),\n\t\tunion_state AS (\n\t\t\tSELECT * FROM materialized_state\n\t\t\tUNION ALL\n\t\t\tSELECT * FROM materialized_state WHERE false\n\t\t)\n\t\tSELECT max(i) + 1, max(payload) + 10, max(unused) || 'y'\n\t\tFROM union_state\n\t\tHAVING max(i) \u003c 3\n\t)\n)\nSELECT i, payload 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":431,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["i","payload","unused"],"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":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"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":64,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":[{"key":"materialized_state","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":143,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":7,"column_names":["payload"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":6,"column_names":["unused"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":167,"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}}},{"key":"union_state","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":"STAR","type":"STAR","alias":"","query_location":203,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":210,"query_location_length":18,"schema_name":"","table_name":"materialized_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["materialized_state"]}},"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":252,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":259,"query_location_length":18,"schema_name":"","table_name":"materialized_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["materialized_state"]}},"where_clause":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":284,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","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":"FUNCTION","type":"FUNCTION","alias":"","query_location":303,"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":307,"query_location_length":1,"column_names":["i"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":312,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":328,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":315,"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":319,"query_location_length":7,"column_names":["payload"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":330,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":334,"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":334,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":338,"query_location_length":6,"column_names":["unused"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":349,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"y"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":360,"query_location_length":11,"schema_name":"","table_name":"union_state","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["union_state"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":381,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":381,"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":385,"query_location_length":1,"column_names":["i"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":390,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"sample":null,"qualify":null},"aliases":["i","payload","unused"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":404,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":407,"query_location_length":7,"column_names":["payload"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":420,"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 s.s_name, COUNT(*) AS numwait\nFROM supplier AS s, nation AS n, (SELECT *\n FROM orders\n WHERE o_orderstatus = 'F'\n ORDER BY o_orderkey) AS o\nWHERE o.o_orderstatus = 'F'\nAND s.s_nationkey = n.n_nationkey\nAND\n(WITH RECURSIVE \"@loop\" (\"$label\", \"$output\", \"0\", \"1\") AS (\n (SELECT CAST('$' AS VARCHAR) AS \"$label\", CAST(NULL AS BOOLEAN) AS \"$output\", CAST(o.o_orderkey AS BIGINT) AS \"0\", CAST(s.s_suppkey AS BIGINT) AS \"1\")\n UNION ALL\n (WITH \"0\" (suppkey, orderkey) AS (SELECT \"@loop\".\"1\" AS suppkey, \"@loop\".\"0\" AS orderkey FROM \"@loop\" WHERE (\"@loop\".\"$label\" IS NOT DISTINCT FROM '$')),\n \"1\" (orderkey, suppkey, found) AS (SELECT \"0\".orderkey AS orderkey, \"0\".suppkey AS suppkey, CAST(NULL AS BOOLEAN) AS found FROM \"0\" AS \"0\"(suppkey, orderkey)),\n \"2\" (suppkey, orderkey, lis) AS (SELECT \"1\".suppkey AS suppkey, \"1\".orderkey AS orderkey, CAST(NULL AS BIGINT[]) AS lis FROM \"1\" AS \"1\"(orderkey, suppkey, found)),\n \"3\" (orderkey, suppkey, li) AS (SELECT \"2\".orderkey AS orderkey, \"2\".suppkey AS suppkey, CAST(NULL AS BIGINT) AS li FROM \"2\" AS \"2\"(suppkey, orderkey, lis)),\n \"4\" (suppkey, orderkey, blame) AS (SELECT \"3\".suppkey AS suppkey, \"3\".orderkey AS orderkey, CAST('f' AS BOOLEAN) AS blame FROM \"3\" AS \"3\"(orderkey, suppkey, li)),\n \"5\" (orderkey, blame, suppkey, multi) AS (SELECT \"4\".orderkey AS orderkey, \"4\".blame AS blame, \"4\".suppkey AS suppkey, CAST('f' AS BOOLEAN) AS multi FROM \"4\" AS \"4\"(suppkey, orderkey, blame)),\n \"6\" (suppkey, multi, blame, lis) AS (SELECT \"5\".suppkey AS suppkey, \"5\".multi AS multi, \"5\".blame AS blame, (SELECT CAST((SELECT * FROM (SELECT array_agg(l.l_suppkey) FROM lineitem AS l WHERE (l.l_orderkey = \"5\".orderkey)) AS subquery LIMIT 1) AS BIGINT[])) AS lis FROM \"5\" AS \"5\"(orderkey, blame, suppkey, multi)),\n \"7\" (blame, multi) AS (SELECT \"6\".blame AS blame, (SELECT CAST((SELECT (\"6\".multi OR ((\"6\".lis[1]) != \"6\".suppkey))) AS BOOLEAN)) AS multi FROM \"6\" AS \"6\"(suppkey, multi, blame, lis)),\n \"8\" (return_value) AS (SELECT (\"7\".multi AND \"7\".blame) AS return_value FROM \"7\" AS \"7\"(blame, multi)),\n \"9\" (\"$output\") AS (SELECT \"8\".return_value AS \"$output\" FROM \"8\" AS \"8\"(return_value))\n SELECT CAST(NULL AS VARCHAR) AS \"$label\", CAST(\"9\".\"$output\" AS BOOLEAN) AS \"$output\", CAST(NULL AS BIGINT) AS \"0\", CAST(NULL AS BIGINT) AS \"1\" FROM \"9\" AS \"9\"(\"$output\")))\n SELECT \"@loop\".\"$output\" FROM \"@loop\" AS \"@loop\"(\"$label\", \"$output\", \"0\", \"1\") WHERE (\"@loop\".\"$label\" IS NULL)\n)\nGROUP BY s.s_name\nORDER BY numwait DESC, s_name;","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":2643,"query_location_length":7,"column_names":["numwait"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2657,"query_location_length":6,"column_names":["s_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["s","s_name"]},{"class":"FUNCTION","type":"FUNCTION","alias":"numwait","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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":216,"left":{"type":"JOIN","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"left":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":44,"query_location_length":13,"schema_name":"","table_name":"supplier","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["supplier"]}},"right":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":59,"query_location_length":11,"schema_name":"","table_name":"nation","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nation"]}},"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":"o","sample":null,"query_location":72,"query_location_length":176,"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":237,"query_location_length":10,"column_names":["o_orderkey"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":80,"query_location_length":1,"relation_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":6,"schema_name":"","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":13,"column_names":["o_orderstatus"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"F"}}},"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":261,"query_location_length":2354,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":261,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":15,"column_names":["o","o_orderstatus"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":279,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"F"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":290,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":290,"query_location_length":13,"column_names":["s","s_nationkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":306,"query_location_length":13,"column_names":["n","n_nationkey"]}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":324,"query_location_length":2291,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"@loop","value":{"aliases":["$label","$output","0","1"],"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":395,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":400,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":407,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"$output","query_location":429,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":434,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":442,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"0","query_location":465,"query_location_length":28,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":470,"query_location_length":12,"column_names":["o","o_orderkey"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":486,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"1","query_location":502,"query_location_length":27,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":507,"query_location_length":11,"column_names":["s","s_suppkey"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":522,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":[{"key":"0","value":{"aliases":["suppkey","orderkey"],"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":"suppkey","query_location":596,"query_location_length":11,"column_names":["@loop","1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"orderkey","query_location":620,"query_location_length":11,"column_names":["@loop","0"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":649,"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":664,"query_location_length":41,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":664,"query_location_length":16,"column_names":["@loop","$label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":702,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"1","value":{"aliases":["orderkey","suppkey","found"],"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":"orderkey","query_location":759,"query_location_length":12,"column_names":["0","orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"suppkey","query_location":785,"query_location_length":11,"column_names":["0","suppkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"found","query_location":809,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":814,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":822,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"0","sample":null,"query_location":845,"query_location_length":29,"schema_name":"","table_name":"0","column_name_alias":["suppkey","orderkey"],"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":["suppkey","orderkey","lis"],"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":"suppkey","query_location":925,"query_location_length":11,"column_names":["1","suppkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"orderkey","query_location":949,"query_location_length":12,"column_names":["1","orderkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"lis","query_location":975,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":980,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":988,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"1","sample":null,"query_location":1010,"query_location_length":36,"schema_name":"","table_name":"1","column_name_alias":["orderkey","suppkey","found"],"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}}},{"key":"3","value":{"aliases":["orderkey","suppkey","li"],"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":"orderkey","query_location":1096,"query_location_length":12,"column_names":["2","orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"suppkey","query_location":1122,"query_location_length":11,"column_names":["2","suppkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"li","query_location":1146,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1151,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1159,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"2","sample":null,"query_location":1178,"query_location_length":34,"schema_name":"","table_name":"2","column_name_alias":["suppkey","orderkey","lis"],"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":["suppkey","orderkey","blame"],"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":"suppkey","query_location":1265,"query_location_length":11,"column_names":["3","suppkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"orderkey","query_location":1289,"query_location_length":12,"column_names":["3","orderkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"blame","query_location":1315,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1320,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"f"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1327,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"3","sample":null,"query_location":1350,"query_location_length":33,"schema_name":"","table_name":"3","column_name_alias":["orderkey","suppkey","li"],"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":["orderkey","blame","suppkey","multi"],"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":"orderkey","query_location":1443,"query_location_length":12,"column_names":["4","orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"blame","query_location":1469,"query_location_length":9,"column_names":["4","blame"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"suppkey","query_location":1489,"query_location_length":11,"column_names":["4","suppkey"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"multi","query_location":1513,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1518,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"f"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1525,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"4","sample":null,"query_location":1548,"query_location_length":36,"schema_name":"","table_name":"4","column_name_alias":["suppkey","orderkey","blame"],"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":["suppkey","multi","blame","lis"],"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":"suppkey","query_location":1639,"query_location_length":11,"column_names":["5","suppkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"multi","query_location":1663,"query_location_length":9,"column_names":["5","multi"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"blame","query_location":1683,"query_location_length":9,"column_names":["5","blame"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"lis","query_location":1703,"query_location_length":149,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1711,"query_location_length":140,"child":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1716,"query_location_length":122,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1836,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":1724,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"SUBQUERY","alias":"subquery","sample":null,"query_location":1731,"query_location_length":86,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1739,"query_location_length":22,"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":1749,"query_location_length":11,"column_names":["l","l_suppkey"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":1767,"query_location_length":13,"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":1788,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1788,"query_location_length":12,"column_names":["l","l_orderkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1803,"query_location_length":12,"column_names":["5","orderkey"]}},"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"},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":1842,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":"5","sample":null,"query_location":1865,"query_location_length":43,"schema_name":"","table_name":"5","column_name_alias":["orderkey","blame","suppkey","multi"],"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}}},{"key":"7","value":{"aliases":["blame","multi"],"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":"blame","query_location":1949,"query_location_length":9,"column_names":["6","blame"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"multi","query_location":1969,"query_location_length":79,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1977,"query_location_length":70,"child":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":1982,"query_location_length":53,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":1991,"query_location_length":42,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1991,"query_location_length":9,"column_names":["6","multi"]},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":2005,"query_location_length":27,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":2013,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2006,"query_location_length":7,"column_names":["6","lis"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2014,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2021,"query_location_length":11,"column_names":["6","suppkey"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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"},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2039,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":"6","sample":null,"query_location":2063,"query_location_length":38,"schema_name":"","table_name":"6","column_name_alias":["suppkey","multi","blame","lis"],"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}}},{"key":"8","value":{"aliases":["return_value"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"return_value","query_location":2143,"query_location_length":23,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2143,"query_location_length":9,"column_names":["7","multi"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2157,"query_location_length":9,"column_names":["7","blame"]}]}],"from_table":{"type":"BASE_TABLE","alias":"7","sample":null,"query_location":2189,"query_location_length":24,"schema_name":"","table_name":"7","column_name_alias":["blame","multi"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["7"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"9","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":"$output","query_location":2251,"query_location_length":16,"column_names":["8","return_value"]}],"from_table":{"type":"BASE_TABLE","alias":"8","sample":null,"query_location":2286,"query_location_length":24,"schema_name":"","table_name":"8","column_name_alias":["return_value"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["8"]}},"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":"$label","query_location":2327,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2332,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2340,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"$output","query_location":2362,"query_location_length":30,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2367,"query_location_length":13,"column_names":["9","$output"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2384,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"0","query_location":2407,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2412,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2420,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"1","query_location":2436,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2441,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":2449,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"9","sample":null,"query_location":2469,"query_location_length":21,"schema_name":"","table_name":"9","column_name_alias":["$output"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["9"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["$label","$output","0","1"],"key_targets":[]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2508,"query_location_length":17,"column_names":["@loop","$output"]}],"from_table":{"type":"BASE_TABLE","alias":"@loop","sample":null,"query_location":2531,"query_location_length":49,"schema_name":"","table_name":"@loop","column_name_alias":["$label","$output","0","1"],"catalog_name":"","at_clause":null,"qualified_name":{"path":["@loop"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":2605,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2588,"query_location_length":16,"column_names":["@loop","$label"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"child":null,"comparison_type":"INVALID"}]},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":2625,"query_location_length":8,"column_names":["s","s_name"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT info.recursive_pipeline_execute_work_ns::UBIGINT \u003e 0,\n info.invariant_build_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":52,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":39,"column_names":["info","recursive_pipeline_execute_work_ns"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":68,"query_location_length":49,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":104,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":36,"column_names":["info","invariant_build_execute_work_ns"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":123,"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":142,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":168,"query_location_length":57,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":168,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalRecursiveCTE"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":203,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"EpochSummary"}}}]},"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 (list(c)) AS (\n\tSELECT 1, 4, NULL\n\t\tUNION\n\tSELECT a, b - 1, b\n\tFROM tbl\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":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":42,"query_location_length":1,"column_names":["c"]}}]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":86,"query_location_length":1,"column_names":["a"]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"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_GREATERTHAN","alias":"","query_location":115,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":5,"column_names":["tbl","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["a","b","c"],"key_targets":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":42,"query_location_length":1,"column_names":["c"]}}]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":133,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":"WITH RECURSIVE tbl(key, iter, c) USING KEY (key, count() AS iter, count(c)) AS (\n\tSELECT 1, 1, 1\n\t\tUNION\n\tSELECT key, iter + 1, 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","c"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"iter","query_location":49,"query_location_length":7,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":72,"query_location_length":1,"column_names":["c"]}}]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":113,"query_location_length":3,"column_names":["key"]},{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":4,"column_names":["iter"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":1,"column_names":["c"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":136,"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":147,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":4,"column_names":["iter"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":["key","iter","c"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"iter","query_location":49,"query_location_length":7,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":72,"query_location_length":1,"column_names":["c"]}}]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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, avg(b) :: INT) AS (\n\tSELECT 1, 1\n \t\tUNION\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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":43,"query_location_length":1,"column_names":["b"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":93,"query_location_length":1,"column_names":["a"]},{"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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":110,"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":123,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":43,"query_location_length":1,"column_names":["b"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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(key, id, acc) USING KEY (key, approx_count_distinct(acc)) AS (\n\tSELECT 1, id, cname\n\tFROM customers\n\tWHERE id = 1\n\t\tUNION\n\tSELECT key, tbl.id + 1, cname\n\tFROM tbl\n\tJOIN customers AS c ON c.id = tbl.id + 1)\nselect acc from tbl;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"tbl","value":{"aliases":["key","id","acc"],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":26,"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":71,"query_location_length":3,"column_names":["acc"]}}]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":5,"column_names":["cname"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":109,"query_location_length":9,"schema_name":"","table_name":"customers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customers"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","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":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":149,"query_location_length":3,"column_names":["key"]},{"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":154,"query_location_length":6,"column_names":["tbl","id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":5,"column_names":["cname"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":183,"query_location_length":40,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":178,"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":"c","sample":null,"query_location":188,"query_location_length":14,"schema_name":"","table_name":"customers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customers"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":206,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":206,"query_location_length":4,"column_names":["c","id"]},"right":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":6,"column_names":["tbl","id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"aliases":["key","id","acc"],"key_targets":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":26,"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":71,"query_location_length":3,"column_names":["acc"]}}]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":3,"column_names":["acc"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":241,"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\tVALUES (1, 0)\n\tUNION ALL\n\tSELECT n.k, r.v + 1\n\tFROM t n JOIN recurring.t r USING (k)\n\tWHERE n.v \u003c 2\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":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":76,"query_location_length":3,"column_names":["n","k"]},{"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":81,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":99,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":95,"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":104,"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":135,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":1,"column_names":["v"]}],"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":[]}]}} -{"sql":"WITH RECURSIVE t(k1, k2, v) USING KEY (k1, k2) AS (\n\tVALUES (1, 0, 0)\n\tUNION ALL\n\tSELECT n.k1, r.k2 + 1, n.v + 1\n\tFROM t n JOIN recurring.t r ON r.k1 = n.k1\n\tWHERE n.v \u003c 2 AND r.k2 \u003c 2\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"]}],"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":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":89,"query_location_length":4,"column_names":["n","k1"]},{"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":95,"query_location_length":4,"column_names":["r","k2"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"column_names":["n","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":123,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":119,"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":128,"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":145,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":4,"column_names":["r","k1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":164,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":164,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":176,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":4,"column_names":["r","k2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":183,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"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"]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":194,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":201,"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"standard_vector_size"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":140,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":24}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":155,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":194,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"standard_vector_size"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":245,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":24}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":260,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":300,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":310,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":361,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":371,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":163,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":215,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":275,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":285,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":324,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":334,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":376,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":386,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"EpochSummary"}}}]},"group_expressions":[],"group_sets":[],"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(8192) r(i)\n\tUNION ALL\n\tSELECT i, level + 1 FROM t WHERE level \u003c 3\n)\nSELECT count(*), sum(i), sum(level) 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":true,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8192}}}]},"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":86,"query_location_length":1,"column_names":["i"]},{"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":89,"query_location_length":5,"column_names":["level"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":112,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":5,"column_names":["level"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"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":131,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":141,"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":145,"query_location_length":1,"column_names":["i"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":149,"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":153,"query_location_length":5,"column_names":["level"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":165,"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 parents_tab (id , value , parent )\nas (values (1, 1, 2), (2, 2, 4), (3, 1, 4), (4, 2, -1), (5, 1, 2), (6, 2, 7), (7, 1, -1)\n),\nparents_tab2(id , value , parent )\nas (values (1, 1, 2), (2, 2, 4), (3, 1, 4), (4, 2, -1), (5, 1, 2), (6, 2, 7), (7, 1, -1)\n),\nparents as (\n select * from parents_tab\n union all\n select id, value+2, parent from parents_tab2\n)\nselect * from parents order by id, value, parent;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":408,"query_location_length":2,"column_names":["id"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":412,"query_location_length":5,"column_names":["value"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":419,"query_location_length":6,"column_names":["parent"]}}]}],"cte_map":{"map":[{"key":"parents_tab","value":{"aliases":["id","value","parent"],"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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"parents_tab2","value":{"aliases":["id","value","parent"],"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":189,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":203,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":214,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":217,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":228,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":240,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":245,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":248,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":251,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":262,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"parents","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"parents","union_all":true,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":293,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":300,"query_location_length":11,"schema_name":"","table_name":"parents_tab","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parents_tab"]}},"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":337,"query_location_length":2,"column_names":["id"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":346,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":341,"query_location_length":5,"column_names":["value"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":347,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":350,"query_location_length":6,"column_names":["parent"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":362,"query_location_length":12,"schema_name":"","table_name":"parents_tab2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parents_tab2"]}},"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":384,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":391,"query_location_length":7,"schema_name":"","table_name":"parents","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parents"]}},"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) select * from cte1 where j = (select max(j) from cte1 as cte2);","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}}}]},"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":4,"schema_name":"","table_name":"cte1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cte1"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":37,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["j"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":65,"query_location_length":33,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"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":77,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"cte2","sample":null,"query_location":85,"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},"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 t(x) AS (SELECT x)\nSELECT *\nFROM range(10) AS _(x), LATERAL (SELECT * FROM t);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"t","value":{"aliases":["x"],"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":21,"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}}}]},"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":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":50,"left":{"type":"TABLE_FUNCTION","alias":"_","sample":null,"query_location":39,"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":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":66,"query_location_length":17,"subquery":{"node":{"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":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":"SELECT COUNT(*), MIN(i), MAX(i), AVG(i) FROM union_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":[]},{"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"]}}]},{"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":37,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":10,"schema_name":"","table_name":"union_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["union_view"]}},"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 (\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_DEFAULT","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":41,"query_location_length":5,"column_names":["empno"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":5,"column_names":["ename"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"level","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"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":106,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":5,"column_names":["empno"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":145,"query_location_length":9,"column_names":["emp","empno"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":9,"column_names":["emp","ename"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":194,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":13,"column_names":["ctename","level"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":196,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":222,"query_location_length":39,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":209,"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":227,"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":238,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":238,"query_location_length":7,"column_names":["emp","mgr"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"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":271,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":278,"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 (select 1 as x union all select * from (select 1) tbl2(i) join (select x from t where x \u003c 5) tbl(i) using (i)) select * from t limit 3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"offset":null,"limit_type":"ROW_COUNT"}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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":"JOIN","alias":"","sample":null,"query_location":78,"query_location_length":51,"left":{"type":"SUBQUERY","alias":"tbl2","sample":null,"query_location":59,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["i"]},"right":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":83,"query_location_length":29,"subquery":{"node":{"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":["x"]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["i"]},"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},"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 (select 1 as x union all select sum(x+1) AS x from t where x \u003c 3 group by x) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":52,"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":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":56,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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":79,"query_location_length":5,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["x"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":104,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":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;","json":{"error":false,"statements":[{"node":{"type":"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"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 COUNT(*) 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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 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":[]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}}]},"column_name_alias":[],"with_ordinality":"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"]}}]},{"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"]}}]}],"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":"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 s1.table01 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":34,"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":10,"schema_name":"s1","table_name":"table01","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["s1","table01"]}},"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 COUNT(*) FROM (SELECT * FROM (SELECT * FROM integers WHERE (a \u003c\u003e 3 AND a\u003c50) OR (a \u003e 9995)) WHERE a\u003e1 AND a\u003c20) tbl(a) WHERE a\u003c5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":21,"query_location_length":97,"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":"SUBQUERY","alias":"","sample":null,"query_location":36,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":44,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":66,"query_location_length":31,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":67,"query_location_length":15,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","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":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":78,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}}]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":88,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9995}}}]},"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":105,"query_location_length":12,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":105,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":113,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["a"]},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":132,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i % 2 AS k FROM integers WHERE integers.i\u003c\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":38,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE SUM(a)\u003e10","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":9,"left":{"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":["a"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE a\u003e2 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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE a\u003e=4 AND a\u003c\u003e4 AND a\u003c\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":22,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":47,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"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\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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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='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":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":20,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","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":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]},"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 \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":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_GREATERTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}/nested_structs.parquet') WHERE s.a.b \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":"","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/nested_structs.parquet"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":70,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":5,"column_names":["s","a","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}]}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":"CASE","type":"CASE_EXPR","alias":"","query_location":62,"query_location_length":22,"case_checks":[{"when_expr":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}],"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 [MAP([2], [{'key1': MAP([ARRAY_VALUE('1', NULL), ARRAY_VALUE(NULL, '2')], [1, 2]), 'key2': 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":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":8,"query_location_length":94,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":84,"function_name":"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":82,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"key1","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"key1","query_location":27,"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":31,"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":32,"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":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":68,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"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":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"key2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"key2","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_length(array_value(array_value(1, 2, 2), array_value(3, 4, 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":72,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":55,"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":32,"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":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"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":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_position(array_value(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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 suggestion, suggestion_start FROM sql_auto_complete('CREATE MA') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE MA"}}}]},"column_name_alias":[],"with_ordinality":"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 CYC') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE SEQUENCE seq CYC"}}}]},"column_name_alias":[],"with_ordinality":"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 UNIQ') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":52,"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":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"create table tbl(i INTEGER UNIQ"}}}]},"column_name_alias":[],"with_ordinality":"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 ENU') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":47,"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":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE TYPE my_type AS ENU"}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT CAST(a AS INTE"}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT col[1:2] FR"}}}]},"column_name_alias":[],"with_ordinality":"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('PRAGMA show_t') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":34,"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PRAGMA show_t"}}}]},"column_name_alias":[],"with_ordinality":"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 OR') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":59,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM tbl OR"}}}]},"column_name_alias":[],"with_ordinality":"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 LEF') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM tbl LEF"}}}]},"column_name_alias":[],"with_ordinality":"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('FROM tbl SEL') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FROM tbl SEL"}}}]},"column_name_alias":[],"with_ordinality":"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 ''ORDER'' \"WHERE\" FR') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 'ORDER' \"WHERE\" FR"}}}]},"column_name_alias":[],"with_ordinality":"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('DESCR') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":26,"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DESCR"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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 case when x \u003e 0 then ''pos'' else ''neg'' end as sign from t') = $$SELECT CASE WHEN x \u003e 0 THEN 'pos' ELSE 'neg' END AS sign\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":160,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":88,"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":69,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"select case when x \u003e 0 then 'pos' else 'neg' end as sign from t"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":69,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT CASE WHEN x \u003e 0 THEN 'pos' ELSE 'neg' END AS sign\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 1', MAP {'keyword_case': 'mixed'})","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"select 1"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":42,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"keyword_case"}}}]}},{"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":58,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mixed"}}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 VIEW analytics.monthly_summary AS SELECT region, sum(amount) AS total FROM orders GROUP BY region') = $$CREATE OR REPLACE VIEW analytics.monthly_summary AS\nSELECT region, sum(amount) AS total\nFROM orders\nGROUP BY region$$","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":136,"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":117,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE OR REPLACE VIEW analytics.monthly_summary AS SELECT region, sum(amount) AS total FROM orders GROUP BY region"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":117,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE OR REPLACE VIEW analytics.monthly_summary AS\nSELECT region, sum(amount) AS total\nFROM orders\nGROUP BY region"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('ALTER TABLE t DROP COLUMN old_col') = $$ALTER TABLE t\nDROP COLUMN old_col$$","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ALTER TABLE t DROP COLUMN old_col"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ALTER TABLE t\nDROP COLUMN old_col"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 FROM very_long_table_name WHERE x = 1') = $$SELECT a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q\nFROM very_long_table_name\nWHERE 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":214,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":115,"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":96,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q FROM very_long_table_name WHERE x = 1"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":96,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q\nFROM very_long_table_name\nWHERE 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('SELECT ''hello\nworld''.upper()') = $$SELECT 'hello\nworld'.upper()$$","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":86,"left":{"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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 'hello\nworld'.upper()"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 'hello\nworld'.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 duckdb_format_sql('CREATE FUNCTION V29(x) AS LAST_VALUE(x IGNORE NULLS) OVER (ORDER BY x NULLS LAST); FORCE CHECKPOINT') = $$CREATE FUNCTION V29(x) AS LAST_VALUE(x IGNORE NULLS) OVER (\n ORDER BY x NULLS LAST\n );\nFORCE CHECKPOINT$$","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":238,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE FUNCTION V29(x) AS LAST_VALUE(x IGNORE NULLS) OVER (ORDER BY x NULLS LAST); FORCE CHECKPOINT"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":115,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE FUNCTION V29(x) AS LAST_VALUE(x IGNORE NULLS) OVER (\n ORDER BY x NULLS LAST\n );\nFORCE CHECKPOINT"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":254,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE OR REPLACE TABLE lineitem_sf100_random AS (SELECT * FROM lineitem ORDER BY hash(rowid + 42))"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":131,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 suggestion, suggestion_start FROM sql_auto_complete('call unnes') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"call unnes"}}}]},"column_name_alias":[],"with_ordinality":"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 (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":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":47,"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":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM (FROM lineit"}}}]},"column_name_alias":[],"with_ordinality":"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 (RANGE BETWE') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT row_number() OVER (RANGE BETWE"}}}]},"column_name_alias":[],"with_ordinality":"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('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":21,"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":13,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 from_base64('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":17,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 l FROM int_list ORDER BY create_sort_key(l, '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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS FIRST"}}}]}}]}],"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 * FROM blobs ORDER BY create_sort_key(b, 'ASC NULLS LAST', c, 'ASC 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":29,"query_location_length":57,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS LAST"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS LAST"}}}]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 count(*) FROM strings\nWHERE octet_length(create_sort_key(s, 'ASC NULLS LAST')) \u003c\u003e octet_length(encode(s)) + 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":[]}],"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_NOTEQUAL","alias":"","query_location":35,"query_location_length":81,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":50,"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":48,"query_location_length":36,"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":64,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS LAST"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_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":23,"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":102,"query_location_length":9,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":1,"column_names":["s"]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select array_slice(blob '\\x00\\x01\\x02\\x03\\x04\\x05', 4, 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":51,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x00\\x01\\x02\\x03\\x04\\x05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"blob","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('week', DATE '-5877641-06-25', DATE '5881580-07-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":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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"week"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-5877641-06-25"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5881580-07-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(millennium 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MILLENNIUM"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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 YEARWEEK(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":"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":16,"query_location_length":1,"column_names":["d"]}}]}],"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 date_part(NULL::VARCHAR, NULL::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":41,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"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(NULL, 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":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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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":23,"query_location_length":1,"column_names":["d"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 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"]}}]}],"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(['era', 'millennium', 'century', 'decade', 'quarter'], 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":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":67,"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":53,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"era"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"millennium"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"century"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"decade"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"quarter"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"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(s, 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":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"offset":null,"limit_type":"ROW_COUNT"}],"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":25,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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('quarter', TIMESTAMP '2020-12-02 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":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"quarter"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-02 04:03:02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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('duck', 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":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":51,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-01-06 04:03:02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"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(decade 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DECADE"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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(milliseconds 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MILLISECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 EXTRACT(week FROM cast('2007-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) + 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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":56}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) + 140);","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":140}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) + 224);","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":224}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', '%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":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 strftime(NULL::TIMESTAMP, '%%%%%% %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":45,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%%%%%% %Y %%%%%%"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":58,"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":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"column_name_alias":[],"with_ordinality":"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, '%w') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%w"}}}]}],"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, '%Y') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y"}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%z"}}}]}],"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":35,"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":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-99999-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 d, time_bucket('3 months'::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":56,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"6 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"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 time_bucket('-3 hours'::interval, '2019-04-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":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":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-3 hours"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-04-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-05-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000000000 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-22 (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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 day"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '2022-12-22'::date, 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-12-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"rainbow","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(true, ['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":28,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 * FROM tbl\nWHERE\nCASE WHEN i%2=0 THEN 1 ELSE 0 END\nAND\nCASE WHEN i\u003c5 THEN 1 ELSE 0 END","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":24,"query_location_length":69,"children":[{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":24,"query_location_length":33,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":62,"query_location_length":31,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":72,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT constant_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":18,"function_name":"constant_or_null","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(m) FROM map_as_list","json":{"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":"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":12,"query_location_length":1,"column_names":["m"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":11,"schema_name":"","table_name":"map_as_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["map_as_list"]}},"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"]}}]},"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["z"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 info.retained_build_executions::UBIGINT \u003e= 1\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_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":44,"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","retained_build_executions"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":57,"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":76,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":102,"query_location_length":59,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":5,"column_names":["class"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalRecursiveCTE"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":137,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":5,"column_names":["event"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"RuntimeMetrics"}}}]},"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\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"]}}]},{"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"]}}]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},{"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"]}}]}]}}}]},"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\t\tUNION\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"]}}]},{"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"]}}]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":123,"query_location_length":3,"column_names":["key"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":4,"column_names":["iter"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":138,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":1,"column_names":["b"]}]},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":145,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":149,"query_location_length":1,"column_names":["c"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":157,"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":168,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":4,"column_names":["iter"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},{"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"]}}]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 \t\tUNION\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"payload_aggregates":[],"query_node":{"type":"RECURSIVE_CTE_NODE","modifiers":[],"cte_map":{"map":[]},"cte_name":"tbl","union_all":false,"left":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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, max(v) AS v) AS (\n\tVALUES (1, 0)\n\tUNION ALL\n\tSELECT n.k, r.v + 1\n\tFROM t n JOIN 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"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":37,"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":41,"query_location_length":1,"column_names":["v"]}}]}],"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":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":89,"query_location_length":3,"column_names":["n","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":94,"query_location_length":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":112,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":108,"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":117,"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":148,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},{"class":"FUNCTION","type":"FUNCTION","alias":"v","query_location":37,"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":41,"query_location_length":1,"column_names":["v"]}}]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":1,"column_names":["v"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":175,"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) AS (\n\tVALUES (1, 1, 0), (1, 2, 0), (2, 1, 0)\n\tUNION ALL\n\tSELECT n.k1, n.k2, r.v + 1\n\tFROM recurring.t r JOIN t n ON 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","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"]}],"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":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":111,"query_location_length":4,"column_names":["n","k1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":4,"column_names":["n","k2"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":3,"column_names":["r","v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":151,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":137,"query_location_length":13,"schema_name":"recurring","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["recurring","t"]}},"right":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":156,"query_location_length":3,"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":163,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":4,"column_names":["r","k1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"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":182,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":3,"column_names":["n","v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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"]}]}}}]},"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":"BASE_TABLE","alias":"","sample":null,"query_location":206,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":125,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":481,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":615,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":635,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":649,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":698,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":713,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":724,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":155,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":205,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PhysicalOperator"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"EpochSummary"}}}]},"group_expressions":[],"group_sets":[],"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)\n\tUNION\n\tSELECT i, level + 1 FROM t WHERE level \u003c 4\n)\nSELECT count(*), max(level) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4096}}}]},"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":82,"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":85,"query_location_length":5,"column_names":["level"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":5,"column_names":["level"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"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":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":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":137,"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":141,"query_location_length":5,"column_names":["level"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":153,"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) 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_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}}}]},"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":"JOIN","alias":"","sample":null,"query_location":45,"query_location_length":27,"left":{"type":"BASE_TABLE","alias":"cte11","sample":null,"query_location":50,"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":62,"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 cte3 as (select ref2.j as i from cte1 as ref2), cte1 as (Select i as j from a), cte2 as (select ref.j+1 as k from cte1 as ref) select * from cte2 union all select * FROM cte3;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[],"cte_map":{"map":[{"key":"cte3","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":"i","query_location":21,"query_location_length":6,"column_names":["ref2","j"]}],"from_table":{"type":"BASE_TABLE","alias":"ref2","sample":null,"query_location":38,"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}}},{"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":69,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"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":"FUNCTION","type":"FUNCTION","alias":"k","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":101,"query_location_length":5,"column_names":["ref","j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"ref","sample":null,"query_location":119,"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}}}]},"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\norders as (\n select * from main.stg_orders\n where ordered_at \u003e= (select max(ordered_at) from main.orders)\n),\nsome_more_logic as (\n select *\n from orders\n)\nselect * from some_more_logic;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"orders","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":1,"relation_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":15,"schema_name":"main","table_name":"stg_orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","stg_orders"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":61,"query_location_length":55,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":10,"column_names":["ordered_at"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":75,"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":83,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":10,"column_names":["ordered_at"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"query_location_length":11,"schema_name":"main","table_name":"orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["main","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_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"some_more_logic","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":152,"query_location_length":1,"relation_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":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}}}]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":179,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":186,"query_location_length":15,"schema_name":"","table_name":"some_more_logic","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["some_more_logic"]}},"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 (\n SELECT empno, ename\n FROM emp\n WHERE empno = 7566\n UNION ALL\n SELECT emp.empno, emp.ename\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_DEFAULT","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":41,"query_location_length":5,"column_names":["empno"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":5,"column_names":["ename"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"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":81,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":5,"column_names":["empno"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":120,"query_location_length":9,"column_names":["emp","empno"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":9,"column_names":["emp","ename"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":165,"query_location_length":39,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":152,"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":170,"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":181,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":7,"column_names":["emp","mgr"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":191,"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":214,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":221,"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 (select 1 as x union select x+1 from t where x \u003c 3) select min(a1.x) from t a1, t a2;","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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":48,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":65,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"aliases":[],"key_targets":[]}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"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":83,"query_location_length":4,"column_names":["a1","x"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":89,"query_location_length":15,"left":{"type":"BASE_TABLE","alias":"a1","sample":null,"query_location":94,"query_location_length":4,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"right":{"type":"BASE_TABLE","alias":"a2","sample":null,"query_location":100,"query_location_length":4,"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 recursive t as (select 1 as x, 'hello' as y union all select x+1, y || '-' || 'hello' 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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":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":66,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"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":71,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]}],"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":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":104,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":118,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"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 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":[]}],"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":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 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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 a WHERE i \u003e= 2000 AND i \u003c 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":[]}],"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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":29,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":29,"query_location_length":9,"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":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2000}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5000}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 12345::utinyint","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12345}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"utinyint","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":223,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":225,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆🦆"}}}]},"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"]}}]},{"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"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":10,"column_names":["l_discount"]}}]}}]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":10,"column_names":["l_discount"]}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":244,"query_location_length":5,"column_names":["l_tax"]}}]}}]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]},{"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1998-09-02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":478,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":486,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"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 count(*) FROM d.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"d","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["d","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 SELECT id, s FROM t WHERE id % 100 = 7\n EXCEPT\n SELECT id, s FROM t WHERE id % 100 = 7\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":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":100,"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":34,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["s"]}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":53,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},"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":88,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["s"]}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":107,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"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":107,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},"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 integers WHERE 2\u003e1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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*2)+(1*0))*1, 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":26,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":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":"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"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\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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","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 i\u003e9 AND j\u003ci","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"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":["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\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":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_LESSTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM vals1, vals2 WHERE i\u003e9 AND j\u003c=l AND k\u003e=i AND l\u003c11\nORDER BY 2 DESC, 4 DESC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":17,"left":{"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"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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":33,"query_location_length":30,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","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":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["l"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":50,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH cte as (\n\tselect '12'::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":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":"CASE","type":"CASE_EXPR","alias":"","query_location":47,"query_location_length":22,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":1,"column_names":["a"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"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=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":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"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"]}}]}],"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_concat(array_value(1,2,3), NULL), list_concat(NULL, array_value(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":37,"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":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":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"query_location_length":37,"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":58,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"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":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 suggestion, suggestion_start FROM sql_auto_complete('ALTER TABLE my_table RENAME COLUMN fi') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ALTER TABLE my_table RENAME COLUMN fi"}}}]},"column_name_alias":[],"with_ordinality":"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 SCHEMA 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE SCHEMA I"}}}]},"column_name_alias":[],"with_ordinality":"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 ta') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"create ta"}}}]},"column_name_alias":[],"with_ordinality":"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 SC') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE TABLE SC"}}}]},"column_name_alias":[],"with_ordinality":"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('DROP TABLE tbl CAS') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DROP TABLE tbl CAS"}}}]},"column_name_alias":[],"with_ordinality":"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 sum(42) IS NOT NUL') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":46,"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":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT sum(42) IS NOT NUL"}}}]},"column_name_alias":[],"with_ordinality":"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 VAL') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":40,"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":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INSERT INTO tbl VAL"}}}]},"column_name_alias":[],"with_ordinality":"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('SEL') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":24,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SEL"}}}]},"column_name_alias":[],"with_ordinality":"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 LIM') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM tbl LIM"}}}]},"column_name_alias":[],"with_ordinality":"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 NATURAL JOIN tbl2 NAT') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":60,"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":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM tbl NATURAL JOIN tbl2 NAT"}}}]},"column_name_alias":[],"with_ordinality":"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 QUAL') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":43,"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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM tbl QUAL"}}}]},"column_name_alias":[],"with_ordinality":"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 e_directory') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SET e_directory"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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 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":166,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"select a from t1 inner join t2 on t1.id = t2.id where t1.active = true"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":72,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":137,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"inline_threshold"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"indent_size"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}}}]}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":127,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE TEMP TABLE t (id INTEGER, name VARCHAR)"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":57,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":224,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":101,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":582,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":278,"query_location_length":311,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":142,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT name, count(*) FROM users GROUP BY ALL ORDER BY ALL"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":60,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":120,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CREATE OR REPLACE TABLE t AS SELECT a, b FROM s"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":49,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":195,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 suggestion, suggestion_start FROM sql_auto_complete('call histo') 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"call histo"}}}]},"column_name_alias":[],"with_ordinality":"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(42, 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":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":59,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT min(42, l_ord"}}}]},"column_name_alias":[],"with_ordinality":"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($$\nSELECT\n nation,\n o_year,\n sum(amount) AS sum_profit\nFROM (\n SELECT\n n_name AS nation,\n extract(year FROM o_orderdate) AS o_year,\n l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity AS amount\n FROM\n part,\n supplier,\n lineitem,\n partsupp,\n orders,\n nation\n WHERE\n s_suppkey = l_suppkey\n AND ps_suppkey = l_suppkey\n AND ps_partkey = l_partkey\n AND p_partkey = l_partkey\n AND o_orderkey = l_orderkey\n AND s_nationkey = n_nat$$) LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":628,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":580,"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":559,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\nSELECT\n nation,\n o_year,\n sum(amount) AS sum_profit\nFROM (\n SELECT\n n_name AS nation,\n extract(year FROM o_orderdate) AS o_year,\n l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity AS amount\n FROM\n part,\n supplier,\n lineitem,\n partsupp,\n orders,\n nation\n WHERE\n s_suppkey = l_suppkey\n AND ps_suppkey = l_suppkey\n AND ps_partkey = l_partkey\n AND p_partkey = l_partkey\n AND o_orderkey = l_orderkey\n AND s_nationkey = n_nat"}}}]},"column_name_alias":[],"with_ordinality":"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 sum(42) OVER (PARTITION BY col1, col2 ORDER BY col3 ROW') LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":83,"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":64,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT sum(42) OVER (PARTITION BY col1, col2 ORDER BY col3 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_base64(base64(encode('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":32,"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":19,"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":11,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 varchars ORDER BY create_sort_key(v, 'ASC 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":36,"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":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS LAST"}}}]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 list_of_structs ORDER BY create_sort_key(s, 'ASC 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":39,"query_location_length":36,"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":55,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS LAST"}}}]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"list_of_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_of_structs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM sweep\nWHERE octet_length(create_sort_key(b, 'ASC NULLS LAST')) \u003c\u003e\n octet_length(b) + CASE WHEN pos \u003c len AND esc \u003c= '\\x01'::BLOB THEN 1 ELSE 0 END + 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"sweep","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sweep"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":33,"query_location_length":143,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":50,"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":46,"query_location_length":36,"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":62,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ASC NULLS LAST"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":173,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_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":0,"function_name":"+","schema":"","filter":null,"order_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":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":106,"query_location_length":1,"column_names":["b"]}}]}},{"name":"","expression":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":111,"query_location_length":61,"case_checks":[{"when_expr":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":121,"query_location_length":33,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":121,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":3,"column_names":["pos"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":3,"column_names":["len"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":135,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":3,"column_names":["esc"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":148,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":150,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":167,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT decode('\\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\xFF"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x00\\xF0\\x9F\\xA6\\x86\\x00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"blob","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 datediff('week', DATE '5881580-07-10', DATE '-5877641-06-25');","json":{"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"week"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5881580-07-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-5877641-06-25"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SECOND"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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 WEEKOFYEAR(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":13,"function_name":"weekofyear","schema":"","filter":null,"order_bys":{"type":"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"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(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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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},"named_param_map":[]}]}} +{"sql":"SELECT DAYNAME(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":10,"function_name":"dayname","schema":"","filter":null,"order_bys":{"type":"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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(['isoyear', 'week', 'yearweek'], 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":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"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":21,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"isoyear"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"week"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"yearweek"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"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(s, 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":16,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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('century', 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":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":54,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"century"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-01-06 04:03:02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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 s.min, s.max, s.has_null, s.has_no_null FROM (SELECT stats(date_trunc('month', d)) s FROM dates 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":59,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":60,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":22,"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":77,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":1,"column_names":["d"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":97,"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT EXTRACT(DOY 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOY"}}},{"name":"","expression":{"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":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(century FROM cast('2001-10-10' 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":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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CENTURY"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2001-10-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(dow FROM cast('1970-01-01' AS DATE) - 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 EXTRACT(week FROM cast('2010-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2010-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) + 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":77}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) + 161);","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":161}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) + 245);","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2007-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":245}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', '(%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":35,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(%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 strftime(d, d::VARCHAR) 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":51,"query_location_length":1,"column_names":["d"]}}]}],"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":"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":["d"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":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 strftime(d, '%-d') 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":46,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%-d"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"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, '%-H') 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":46,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%-H"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"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, '%-j') 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":46,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%-j"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"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":35,"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":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-99999-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 d, time_bucket('3 months'::interval, d, null::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":52,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["d"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"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'::interval, '2019-04-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":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":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-04-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::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":85,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-05-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-2000000000 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '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":52,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 day"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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, i)\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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":85,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":124,"query_location_length":20,"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"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":150,"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 enum_range_boundary('orange'::rainbow, 'green'::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":56,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"orange"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"rainbow","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"green"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":7,"catalog":"","schema":"","type_name":"rainbow","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"assert_true","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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, s, CASE WHEN i%2=0 THEN s ELSE s END 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":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["s"]},{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":13,"query_location_length":33,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":23,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":23,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["s"]}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["s"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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 error('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":13,"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":13,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 r, HASH(r) 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":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":["r"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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 * 100 + y * 10 + 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":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":14,"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":["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"]}}]},"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":30,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":40,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["z"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 invoke(lambda x: alias(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":29,"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":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":24,"query_location_length":8,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 replace_type({duck: 3.141592653589793::DOUBLE, goose: 2.718281828459045::DOUBLE}, NULL::DOUBLE, NULL::DECIMAL(15,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":116,"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":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":"duck","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"duck","query_location":44,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":17,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":16,"scale":15}},"is_null":false,"value":3141592653589793}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"goose","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"goose","query_location":78,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":17,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":16,"scale":15}},"is_null":false,"value":2718281828459045}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} @@ -703,735 +712,752 @@ {"sql":"SELECT s.min, s.max, s.has_null, s.has_no_null FROM (SELECT STATS(i + 2) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"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({'schema': 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":74,"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":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":"schema","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"schema","query_location":32,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":52,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl1"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 index_key({'catalog': current_catalog(), 'schema': 'main', 'table': 'tbl3'}, 'tbl3_idx', key1, key2, key3)\nFROM tbl3\nWHERE key1 BETWEEN 1 AND 3\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":160,"query_location_length":4,"column_names":["key1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":106,"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":65,"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":"FUNCTION","type":"FUNCTION","alias":"catalog","query_location":29,"query_location_length":17,"function_name":"current_catalog","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":58,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":75,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl3"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl3_idx"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":4,"column_names":["key1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":4,"column_names":["key2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":4,"column_names":["key3"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":119,"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":135,"query_location_length":15,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":130,"query_location_length":4,"column_names":["key1"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT index_key({'schema': 'main', 'schema': 'main', '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":85,"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":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":"schema","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"schema","query_location":28,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"schema","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"schema","query_location":46,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":63,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl1"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 index_key({'schema': 'nonexistent_schema', '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":81,"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":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":"schema","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"schema","query_location":28,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nonexistent_schema"}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":59,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl1"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"minute"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"second"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":1,"column_names":["i"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"QUARTER"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14 months ago"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":82}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hour"}}},{"name":"","expression":{"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]}}]}],"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"]}}]},{"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"]}}]}],"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":[]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"column_name_alias":[],"with_ordinality":"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"]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{func_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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"regr_r2"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_last(dt), list_last(t) FROM five_dates_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":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":17,"query_location_length":2,"column_names":["dt"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":32,"query_location_length":1,"column_names":["t"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"query_location_length":13,"schema_name":"","table_name":"five_dates_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates_tz"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_mad([INTERVAL 1 YEAR])","json":{"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_mad","schema":"","filter":null,"order_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":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":17,"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":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_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":10,"function_name":"list_min","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(s), MAX(s) FROM struct_with_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":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"]}}]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":17,"schema_name":"","table_name":"struct_with_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_with_lists"]}},"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 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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 * from (SELECT list_aggr(NULL, '{func_name}'))","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":39,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":30,"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":32,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{func_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":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select list_skewness([5, 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":24,"function_name":"list_skewness","schema":"","filter":null,"order_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_string_agg([1, 2]::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":"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":11,"child":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":"VARCHAR","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_no_overflow(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":"sum_no_overflow","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_sum(val), round(list_var_samp(val), 1), list_min(val) 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":13,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["val"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":3,"column_names":["val"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":13,"function_name":"list_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":61,"query_location_length":3,"column_names":["val"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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 array_length(ARRAY[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":31,"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":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":20,"query_location_length":14,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"sep","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"sep","query_location":51,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 flatten([[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":29,"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":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":16,"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":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":[]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 flatten(flatten([[[]], [[]]]))","json":{"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":"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":21,"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":25,"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":[]}}]}},{"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":"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":[]}}]}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) FROM range(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":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"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(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":14,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 range(3, 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":14,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 range(timestamp '2020-01-01', timestamp '2020-07-01', interval '3' 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":73,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-07-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"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":70,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('-infinity'::TIMESTAMP, '290309-12-22 (BC) 00:00:00'::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":98,"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":34,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC) 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(timestamptz '2020-06-01', timestamptz '2020-01-01', interval '3' 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":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":23,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-06-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"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":84,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([10], x -\u003e sum(1) \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":34,"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":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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"query_location_length":15,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":30,"query_location_length":10,"left":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"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 list_filter([TIMESTAMP '1992-03-22', TIMESTAMP '209-03-22', TIMESTAMP '1700-03-22'], x -\u003e century(x) \u003e 16)","json":{"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":"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":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":20,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"209-03-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":67,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1700-03-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":92,"query_location_length":20,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":97,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":97,"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":105,"query_location_length":1,"column_names":["x"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}},"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 list_filter(['duck', 'a', 'ö'], duck -\u003e contains(concat(duck, 'DB'), 'duck'))","json":{"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_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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ö"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":40,"query_location_length":44,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":4,"column_names":["duck"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":18,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":4,"column_names":["duck"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DB"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"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 list_filter(l, x -\u003e x \u003e 0) FROM empty_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":26,"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":19,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":22,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["x"]},"expr":{"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":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"syntax_type":"SINGLE_ARROW"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":11,"schema_name":"","table_name":"empty_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["empty_lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select [[y] for y in range(5)] as c, [x for x in c if x IS NOT NULL];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":7,"query_location_length":23,"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":21,"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":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"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":8,"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":9,"query_location_length":1,"column_names":["y"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":31,"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":49,"query_location_length":1,"column_names":["c"]}},{"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":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":56,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["x"]}]}},{"name":"result","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"filter"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"result"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_intersect([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":45,"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":24,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_transform([1, 2, 3], \"x.y\" -\u003e \"x.y\" + x.y) AS l FROM (VALUES (42), (84)) x(y);","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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":20,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":5,"column_names":["x.y"]},"expr":{"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":42,"query_location_length":5,"column_names":["x.y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":3,"column_names":["x","y"]}}]},"syntax_type":"SINGLE_ARROW"}}]}],"from_table":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":65,"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":74,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}]]},"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":[]}]}} -{"sql":"SELECT reduce_macro([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":29,"function_name":"reduce_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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 [len(x) for x in ['goodbye', 'cruel', '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":47,"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":24,"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":25,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goodbye"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"cruel"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"world"}}}]}},{"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":8,"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":12,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([NULL], (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":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":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":22,"lhs":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]}}]},"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":"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["i"]}}]},"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 list_reduce([[10, 20], [30, 40], [50, 60]], (x, y) -\u003e list_pack(list_reduce(x, (l, m) -\u003e l + m) + list_reduce(y, (n, o) -\u003e n + o)));","json":{"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":"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":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":20,"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":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":41,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":60}}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":51,"query_location_length":86,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":52,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["y"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"query_location_length":76,"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":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":71,"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":83,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":86,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"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":87,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["m"]}}]},"expr":{"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":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["m"]}}]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"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":117,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":120,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"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":121,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":1,"column_names":["o"]}}]},"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":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":1,"column_names":["o"]}}]},"syntax_type":"SINGLE_ARROW"}}]}}]}}]},"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 FROM where_clause WHERE list_reduce(a, (x, y) -\u003e x - y) \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":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"where_clause","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["where_clause"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":33,"query_location_length":35,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":45,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":48,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["y"]}}]},"expr":{"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":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["y"]}}]},"syntax_type":"SINGLE_ARROW"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT index_key({'foo': 'bar', '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":63,"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":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":"foo","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"foo","query_location":25,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bar"}}},{"name":"table","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"table","query_location":41,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl1"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"PRIMARY_tbl1_0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tbl2"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FOREIGN_tbl2_2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 dayofweek(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":"dayofweek","schema":"","filter":null,"order_bys":{"type":"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"]}}]}],"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(['year', 'month', 'day'], 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":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":20,"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":21,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"year"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}}]}},{"name":"","expression":{"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":63,"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(century 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CENTURY"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}]}],"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(minute 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MINUTE"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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(dow FROM interval '6 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":41,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dow"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"6 months ago"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('decade', 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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"decade"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["i"]}}]}],"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 list_any_value(dt), list_any_value(t) FROM five_dates_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":18,"function_name":"list_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":22,"query_location_length":2,"column_names":["dt"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":17,"function_name":"list_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":42,"query_location_length":1,"column_names":["t"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"query_location_length":13,"schema_name":"","table_name":"five_dates_tz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["five_dates_tz"]}},"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) 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":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"]}}]}],"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 list_bit_and()","json":{"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_bit_and","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_bool_and(l) FROM bools;","json":{"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_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":21,"query_location_length":1,"column_names":["l"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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 list_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":12,"function_name":"list_first","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_histogram(['2021-08-20'::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":43,"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":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":35,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], 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":20,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 list_aggr([1, 2, NULL], 'regr_sxx');","json":{"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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"regr_sxx"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], 'arg_max');","json":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"arg_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 list_last(i) FROM five","json":{"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":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select list_mad(x) from (values\t(['294247-01-10 04:00:54.775806'::timestamp,\n\t'290309-12-22 (BC) 00:00:00'::timestamp])) 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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":24,"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":"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":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":64,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":30,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10 04:00:54.775806"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC) 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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"]}}]}],"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(l), MAX(l) FROM list_with_structs;","json":{"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":["l"]}}]},{"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":["l"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":17,"schema_name":"","table_name":"list_with_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_with_structs"]}},"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 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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 list_aggr([NULL], '{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":32,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{func_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 list_skewness([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_skewness","schema":"","filter":null,"order_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_string_agg(x) FROM strings WHERE g \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":18,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["x"]}}]}],"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_GREATERTHAN","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":["g"]},"right":{"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(i \u003e 500), SUM(i=1), SUM(i IS 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":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":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":11,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":500}}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":37,"query_location_length":7,"children":[{"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":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 round(list_var_samp(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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":3,"column_names":["val"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"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 len(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":"len","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 array_to_string([1, 2, 3], k) FROM repeat(',', 5) t(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":29,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["k"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":42,"query_location_length":19,"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":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"column_name_alias":["k"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT flatten(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":"flatten","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 flatten([[[1, 2], [3, 4]], [[]], [[5, 6], [7, 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":51,"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":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":16,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"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":"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":[]}}]}},{"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT generate_series(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":"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 generate_series(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":21,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 range(3, 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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 * FROM (SELECT 1 UNION ALL SELECT 0 UNION ALL SELECT 2) AS _(x), generate_series(1, x) AS __(y) ORDER 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":112,"query_location_length":1,"column_names":["x"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["y"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":93,"left":{"type":"SUBQUERY","alias":"_","sample":null,"query_location":14,"query_location_length":48,"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":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["x"]},"right":{"type":"TABLE_FUNCTION","alias":"__","sample":null,"query_location":72,"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":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["x"]}}]},"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":"SELECT 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":83,"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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(timestamptz '2020-01-01', timestamptz '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":85,"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":23,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"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":84,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(NULL, filter(NULL, (lambda c103: 'babea54a-2261-4b0c-b14b-1d0e9b794e1a')));","json":{"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":"quantile","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":67,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":36,"query_location_length":51,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["c103"]},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"babea54a-2261-4b0c-b14b-1d0e9b794e1a"}},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], 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":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":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":45,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}]},"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 list_filter(NULL, x -\u003e 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":29,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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_GREATERTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_transform([[1, 3], [2, 3, 1], [2, 4, 2]], x -\u003e list_filter(x, y -\u003e y \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":80,"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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":54,"query_location_length":32,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"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":71,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":74,"query_location_length":11,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["y"]},"expr":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","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":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"syntax_type":"SINGLE_ARROW"}}]},"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 list_apply([5,6], x -\u003e list_filter([4,8], y -\u003e 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":50,"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":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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"query_location_length":31,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":26,"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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":49,"query_location_length":6,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["y"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["y"]},"syntax_type":"SINGLE_ARROW"}}]},"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 list_has_all([variable_has_all FOR variable_has_all IN ['a']], ['b']) AS list_comp_result;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"list_comp_result","query_location":7,"query_location_length":69,"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"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":63,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"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":["variable_has_all"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":16,"column_names":["variable_has_all"]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":71,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_intersect(list_intersect([1, 2, 3, 4], [4, 5, 6, 7]), list_intersect([4, 5, 6, 7], [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":102,"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":42,"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":37,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"query_location_length":42,"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":81,"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":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"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":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 x FROM (VALUES (42)) t(x) GROUP BY x HAVING list_filter(NULL, lambda_param -\u003e lambda_param = 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":["x"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"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":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["x"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"query_location_length":51,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":69,"query_location_length":32,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":12,"column_names":["lambda_param"]},"expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":12,"column_names":["lambda_param"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"syntax_type":"SINGLE_ARROW"}}]},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [fruit for fruit in ['apple', 'banana', 'cherry', 'kiwi', 'mango'] if 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":91,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":28,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"apple"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"banana"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"cherry"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"kiwi"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mango"}}}]}},{"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":["fruit"]},"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"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":86,"query_location_length":5,"column_names":["fruit"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"name":"result","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":5,"column_names":["fruit"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"filter"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"result"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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);","json":{"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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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"]}}]},"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"]}}]},"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 list_reduce(a, (x, y, i) -\u003e x + y + i) 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":38,"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":22,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":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"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}]},"expr":{"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":"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]}}]},"syntax_type":"SINGLE_ARROW"}}]}],"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 list_reduce(n, (x, y) -\u003e list_reduce(l, (a, b) -\u003e x + y + a + b)) 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":65,"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":49,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":39,"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":23,"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"]}}]},"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":"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":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":"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":61,"query_location_length":1,"column_names":["y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"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"]}}]},"syntax_type":"SINGLE_ARROW"}}]},"syntax_type":"SINGLE_ARROW"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"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 \nlist_reduce(\n s, (curr, next) -\u003e struct_pack(a:=curr.a + (next.b - curr.b), b:=next.b)\n)\nFROM df","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":91,"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":25,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":28,"query_location_length":69,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":29,"query_location_length":4,"column_names":["curr"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":4,"column_names":["next"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"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":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":59,"query_location_length":6,"column_names":["curr","a"]}},{"name":"","expression":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":6,"column_names":["next","b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":6,"column_names":["curr","b"]}}]}}]}},{"name":"b","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":90,"query_location_length":6,"column_names":["next","b"]}}]},"syntax_type":"SINGLE_ARROW"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":105,"query_location_length":2,"schema_name":"","table_name":"df","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["df"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} {"sql":"SELECT list_reduce([], (x, y) -\u003e x + y, 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":37,"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":2,"function_name":"list_value","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":23,"query_location_length":15,"lhs":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["y"]}}]},"expr":{"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":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["y"]}}]},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"SELECT list_reduce([[1,2,3], [4,5,6], [7,8,9]], (x, y) -\u003e list_pack(list_reduce(x, (l, m) -\u003e l + m) + list_reduce(y, (n, o) -\u003e n + o)), [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":135,"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":48,"query_location_length":86,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["y"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"query_location_length":76,"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"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":80,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":83,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":83,"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":84,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":1,"column_names":["m"]}}]},"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["m"]}}]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":102,"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":114,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":117,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"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":118,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["o"]}}]},"expr":{"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":127,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":1,"column_names":["o"]}}]},"syntax_type":"SINGLE_ARROW"}}]}}]}}]},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"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":137,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"SELECT list_apply([1,2], x -\u003e list_apply([3,4], y -\u003e {'x': x, 'y': y})) AS bug;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"bug","query_location":7,"query_location_length":64,"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":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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"query_location_length":45,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":40,"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":41,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":48,"query_location_length":21,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["y"]},"expr":{"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":"x","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":59,"query_location_length":1,"column_names":["x"]}},{"name":"y","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"y","query_location":67,"query_location_length":1,"column_names":["y"]}}]},"syntax_type":"SINGLE_ARROW"}}]},"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 v.split(' ') strings,\n strings.apply(x -\u003e x.lower()).filter(x -\u003e x[1] == 't') lower,\n strings.apply(x -\u003e x.upper()).filter(x -\u003e x[1] == 'T') upper,\n lower + upper AS mix_case_srings\nFROM varchars","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"lower","query_location":68,"query_location_length":24,"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":38,"query_location_length":29,"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":52,"query_location_length":14,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"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":[]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":75,"query_location_length":16,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":80,"query_location_length":11,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":81,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}},"syntax_type":"SINGLE_ARROW"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"upper","query_location":138,"query_location_length":24,"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":108,"query_location_length":29,"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":122,"query_location_length":14,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"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":[]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":145,"query_location_length":16,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":150,"query_location_length":11,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":151,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":150,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"T"}}},"syntax_type":"SINGLE_ARROW"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"mix_case_srings","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":5,"column_names":["lower"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":186,"query_location_length":5,"column_names":["upper"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":216,"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 list_transform([[1], [2, 3], [NULL], NULL], 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":79,"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"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":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":51,"query_location_length":34,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":71,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":74,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["y"]},"expr":{"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":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"syntax_type":"SINGLE_ARROW"}}]},"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 list_apply(i, x -\u003e (6 + 2 * 12) // x) 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":37,"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":22,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"SINGLE_ARROW"}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":50,"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":59,"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":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 (SELECT (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":62,"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":53,"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":44,"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":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":46,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":49,"query_location_length":16,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":4,"column_names":["elem"]},"expr":{"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":57,"query_location_length":4,"column_names":["elem"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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":75,"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, NULL, 3, 4, 5, 6], (x, i) -\u003e 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":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":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":45,"query_location_length":15,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":46,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":1,"column_names":["i"]}}]},"expr":{"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":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"]}}]},"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 [split('01:08:22', ':'), x -\u003e CAST (x AS 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":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":22,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01:08:22"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":":"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":32,"query_location_length":24,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["x"]},"expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":19,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["x"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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 list_transform([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":57,"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":43,"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":53,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["x"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(NULL, lambda x: 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":34,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"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":35,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"syntax_type":"LAMBDA_KEYWORD"}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"enjoy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"life"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"to"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"the"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"fullest"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%e%"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}}]}},{"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"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_transform([1, 2], lambda x: list_transform([3, 4], 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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":45,"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":40,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":63,"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":73,"query_location_length":1,"column_names":["x"]},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(list_filter([2, 4, 3, 1, 20, 10, 3, 30], lambda x: x % 2 == 0), lambda y: y % 5 == 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":97,"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":62,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":60,"query_location_length":20,"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":70,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":70,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":83,"query_location_length":20,"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":93,"query_location_length":10,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"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":93,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], lambda x, y, i: 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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"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"]}}]},"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":"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":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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: list_reduce([], lambda a, b: x + y + 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":56,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":55,"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":[]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":59,"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":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","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":"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":"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":72,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["a"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_reduce([[[10, 20], [100, 200]], [[30, 40], [300, 400]], [[50, 60], [500, 600]]], lambda x, y: list_pack(\n\t\tlist_reduce(x, lambda l, m: list_pack(\n\t\t\tlist_reduce(l, lambda a, b: a + b) +\n\t\t\tlist_reduce(m, lambda c, d: c + d))) +\n\t\tlist_reduce(y, lambda n, o: list_pack(\n\t\t\tlist_reduce(n, lambda a, b: a + b) +\n\t\t\tlist_reduce(o, 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":8,"query_location_length":355,"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":20,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":22,"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":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":57,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":300}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":400}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"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":70,"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":71,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":60}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"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":81,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":500}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":600}}}]}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":94,"query_location_length":268,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":255,"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":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":120,"query_location_length":118,"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":132,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":135,"query_location_length":102,"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":["l"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["m"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":148,"query_location_length":89,"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":197,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":162,"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":174,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":177,"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":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":192,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":194,"query_location_length":1,"column_names":["b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":202,"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":214,"query_location_length":1,"column_names":["m"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":217,"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":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["d"]}}]},"expr":{"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":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":234,"query_location_length":1,"column_names":["d"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":243,"query_location_length":118,"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":255,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":258,"query_location_length":102,"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":["n"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["o"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":271,"query_location_length":89,"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":320,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":285,"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":297,"query_location_length":1,"column_names":["n"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":300,"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":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":315,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":313,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":317,"query_location_length":1,"column_names":["b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":325,"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":337,"query_location_length":1,"column_names":["o"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":340,"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":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["d"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":355,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":353,"query_location_length":1,"column_names":["c"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":357,"query_location_length":1,"column_names":["d"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], lambda x, y, i: x - y - i, 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":58,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"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"]}}]},"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":"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":49,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["i"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":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"]}}]},"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"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":7,"column_names":["initial"]}}]}],"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":[],"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"]}}]},"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"]}}]},"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":3,"column_names":["x_i"]}}]},"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["a_i"]}}]}},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":7,"column_names":["initial"]}}]}],"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], lambda acc, x: struct_pack(a:=acc.a + x, b:=acc.b), struct_pack(a:=0, b:='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":98,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":27,"query_location_length":50,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","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":57,"query_location_length":5,"column_names":["acc","a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":1,"column_names":["x"]}}]}},{"name":"b","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":71,"query_location_length":5,"column_names":["acc","b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"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":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":100,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_reduce([BLOB 'hello'], lambda x, y: x, 'text');","json":{"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_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":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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":12,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":35,"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":["x"]}},{"name":"","expression":{"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":48,"query_location_length":1,"column_names":["x"]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 SUM(list_i[1]) FROM lambda_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":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":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":17,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":6,"column_names":["list_i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"query_location_length":11,"schema_name":"","table_name":"lambda_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lambda_view"]}},"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, lambda x: 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":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":22,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"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_LESSTHAN","alias":"","query_location":35,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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, NULL, 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":57,"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":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":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":45,"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"]}}]},"expr":{"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":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["i"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 for x in c if x IS NULL] FROM test_vector_types(NULL::INT[]) t(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":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":19,"query_location_length":1,"column_names":["c"]}},{"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":"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"]}]}},{"name":"result","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"filter"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"result"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":40,"query_location_length":35,"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":62,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":64,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}}]},"column_name_alias":["c"],"with_ordinality":"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_concat([], [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":31,"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":2,"function_name":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_concat(NULL, [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":33,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_append(NULL, 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":"list_append","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":[]}},{"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":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(list_distinct([1, 1, NULL, 2, 2, 2, 3, NULL, NULL])) AS l ORDER BY l","json":{"error":false,"statements":[{"node":{"type":"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":["l"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":7,"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":14,"query_location_length":51,"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":28,"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":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_distinct(['2021-08-20'::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":42,"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":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":34,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"def"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 4, 3, 5, 5, 2, 2], [5, 5, 5, 1, 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":71,"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":60,"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":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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_sort(list_intersect([1::SMALLINT, 2::SMALLINT, 3::SMALLINT], [2::INT, 3::INT, 4::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":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":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":34,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"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":75,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":83,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":85,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":91,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,NULL) 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":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":"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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([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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_position([NULL, 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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_position([[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_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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_position([MAP([1], [2]), 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":42,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_resize(a, b) from string_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":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":10,"schema_name":"","table_name":"string_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["string_tbl"]}},"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, 3]}, {'a': 3, 'b': [4, 5]}]}, NULL, {'i': 1, 'j': [{'a': 1, 'b': [2, 3]}, {'a': 3, 'b': [4, 5]}]}], 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":147,"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":131,"function_name":"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":60,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":33,"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":34,"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":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"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":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":71,"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":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":102,"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":103,"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":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":117,"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":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":126,"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":132,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":140,"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":141,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}}]}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_resize(a, b) FROM bool_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":17,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":10,"schema_name":"","table_name":"bool_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bool_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT list_reverse([1, 42, 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":30,"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":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":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":14,"function_name":"list_reverse","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([[1], [1, 2], NULL, [NULL], [], [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":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_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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":41,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"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":[]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_unique([1, 1, 2, 2, 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":31,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_unique(['2021-08-20'::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":40,"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":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":32,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], [1.5, 2.5]::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":53,"function_name":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":39,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":25}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":50,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":11,"schema_name":"","table_name":"array_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["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, b], [c]) FROM struct_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":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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"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"]}}]}},{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["c"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":12,"schema_name":"","table_name":"struct_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_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(NULL, {'a': 1, 'b': 'a'}, {'a': 2, '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":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":18,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":38,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":58,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_where([1,2,3], [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":34,"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":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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":28,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(['14:59:37'::TIMETZ], [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":40,"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":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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14:59:37"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":41,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 list_zip([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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_zip([1,2,3], [2,3,4], [3,4,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":45,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"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":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 list_zip(['aa', '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":"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":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":17,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_zip(['{a: 1'::BLOB, '{a: 3'::BLOB]) a, a::VARCHAR::STRUCT(a BLOB)[] b, a == b","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":40,"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":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":24,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{a: 1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{a: 3"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":61,"query_location_length":18,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":63,"query_location_length":14,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":72,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}]}]}}},"try_cast":false},{"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":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"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 list_zip(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":15,"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":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(c,2) FROM TEST_VECTOR_TYPES(CAST(NULL AS INT[])) AS t(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":11,"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":["c"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":24,"query_location_length":46,"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":42,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}}]},"column_name_alias":["c"],"with_ordinality":"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(42, 84))[9999]","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":6,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9999}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 := col.i + 1, b := NULL::VARCHAR) 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":54,"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":"FUNCTION","type":"FUNCTION","alias":"a","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":31,"query_location_length":5,"column_names":["col","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"b","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":51,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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({a: 1, b: 2}, d := 3, a := '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":45,"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":21,"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":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":48,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 10000000000000000000000000000000000001::DECIMAL(38,0) % 0.00000000000000000000000000000000004","json":{"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":"%","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":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":542101086242752217,"lower":68739955140067329}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":37,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":36,"scale":35}},"is_null":false,"value":{"upper":0,"lower":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 binom(100, 2), binom(100, 98);","json":{"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":"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":14,"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":28,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":98}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, even(i + 0.9) from generate_series(-4,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":13,"function_name":"even","schema":"","filter":null,"order_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":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":9}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":29,"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":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"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 factorial(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":13,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 fmod(3, 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":12,"function_name":"fmod","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 cast(FLOOR(n::bigint) 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":62,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":32,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"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":19,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"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('asdf')","json":{"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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} -{"sql":"SELECT gamma(0::DOUBLE), gamma(-1::DOUBLE), lgamma(0::DOUBLE), lgamma(-1::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":16,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":17,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":33,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":17,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":18,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":72,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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);","json":{"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 mod(a, 2) from modme","json":{"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":"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":5,"schema_name":"","table_name":"modme","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["modme"]}},"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, 100.0::FLOAT) \u003e 99","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":41,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":36,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":990}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":1}},"is_null":false,"value":1000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 log10(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":12,"function_name":"log10","schema":"","filter":null,"order_bys":{"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":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":1}},"is_null":false,"value":1000}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 pow(a, 0) 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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}],"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(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":12,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 round(42::DOUBLE, 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":20,"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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 roundBankers(45.5, 0), roundBankers(44.5, 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":"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":455}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":43,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":445}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 round(100::INTEGER, int)\nfrom 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":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":16,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":3,"column_names":["int"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"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":[]},"column_name_alias":[],"with_ordinality":"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(COS(n::integer)*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":"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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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(ATAN(n::integer)*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":67,"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":"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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(ACOS(n::integer)*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":"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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT cast(ATAN2(n::smallint, 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":73,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":43,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"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":12,"query_location_length":22,"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":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"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 atanh(-0.5), atanh(0), atanh(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":11,"function_name":"atanh","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":-5}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":8,"function_name":"atanh","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":10,"function_name":"atanh","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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::TINYINT + 1::VARCHAR","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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 + 1::REAL","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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::INT","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]}}]}}]}}]}}]}}]}}]}}]}],"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 -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":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":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"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 i//2=1, 1=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":45,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":6,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":15,"query_location_length":6,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}],"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 1::BIGINT \u003c\u003c -1::BIGINT, 1::BIGINT \u003e\u003e -1::BIGINT, 1::BIGINT \u003c\u003c 1000::BIGINT, 1::BIGINT \u003e\u003e 1000::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":23,"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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"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":22,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"query_location_length":23,"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":33,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":47,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":25,"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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"query_location_length":25,"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":85,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' \u003e 10","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 AND true","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":13,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 2\u003e3 AND 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":35,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":7,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":7,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":15,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"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 d, t, t + d\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["t"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["d"]}}]}],"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 * 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":5,"scale":1}},"is_null":false,"value":10240}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":500}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^(.*int|varchar|bignum)$"}},"qualified_exclude_list":[],"rename_list":[]}}]}],"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select md5_number('hello'), md5_number_upper(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":19,"function_name":"md5_number","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":22,"function_name":"md5_number_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":45,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT OVERLAY('abcdef' PLACING 'XX' FROM 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdef"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"XX"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 overlay('33333rce' placing 'resou' from -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":45,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"33333rce"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"resou"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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":[]}]}} -{"sql":"SELECT overlay('abc' placing 'X' from 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"X"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5 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":31,"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5 KB"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 data(value) AS (\n\tVALUES\n\t\t('1 KB'),\n\t\t('2 MB'),\n\t\t('3 GiB'),\n\t\t('4 TB'),\n\t\t(NULL)\n)\nSELECT value, parse_formatted_bytes(value) AS bytes FROM data;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"data","value":{"aliases":["value"],"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":33,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 KB"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 MB"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 GiB"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4 TB"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]]},"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":97,"query_location_length":5,"column_names":["value"]},{"class":"FUNCTION","type":"FUNCTION","alias":"bytes","query_location":104,"query_location_length":28,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":5,"column_names":["value"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"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 try(parse_formatted_bytes('abc'));","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":33,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"query_location_length":28,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 parse_path('/path/to/file.csv', '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":48,"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":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"forward_slash"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('/\\\\/', '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":32,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/\\\\/"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"both_slash"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('path/to/file.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":37,"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":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"backslash"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', true, '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":41,"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/path/to"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"system"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 parse_filename(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":32,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 parse_dirname('file.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":25,"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"file.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":[]}]}} -{"sql":"SELECT path_join('dir/..', '../..');","json":{"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":"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dir/.."}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 path_join('', '');","json":{"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":"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":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 regexp_extract(filename, 'rundate_(\\d+-\\d+-\\d+)_pass_(\\d+)', []) 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":64,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rundate_(\\d+-\\d+-\\d+)_pass_(\\d+)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"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":[]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"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('line1\\nline2');","json":{"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_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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"line1\\nline2"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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..)(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":44,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(b..)(b..)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regexp_extract('foobarbaz', '(zzz)', 1, '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":44,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(zzz)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('1a 2b 14m', '\\\\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1a 2b 14m"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\\\d+"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regexp_extract_all('AbCdEfCg', '([[:lower:]]+)C([[:lower:]]+)', 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"AbCdEfCg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"([[:lower:]]+)C([[:lower:]]+)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regexp_extract_all('aabca', '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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aabca"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('abc', '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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a(b)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 regexp_extract_all('abc', '.{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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".{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 str, \n REGEXP_EXTRACT_ALL(str,'ab+cd') AS matched\nFROM (\n VALUES ('acd'), ('abcd'), ('abcdacd'), ('abbcd'), ('abbbcd'), ('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":"matched","query_location":15,"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":"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ab+cd"}}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":63,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"acd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdacd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abbcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abbbcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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('si1si2', 'si\\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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"si1si2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"si\\d$"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('Aa aA', '(a)', ['lower'], 'i') 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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Aa aA"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":43,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"lower"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('abc', '(x)(y)', ['x','y']) 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":46,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(x)(y)"}}},{"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 REGEXP_EXTRACT_ALL('test', '(.)', ['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":40,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(.)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":42,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('abd', 'a(bc)?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":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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abd"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a(bc)?d"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g1"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('aaaaaaaa', '(a)(a)', ['g1','g2']) 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":53,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaaaaaaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a)(a)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":49,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g2"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)', ['g1','g2']);","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":41,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g2"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' !~* 'a'","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":13,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":7,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ABC"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_replace('ANA ana', 'ana', 'banana', 'gi')","json":{"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":"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ANA ana"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ana"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"banana"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"gi"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('abc', '*', '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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"*"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_replace('abcabc', '(b)', '\\3Y', '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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcabc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(b)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\3Y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(c0, '^sdf$') 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_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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^sdf$"}}}]}],"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('as^/$df', '^/$', '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":37,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"as^/$df"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^/$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"l"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_full_match(s, p, 'c') FROM regex","json":{"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_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":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["p"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":5,"schema_name":"","table_name":"regex","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["regex"]}},"where_clause":null,"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":8,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 sha256()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"sha256","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":20,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}}]}],"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 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":13,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 bar(x * x, 0, 100) from range(0, 11) 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":18,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":11,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["x"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":31,"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":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]},"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 bar(1, 'infinity'::double, 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":30,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 10, 0.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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":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 BIT_LENGTH(b) 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":"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":["b"]}}]}],"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 LOWER(b), LCASE(b) 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":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":["b"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":23,"query_location_length":1,"column_names":["b"]}}]}],"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 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":28,"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":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_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, 100), 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":114,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":84,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":69,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"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"]}}]},"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":1,"column_names":["a"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["b"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":3,"column_names":["x_i"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"column_names":["a_i"]}}]},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 1000), 100), 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":138,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":30,"query_location_length":110,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"query_location_length":100,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":63,"query_location_length":71,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"query_location_length":61,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}}]}},{"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"]}}]},"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["a"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["b"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":1,"column_names":["c"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":1,"column_names":["d"]}}]},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"syntax_type":"SINGLE_ARROW"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(range(5), x -\u003e {x:x, w:list_filter(range(5), y -\u003e abs(y-x) \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":76,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":28,"query_location_length":54,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["x"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":"x","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"x","query_location":36,"query_location_length":1,"column_names":["x"]}},{"name":"w","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"w","query_location":41,"query_location_length":40,"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":53,"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":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":63,"query_location_length":17,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["y"]},"expr":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":68,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"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":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":72,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["x"]}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"syntax_type":"SINGLE_ARROW"}}]}}]},"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 COUNT(*) FROM read_parquet('{TEST_DIR}/my_file_' ||\nlist_aggr(list_transform(list_filter(['s', 'c', 'b', NULL, 'a'], x -\u003e x IS NOT NULL AND x != 's'),\ns -\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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":185,"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":171,"function_name":"||","schema":"","filter":null,"order_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/my_file_"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":132,"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":103,"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":72,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":124,"query_location_length":31,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":1,"column_names":["x"]},"expr":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":129,"query_location_length":26,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":131,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":1,"column_names":["x"]}]},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":147,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s"}}}]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":158,"query_location_length":13,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":1,"column_names":["s"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":163,"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":169,"query_location_length":1,"column_names":["s"]}}]},"syntax_type":"SINGLE_ARROW"}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"string_agg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".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([], 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":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":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":[]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":26,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["x"]},"expr":{"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":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_sort(list_transform(list_distinct(list_concat([1,2],[2,2])), 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":78,"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":67,"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":32,"query_location_length":39,"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":46,"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":58,"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":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"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":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":73,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["x"]},"expr":{"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":78,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_transform([{'b' : {'a': 1}}], x -\u003e x.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":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":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":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":42,"query_location_length":10,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["x"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":5,"column_names":["x","b","a"]},"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 list_transform([[2, 3], [4]], x -\u003e list_transform([1], 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":70,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":37,"query_location_length":39,"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":62,"query_location_length":13,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["y"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"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":67,"query_location_length":1,"column_names":["x"]}},{"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"]}}]}}]},"syntax_type":"SINGLE_ARROW"}}]},"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 list_transform([1,2,3,4,5], (x, i) -\u003e (x * 10 / 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":51,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":35,"query_location_length":22,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":36,"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":["i"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["i"]}}]},"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 list_transform([10], lambda x: sum(1) + 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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":28,"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":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":38,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([TIMESTAMP '1992-03-22', TIMESTAMP '209-03-22', TIMESTAMP '1700-03-22'], lambda x: century(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":109,"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":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":23,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"209-03-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1700-03-22"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":95,"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":105,"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":113,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(['duck', 'a', 'ö'], lambda duck: contains(concat(duck, 'DB'), 'duck'))","json":{"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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ö"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":40,"query_location_length":49,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["duck"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"query_location_length":18,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":4,"column_names":["duck"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DB"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_filter([1, NULL], lambda arr_elem: arr_elem \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":54,"function_name":"array_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":20,"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":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":31,"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":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":48,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":8,"column_names":["arr_elem"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([['abc']], 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":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":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":"FUNCTION","type":"FUNCTION","alias":"","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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"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":43,"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":55,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":58,"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":68,"query_location_length":1,"column_names":["y"]},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(UNNEST(s), x -\u003e UNNEST(x)) 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":41,"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":"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":["s"]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":33,"query_location_length":14,"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":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":45,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"SINGLE_ARROW"}}]}],"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 list_has_all(list_transform(['a'], lambda variable_has_all: variable_has_all), ['b']) 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_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":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":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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":42,"query_location_length":41,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["variable_has_all"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":16,"column_names":["variable_has_all"]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"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":87,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_filter(['apple', 'banana', 'cherry', 'kiwi', 'mango'], lambda fruit: 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":95,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"apple"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"banana"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"cherry"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"kiwi"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mango"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":67,"query_location_length":34,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["fruit"]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"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":90,"query_location_length":5,"column_names":["fruit"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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: 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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"]}}]},"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":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":["a"]}},{"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"]}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["y"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"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 + a + b + x_i + 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"]}}]},"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"]}}]},"expr":{"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":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":"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":"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"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":1,"column_names":["a"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["b"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":3,"column_names":["x_i"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["a_i"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"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 \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)\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":188,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"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"]}}]},"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"]}}]}}]}},{"name":"b","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":187,"query_location_length":6,"column_names":["next","b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::INTEGER, 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":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":19,"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":20,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":36,"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":["acc"]}},{"name":"","expression":{"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":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":["acc"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["x"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":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":["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"]}}]},"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"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"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(n, lambda x, y: list_reduce(l, lambda a, b: x + y + a + b), 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":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":"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":55,"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"]}}]},"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":47,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":50,"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":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["b"]}}]},"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":"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":"FUNCTION","type":"FUNCTION","alias":"","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":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":1,"column_names":["a"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["b"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":7,"column_names":["initial"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"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 a FROM where_clause WHERE list_reduce(a, lambda x, y: x - y, initial) \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":["a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":12,"schema_name":"","table_name":"where_clause","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["where_clause"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":33,"query_location_length":47,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":45,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":48,"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"]}}]},"expr":{"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"]}}]},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":7,"column_names":["initial"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"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 \u003e 3, 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"]}}]},"expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":35,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"syntax_type":"LAMBDA_KEYWORD"}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":7,"column_names":["initial"]}}]}],"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 list_transform([1,2], lambda x:\n\tlist_transform([3,4], lambda y:\n\t\tlist_transform([5,6], lambda z: z + 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":111,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":29,"query_location_length":88,"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":40,"query_location_length":77,"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":55,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":62,"query_location_length":54,"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":74,"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":89,"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":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":96,"query_location_length":19,"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":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":["z"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["y"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(\nlist_filter(['s', 'c', 'b', NULL, 'a'], lambda y: y != 's'), lambda x: x IS NOT NULL),\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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":216,"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":202,"function_name":"||","schema":"","filter":null,"order_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/my_file_"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":59,"query_location_length":163,"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":134,"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":98,"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":97,"query_location_length":59,"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":109,"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":110,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":137,"query_location_length":18,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":147,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":1,"column_names":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s"}}},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":158,"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":170,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":1,"column_names":["x"]}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":184,"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":194,"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":200,"query_location_length":1,"column_names":["s"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":205,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"string_agg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".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, NULL, -2, NULL], 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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":43,"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":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":53,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], [4], NULL, [1], [8]], lambda x: list_concat(\n\tlist_transform(x, lambda y: CASE WHEN y \u003e 1 THEN 'yay' ELSE 'nay' END), 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":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":22,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":50,"query_location_length":98,"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":60,"query_location_length":88,"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":74,"query_location_length":70,"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":89,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":92,"query_location_length":51,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["y"]},"expr":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":102,"query_location_length":41,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":112,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["y"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"yay"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nay"}}},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":1,"column_names":["x"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_sum(list_transform(l, lambda elem: elem - 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":55,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":50,"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":39,"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":54,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":57,"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":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":70,"query_location_length":4,"column_names":["elem"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["n"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"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(['abc'], lambda x, i: x[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":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":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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":31,"query_location_length":21,"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"]}}]},"expr":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":45,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["x"]},{"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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1, 20000, 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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20000}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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, 2] + [3, 4]","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":0,"function_name":"+","schema":"","filter":null,"order_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"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":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_concat([{a: 1}, {a: 2}], [{a: 3}, {a: 4}], [{a: 5}, {a: 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":65,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":56,"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":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"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":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 array_push_back([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":"array_push_back","schema":"","filter":null,"order_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i, list_contains(i,'aaaaaaaaaaaaaaaaaaaaaaaa') 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":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":"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":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaaaaaaaaaaaaaaaaaaaaaaa"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"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([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":21,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_contains([NULL, 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":"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":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_contains([[1,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":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":21,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_contains([MAP([1], [2]), 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":42,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_distance(l, [1, 2, 3]) 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":27,"function_name":"list_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":21,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"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 UNNEST(list_distinct(list_distinct([1, 1, -5, 10, 10, 2]))) AS l ORDER BY l","json":{"error":false,"statements":[{"node":{"type":"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":["l"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":7,"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":14,"query_location_length":51,"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":28,"query_location_length":36,"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":42,"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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_distinct(['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":56,"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":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":47,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20 00:00:00.123"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, l2) 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":20,"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"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["l2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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 list_has_any(l1, l2) 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":20,"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"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["l2"]}}]}],"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 l1 \u003c@ 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":"\u003c@","schema":"","filter":null,"order_bys":{"type":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"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([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], [3, 6, 9, 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":81,"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":70,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"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":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(list_intersect([1::INT, 2::INT], [2.0::DOUBLE, 3.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":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":"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":29,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":20}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":30}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)","json":{"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_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":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_position([1.0,2.0,3.0,4.0],5.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_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":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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":20}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":30}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":40}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":50}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)","json":{"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_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":2,"function_name":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_position([[1,NULL],[1], [1,2,3]],[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":47,"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":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":22,"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":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"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":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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, j, list_position(i,j) from test0","json":{"error":false,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":18,"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":27,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":5,"schema_name":"","table_name":"test0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_resize(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":29,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 list_resize([1, 2, 3], len(list_resize([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":54,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":30,"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":34,"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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_resize([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":22,"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":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_sort((list), 'desc') == list_reverse(list) from tbl_big;","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":47,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":25,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":4,"column_names":["list"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"desc"}}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"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":49,"query_location_length":4,"column_names":["list"]}}]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":7,"schema_name":"","table_name":"tbl_big","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_big"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH example AS (\n SELECT [1, 2, 3] AS arr UNION ALL\n SELECT [4, 5] AS arr UNION ALL\n SELECT [] AS arr\n)\nSELECT\n list_reverse(arr) AS reverse_arr\nFROM example ORDER BY length(reverse_arr) DESC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":172,"query_location_length":19,"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":179,"query_location_length":11,"column_names":["reverse_arr"]}}]}}]}],"cte_map":{"map":[{"key":"example","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":"FUNCTION","type":"FUNCTION","alias":"arr","query_location":27,"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":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"FUNCTION","type":"FUNCTION","alias":"arr","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"arr","query_location":96,"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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":"reverse_arr","query_location":117,"query_location_length":17,"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":130,"query_location_length":3,"column_names":["arr"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":155,"query_location_length":7,"schema_name":"","table_name":"example","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["example"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select\n child,\n count(*) as cnt,\n list_sort(\n list(\n parent\n )\n )\n as source_parents\nfrom test1\ngroup by 1\nhaving cnt \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":11,"query_location_length":5,"column_names":["child"]},{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","query_location":22,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"source_parents","query_location":43,"query_location_length":59,"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":62,"query_location_length":34,"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":6,"column_names":["parent"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":130,"query_location_length":5,"schema_name":"","table_name":"test1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test1"]}},"where_clause":null,"group_expressions":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":154,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":3,"column_names":["cnt"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":160,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT list_unique(l) 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":14,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["l"]}}]}],"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 list_unique(['14:59:37'::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":33,"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":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":30,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14:59:37"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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]::INTEGER[2], [5.6, 7.8]::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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":12,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":59,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":56}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":78}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 mixed_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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":17,"schema_name":"","table_name":"mixed_array_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mixed_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', NULL], NULL, ['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":53,"function_name":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 list_value(s, s, s) AS res FROM tbl;","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":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":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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_where([NULL::BOOLEAN], [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":"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":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":23,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":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":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 list_where(['{a: 1}'::BLOB, '{a: 3}'::BLOB], [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":59,"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":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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{a: 1}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{a: 3}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]}},{"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":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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])","json":{"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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 list_zip([1,2,3], 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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 list_zip(['14:59:37'::TIME]) a, a::VARCHAR::STRUCT(\"time\" TIME)[] b, a == b","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":28,"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":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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14:59:37"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":49,"query_location_length":23,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":19,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"time","query_location":65,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}]}]}}},"try_cast":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":76,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"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 list_zip([[1], [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":29,"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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 repeat([{'x': 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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":15,"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":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 COALESCE(*COLUMNS(lambda c: {'title': c}.title IN ('a', 'c')))\nFROM (SELECT NULL, 2, 3) t(a, b, c);","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":62,"children":[{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":16,"query_location_length":52,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"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":25,"query_location_length":42,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["c"]},"expr":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":57,"query_location_length":10,"children":[{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":35,"query_location_length":18,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":"title","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"title","query_location":45,"query_location_length":1,"column_names":["c"]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"title"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}]},"syntax_type":"LAMBDA_KEYWORD"}}]},"qualified_exclude_list":[],"rename_list":[]}]}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":75,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["a","b","c"]},"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))[(-9223372036854775808)::BIGINT]","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":32,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 data AS (SELECT 1 AS a, 2 AS b, 3 AS c)\nSELECT struct_update (data, d := 4) FROM data;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"data","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":"a","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":28,"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":67,"query_location_length":4,"column_names":["data"]}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"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 struct_update(col, i:='i='||col.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":34,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i="}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":5,"column_names":["col","i"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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 % 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":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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 binom(120, 60);","json":{"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":"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":120}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":60}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT even(8.9), even(-8.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":9,"function_name":"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":12,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":89}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":10,"function_name":"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":23,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":-89}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":13,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 cast(CEIL(n::tinyint) 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":62,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":32,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"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":18,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"tinyint","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"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(FLOOR(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":62,"query_location_length":1,"column_names":["n"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":32,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"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":19,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"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 lgamma(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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 gcd(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":"gcd","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 ln(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":"ln","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 nextafter()","json":{"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":"nextafter","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 0::FLOAT) 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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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 pi()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":4,"function_name":"pi","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 pow(a, b) 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":["a"]}},{"name":"","expression":{"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":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(-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":"setseed","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":-11}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(a, 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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-45}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":43,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-35}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 signbit(abs(x)) FROM negative_zero;","json":{"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":"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":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":19,"query_location_length":1,"column_names":["x"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":13,"schema_name":"","table_name":"negative_zero","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["negative_zero"]}},"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::float)*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":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":"*","schema":"","filter":null,"order_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":13,"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":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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 cast(ATAN(n::float)*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":"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":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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(ACOS(n::float)*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":91,"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":"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":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":65,"query_location_length":16,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["n"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT cast(ATAN2(n::bigint, 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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 asinh(-1), asinh(0), asinh(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":"asinh","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":8,"function_name":"asinh","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":8,"function_name":"asinh","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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::SMALLINT + 1::SMALLINT","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 + 1::VARCHAR","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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::REAL","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":["i"]}}]}],"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},"named_param_map":[]}]}} +{"sql":"SELECT 2+i=5, 5=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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["i"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},"right":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT 18 BETWEEN NULL AND ( + col0 * + CAST ( NULL AS INTEGER ) + - 3 / col2 ) OR NOT col0 BETWEEN col2 + + col1 AND NULL ORDER BY 1 DESC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"col2","query_location":16,"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":18,"query_location_length":4,"column_names":["col2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"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":47,"query_location_length":119,"children":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":47,"query_location_length":76,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":54,"query_location_length":69,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"upper":{"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"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":75,"query_location_length":4,"column_names":["col0"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"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":84,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"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":111,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-3}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":4,"column_names":["col2"]}}]}}]}}]},{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":127,"query_location_length":39,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":136,"query_location_length":30,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":4,"column_names":["col0"]},"lower":{"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":144,"query_location_length":4,"column_names":["col2"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":151,"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":153,"query_location_length":4,"column_names":["col1"]}}]}}]},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 3 \u003c\u003c '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":12,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1000"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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 format_bytes(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":"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 format_bytes(1e15::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":26,"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":24,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":1000000000000000.0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT hex(unhex('abcd'));","json":{"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":"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":13,"function_name":"unhex","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcd"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"_"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 {'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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdef"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"XX"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"33333rce"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"resou"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"XY"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 MB"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-5 MB"}}}]}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\\path\\to\\file', '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":44,"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\path\\to\\file"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"forward_slash"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":12,"function_name":"parse_path","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('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_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":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 parse_dirpath('/path/to/file.csv', '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":51,"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":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"forward_slash"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_filename('path/to/file.csv', 'system')), (parse_filename('path/to/file.csv\\file2.csv', 'both_slash')), (parse_filename('path/to/file.csv', 'forward_slash')), (parse_filename('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":233,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":44,"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":38,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"system"}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"query_location_length":58,"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":86,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path/to/file.csv\\file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"both_slash"}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":133,"query_location_length":51,"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":148,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"forward_slash"}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":188,"query_location_length":57,"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":203,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path\\to\\file.csv/file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"backslash"}}}]}]]},"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 parse_filename('/', '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":32,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"backslash"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 (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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path\\to\\file.csv/file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"system"}}}]}],[{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path/to/file.csv\\file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"both_slash"}}}]}],[{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path/to/file.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"forward_slash"}}}]}],[{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"path\\to\\file.csv/file2.csv"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"backslash"}}}]}]]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/usr/local"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":"WITH patterns AS (\n\tSELECT 'rundate_(\\d+-\\d+-\\d+)_pass_(\\d+)' AS pattern FROM range(3)\n)\nSELECT regexp_extract(filename, pattern, ['rundate', 'pass']) AS groups\nFROM filenames, patterns","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"patterns","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":"pattern","query_location":27,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rundate_(\\d+-\\d+-\\d+)_pass_(\\d+)"}}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"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":"groups","query_location":96,"query_location_length":54,"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":111,"query_location_length":8,"column_names":["filename"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":7,"column_names":["pattern"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":130,"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":131,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rundate"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pass"}}}]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":161,"query_location_length":24,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":166,"query_location_length":9,"schema_name":"","table_name":"filenames","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["filenames"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":177,"query_location_length":8,"schema_name":"","table_name":"patterns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["patterns"]}},"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 regexp_escape('@');","json":{"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":"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 regexp_extract('foobarbaz', '(b..)(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":44,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(b..)(b..)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regexp_extract('foobarbaz', '(b..)', 1, '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":44,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobarbaz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(b..)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1a 2b 14m"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\\\d+"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 regexp_extract_all('abc=111, def=222, ghi=333', '(\"[^\"]+\"|\\w+)=(\"[^\"]+\"|\\w+)', 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":81,"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":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc=111, def=222, ghi=333"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(\"[^\"]+\"|\\w+)=(\"[^\"]+\"|\\w+)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regexp_extract_all('aaba', '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":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":26,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaba"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('abbb', '^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":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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abbb"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^a*(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 regexp_extract_all('\\001\\002\\003', '\\002?')","json":{"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\001\\002\\003"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\002?"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,'(ab)+cd') AS matched\nFROM (\n VALUES ('bcd'), ('abcd'), ('abbcd'), ('ababcd'), ('ababxcd')\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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(ab)+cd"}}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":65,"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":77,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abbcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ababcd"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ababxcd"}}]]},"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('si1si2', '^(si\\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":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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"si1si2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^(si\\d)(?:.*)$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 regexp_extract_all(NULL, '(a)', ['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":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)?', ['a']) 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a)?"}}},{"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_extract_all('a 2b 14m', '(\\d+)?([a-z]+)', ['g1','g2']) 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":61,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a 2b 14m"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(\\d+)?([a-z]+)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":57,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g2"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('ad', 'a(bc)?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":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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ad"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a(bc)?d"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g1"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('aaaaaaaa', '(a)(a)(a)', ['g1','g2','g3']) 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":61,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaaaaaaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(a)(a)(a)"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":52,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g3"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 regex WHERE REGEXP_MATCHES(s, 'as(c|d|e)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":["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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"as(c|d|e)f"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * ~ 'b' FROM regex_columns_partial","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":5,"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":"STAR","type":"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"query_location_length":21,"schema_name":"","table_name":"regex_columns_partial","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["regex_columns_partial"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * ~* 'b.*' FROM regex_columns_full","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":8,"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":"STAR","type":"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":12,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b.*"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":18,"schema_name":"","table_name":"regex_columns_full","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["regex_columns_full"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT regexp_replace('as^/$df', '^/$', '', '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":"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"as^/$df"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^/$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"l"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '^/([^/]+)/.*$', '\\1') FROM (VALUES\n ('/usr/local/bin/duckdb'),\n ('/etc/hosts'),\n ('/var/'),\n ('relative/path/no/leading/slash')) 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":40,"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^/([^/]+)/.*$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\1"}}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":53,"query_location_length":113,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/usr/local/bin/duckdb"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/etc/hosts"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/var/"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"relative/path/no/leading/slash"}}]]},"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 regexp_replace('abc', '(b)', '\\3Y');","json":{"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_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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(b)"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\3Y"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(c0, CAST(NULL AS STRING)) 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":40,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":6,"catalog":"","schema":"","type_name":"STRING","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"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_full_match('hello\nworld', '.*', '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":43,"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":25,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello\nworld"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".*"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 regexp_split_to_table('axbyc', '[x|y]'), 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":39,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"axbyc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[x|y]"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 sha1(s), sha1('1') FROM strings WHERE s::INTEGER BETWEEN 1 AND 3 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":81,"query_location_length":1,"column_names":["s"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":7,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["s"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":9,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}}]}],"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":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":56,"query_location_length":15,"input":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["s"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strip_accents(s)=strip_accents(str) FROM collate_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":35,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":16,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["s"]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":18,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["str"]}}]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"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 array_extract(s, 2147483646) 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":"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":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483646}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"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(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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 bar(40, 20, 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":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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":30,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.375)","json":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":3}},"is_null":false,"value":1375}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"bit_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":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 length_grapheme('🤦🏼‍♂️')","json":{"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":"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":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 substring_grapheme('🤦🏼‍♂️🤦🏼‍♂️🤦🏼‍♂️', 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":79,"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":53,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"🤦🏼‍♂️🤦🏼‍♂️🤦🏼‍♂️"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 CONCAT('hello', ' ', 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["s"]}}]}],"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 CONCAT('1', '2', '3', '4', '5', '6', '7', '8', '9', '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":56,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"7"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"8"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 CONCAT_WS(',', '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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} -{"sql":"select CONCAT_WS(a, NULL, b, '') FROM strings 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":55,"query_location_length":1,"column_names":["a"]}}]}],"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}],"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 contains(NULL,'o') 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"o"}}}]}],"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT damerau_levenshtein('three', 'there')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"three"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"there"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('organ', 'no')","json":{"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"organ"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"no"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '')","json":{"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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 damerau_levenshtein(s, 'test') 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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}}]}],"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 format('{}', NULL), format(NULL, '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":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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":30,"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":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"world"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{:.2}', 0.00023404094995959);","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{:.2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":19,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":18,"scale":17}},"is_null":false,"value":23404094995959}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', 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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%_d"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":9,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":123456789}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('%,.3f', 123456.789::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":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":14,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%,.3f"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":10,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":9,"scale":3}},"is_null":false,"value":123456789}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 'bbb'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bbb"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '[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":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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[0-9]"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '\\\\'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 '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":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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 FROM strings WHERE s GLOB pat","json":{"error":false,"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":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":28,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":3,"column_names":["pat"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'ababac' ILIKE '%abac'","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":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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ababac"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%abac"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 unicode_strings WHERE s ILIKE pat","json":{"error":false,"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":15,"schema_name":"","table_name":"unicode_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unicode_strings"]}},"where_clause":{"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":36,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["pat"]}}]},"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 '%straße%' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%straße%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a ILIKE b, a !~~* b FROM unicode_possible 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":58,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","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":7,"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"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":18,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":16,"schema_name":"","table_name":"unicode_possible","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unicode_possible"]}},"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 '///';","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":25,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a%c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a$%C"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 id FROM t WHERE s ILIKE '%straße%' 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":63,"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":28,"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":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%straße%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}]},"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 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":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":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":21,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT instr(s,'ello') 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":15,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ello"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ñ"}}}]}],"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 jaccard(NULL, '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":22,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} -{"sql":"SELECT round(jaccard('ababababababba', 'aaaabbbccddeeffgabcccc'), 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":61,"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":51,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ababababababba"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaaabbbccddeeffgabcccc"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 jaro_winkler_similarity('DwAyNE', 'DuANE')","json":{"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":"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DwAyNE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DuANE"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('hippo', 'elephant')","json":{"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":"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hippo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"elephant"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(jaro_winkler_similarity(s, '00000000')) 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":43,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00000000"}}}]}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT levenshtein('hallo', 'hoi')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hallo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hoi"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["s"]}}]}],"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 levenshtein('hi', 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hi"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["s"]}}]}],"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a_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 'zebra elephant tiger horse' LIKE '%'","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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 '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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra%elephant%tiger%horse%"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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%elephant%tiger%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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra%elephant%tiger%horse"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":11,"query_location_length":19,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 pat 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":3,"column_names":["pat"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"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 mismatches(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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 mismatches(s, 'hallo') 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":"mismatches","schema":"","filter":null,"order_bys":{"type":"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hallo"}}}]}],"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 RPAD('Base', 7, '-|'), RPAD('Base', 6, '-|'), RPAD('Base', 5, '-|'), RPAD('Base', 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":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":12,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-|"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-|"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":58,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-|"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":81,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Base"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 RPAD(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":"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 prefix('abcdefgh', 'abcde')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdefgh"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcde"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 PREFIX(t0.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":"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":17,"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":30,"query_location_length":5,"column_names":["t0","c0"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]},"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 🦆')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two ñ three ₡ four 🦆 end"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two ñ three ₡ four 🦆"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('%hhd %hd %d %lld', 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%hhd %hd %d %lld"}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":33}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":80}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', 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":43,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%x"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":20,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":18446744073709551615}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"ubigint","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%s"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 REPEAT(b, 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":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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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 REPLACE('This is the main test string', 'main', 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":53,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"This is the main test string"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 REVERSE(b) 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":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":["b"]}}]}],"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 'aaa' SIMILAR TO '.*'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 'aaa' !~ 'bbb'","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":14,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":8,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bbb"}}}]}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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',',,',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":28,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a,,b,,c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":",,"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 split_part(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":22,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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(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":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"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, 0, 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":20,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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 array_slice('hello', NULL, NULL+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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}]}],"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([], -1, -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":41,"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":"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":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'[off:length+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":14,"query_location_length":16,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["off"]},{"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":19,"query_location_length":6,"column_names":["length"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":3,"column_names":["off"]}}]}]}],"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 s[1:0] 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}],"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_regex('üüüüü', '◌̈'))","json":{"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":"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":41,"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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"üüüüü"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 UNNEST(string_split(s, 'bb')) FROM documents WHERE s LIKE '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":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bb"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":9,"schema_name":"","table_name":"documents","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["documents"]}},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"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":58,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select string_split(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":31,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":23,"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":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 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":14,"function_name":"string_split","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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[2147483646] FROM strings","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":12,"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":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483646}}]}],"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(NULL from NULL 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":36,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":6,"column_names":["length"]}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT substring(s from 15 for 7) 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":"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}],"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 suffix('abcdefgh', 'abcdefgh')","json":{"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":"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdefgh"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdefgh"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 suffix('two ñ three ₡ four 🦆 end', 'two n 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":73,"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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two ñ three ₡ four 🦆 end"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two n three ₡ four 🦆 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 to_base(10, 16)","json":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('abcde', 'aabcc', '14235')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcde"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aabcc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14235"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(b, 'ÄW🦆l', 'ow🐱') 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":"translate","schema":"","filter":null,"order_bys":{"type":"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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ÄW🦆l"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ow🐱"}}}]}],"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 RTRIM(b) 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":8,"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":13,"query_location_length":1,"column_names":["b"]}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select UNICODE(a) 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":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"]}}]}],"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 url_decode(c) FROM t24268","json":{"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":"url_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":18,"query_location_length":1,"column_names":["c"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":6,"schema_name":"","table_name":"t24268","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t24268"]}},"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, TIME '14:28:50.447') 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":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":"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":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14:28:50.447"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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 dayofweek(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":12,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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 date_part('julian', 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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"julian"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(milliseconds 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MILLISECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]}],"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(dayofyear 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":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":15,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"dayofyear"}}},{"name":"","expression":{"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":38,"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(null::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":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":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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":52,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 seconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"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, '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":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":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-3 hours"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 hour 30 minutes"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '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":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":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":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":39,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-2000000000 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":79,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '10:00:00'::time, null::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":67,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{lspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{rspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-06"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2021}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2021}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2021}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9223372036854775806}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01 00:00:12.456789"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1969-12-31 23:59:05.123456"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":175,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}]]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"weekday"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"isodow"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"doy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"julian"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2008-01-01 00:00:01.894"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"year"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["ts"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOW"}}},{"name":"","expression":{"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]}],"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-9223372022400001000 microseconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-04-09 17:00:00-07"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2400}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-Infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{specifier}', '{lspecial}'::TIMESTAMPTZ_NS, '{rspecial}'::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":83,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{specifier}"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{lspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{rspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\tdate_diff('minute', '2022-10-30 02:17:00.000000000+02'::TIMESTAMPTZ_NS, '2022-10-30 01:59:59.999999999+01'::TIMESTAMPTZ_NS),\n\tdate_diff('minute', '2022-10-30 02:17:00.000000000+02'::TIMESTAMPTZ_NS, '2022-10-30 02:00:00.000000001+01'::TIMESTAMPTZ_NS);","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":123,"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":18,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"minute"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-10-30 02:17:00.000000000+02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":114,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-10-30 01:59:59.999999999+01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":134,"query_location_length":123,"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":144,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"minute"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":188,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-10-30 02:17:00.000000000+02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":190,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":240,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-10-30 02:00:00.000000001+01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":242,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(ts), second(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":"second","schema":"","filter":null,"order_bys":{"type":"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":21,"function_name":"second","schema":"","filter":null,"order_bys":{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 epoch(ts), epoch(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":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":13,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":20,"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":26,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":2,"column_names":["ts"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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_minute', '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":67,"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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone_minute"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-07-31 00:00:00-07"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, DATE_PART('{partcode}', ts) AS p, DATE_PART(['{partcode}'], ts) AS s\nFROM timestamps\nWHERE p IS DISTINCT FROM s['{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":2,"column_names":["ts"]},{"class":"FUNCTION","type":"FUNCTION","alias":"p","query_location":11,"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":21,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":45,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":56,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":2,"column_names":["ts"]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":102,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":1,"column_names":["p"]},"right":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":122,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXTRACT(month FROM c0) IS NULL, EXTRACT(quarter FROM c0) IS NULL FROM t1;","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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MONTH"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":2,"column_names":["c0"]}}]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":64,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":24,"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":47,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"QUARTER"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["c0"]}}]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":77,"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('century', '1904-02-29 12:00:00-08'::TIMESTAMPTZ, '2005-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":96,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"century"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1904-02-29 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2005-02-28 13:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 13:00:00-08'::TIMESTAMPTZ, '2004-02-28 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-01-31 13:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-28 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.050-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":104,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"millisecond"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-01-31 12:00:00.050-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-01 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, d), s 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":16,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["s"]}],"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 date_trunc('day', 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":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-01-06 04:03:02-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"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 ts, mts\nFROM (SELECT ts, make_timestamptz(yeartz(ts), NULL, day(ts), hour(ts), minute(ts), microsecond(ts) / 1000000.0) mts\n\tFROM timestamps) t\nWHERE mts 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":["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":128,"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":94,"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"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":71,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":81,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":86,"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":93,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":98,"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":98,"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":110,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":9,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":8,"scale":1}},"is_null":false,"value":10000000}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":137,"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":161,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":3,"column_names":["mts"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM timeparts;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"timeparts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timeparts"]}},"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, '%Z %Y-%m-%d %H:%M:%S.%f') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Z %Y-%m-%d %H:%M:%S.%f"}}}]}],"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-06-01 10:40:43+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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1582-06-01 10:40:43+01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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]);","json":{"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_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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 CONCAT_WS('$',a, b) 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"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":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 CONCAT_WS(',', NULL, '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":30,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SUFFIX"}}}]}],"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 contains(s,'h') 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":15,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"h"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"á"}}}]}],"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('to', 'out')","json":{"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"to"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"out"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('amanaplanacanalpanama', 'm23aanaplancaanaalnama')","json":{"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":"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"amanaplanacanalpanama"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"m23aanaplancaanaalnama"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 'theres') 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":62,"query_location_length":1,"column_names":["s"]}}]}],"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":"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"theres"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["s"]}}]}],"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('{}', BLOB '\\x00hello')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x00hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{}', '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":30,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"world"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{:_}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":9,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":123456789}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('%+,.0f / %,.0f / %,.0f', -5::BIGINT, 9007199254740993::BIGINT, 5::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":82,"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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%+,.0f / %,.0f / %,.0f"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":42,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":16,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9007199254740993}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '*b'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"*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 '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"012a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[0-9][0-9][0-9]"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abac"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"*a[bc]"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 'ababac' ILIKE '%%%a%%%b%%a%b%%%%%a%c%%'","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":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":7,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ababac"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%%%a%%%b%%a%b%%%%%a%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 id FROM t WHERE s ILIKE '%WORLD%' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%WORLD%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM t WHERE s NOT ILIKE '%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":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":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":23,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%a%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a ILIKE ('GOO' || chr(0) || 'SE') FROM unicode_possible 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":72,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":9,"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":7,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"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":16,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"GOO"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SE"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":16,"schema_name":"","table_name":"unicode_possible","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unicode_possible"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT str ILIKE NULL ESCAPE '$' 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":21,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}}}]}],"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 id FROM t WHERE s ILIKE '%fast' 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":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"]}],"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":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":"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%fast"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}]},"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 '%c_zzz%' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%c_zzz%"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT position('h' in 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":18,"function_name":"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":23,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"h"}}}]}],"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":[],"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"á"}}}]}],"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 COUNT(*) FROM t\nWHERE (str LIKE '%o%' AND str LIKE '%rld%')\n OR (str LIKE '%o%')\n OR (str LIKE '%o%');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":83,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":35,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"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":30,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%o%"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":49,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%rld%"}}}]}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"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":74,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%o%"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"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":97,"query_location_length":3,"column_names":["str"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%o%"}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT round(jaccard('aabbcc', '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":33,"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":23,"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aabbcc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ab"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 round(jaccard(NULL, t), 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":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":13,"query_location_length":16,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["t"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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 jaro_winkler_similarity('10000000000000000000000000000000000000000000000000000000000000020', '00000000000000000000000000000000000000000000000000000000000000000')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":161,"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":67,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10000000000000000000000000000000000000000000000000000000000000020"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":67,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00000000000000000000000000000000000000000000000000000000000000000"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('', '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":32,"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":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 jaro_winkler_similarity('CRATE', 'TRACE', 0.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":46,"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CRATE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"TRACE"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hallo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hi"}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ababac"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abab%%%%%"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse blabla%"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra elephant tiger horse"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zebra%tiger%elephant%horse"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" a "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"*_ "}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 mismatches('hallo', '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hallo"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hallo"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(s, NULL) 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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"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 s, t, hamming(s, t) hd FROM strings WHERE length(s) = length(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":["s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"hd","query_location":13,"query_location_length":13,"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":21,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["t"]}}]}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":49,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":56,"query_location_length":1,"column_names":["s"]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"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":68,"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 LPAD()","json":{"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":"lpad","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('abcd', '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":21,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcd"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 prefix('abcdefghijklmnopqrstuvwxyz', 'abcd')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdefghijklmnopqrstuvwxyz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcd"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('ñeft', 'ñ')","json":{"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":"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ñeft"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 printf('hello'), printf(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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 printf('%d', '-170141183460469231731687303715884105728'::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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%d"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-170141183460469231731687303715884105728"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', 65)","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":65}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":7,"column_names":["pstring"]}}]}],"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(blob '00', 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":"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":14,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":4,"catalog":"","schema":"","type_name":"blob","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 REPLACE(b, 'Ä', '--') 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":"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":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Ä"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"--"}}}]}],"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 RIGHT_GRAPHEME('🦆🤦S̈', 0), RIGHT_GRAPHEME('🦆🤦S̈', 1), RIGHT_GRAPHEME('🦆🤦S̈', 2), RIGHT_GRAPHEME('🦆🤦S̈', 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":32,"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":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"🦆🤦S̈"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":32,"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":56,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"🦆🤦S̈"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":32,"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":90,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"🦆🤦S̈"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":32,"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":124,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"🦆🤦S̈"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 'aaa' SIMILAR TO 'a[a-z]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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aaa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a[a-z]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 'abc' ~ '^(b|c)'","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^(b|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 split_part('a,b,c',',',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":25,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a,b,c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 STARTS_WITH('hello world', 'h'),\n STARTS_WITH('hello world', 'he'),\n STARTS_WITH('hello world', 'hel'),\n STARTS_WITH('hello world', 'hell'),\n STARTS_WITH('hello world', 'hello'),\n STARTS_WITH('hello world', 'hello '),\n STARTS_WITH('hello world', 'hello w'),\n STARTS_WITH('hello world', 'hello wo'),\n STARTS_WITH('hello world', 'hello wor'),\n STARTS_WITH('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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"h"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"he"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hel"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":130,"query_location_length":34,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hell"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":173,"query_location_length":35,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":200,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":217,"query_location_length":36,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello "}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":262,"query_location_length":37,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":274,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":289,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello w"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":308,"query_location_length":38,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":320,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":335,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello wo"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":355,"query_location_length":39,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":367,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":382,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello wor"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":403,"query_location_length":40,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":415,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":430,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello worl"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":29,"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"你好世界"}}}]}],"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 NULL ^@ 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":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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"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 list_slice(s, 0, 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":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":18,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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(NULL::varchar, off, 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":41,"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":23,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":3,"column_names":["off"]}},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["off"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":54,"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 * from (SELECT list_slice(NULL, 1, 3, 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":"","sample":null,"query_location":14,"query_location_length":34,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":25,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 n[off:length+off] 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":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":3,"column_names":["off"]},{"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":13,"query_location_length":6,"column_names":["length"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":3,"column_names":["off"]}}]}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":25,"query_location_length":23,"left":{"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"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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[2:] 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":4,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"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_regex('üüüüü', '◌'))","json":{"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":"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":39,"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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"üüüüü"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 string_agg(ss, 'bb') FROM (SELECT rowid AS id, UNNEST(string_split(s, 'bb')) AS ss FROM documents) AS q GROUP BY id 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":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":20,"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":2,"column_names":["ss"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bb"}}}]}],"from_table":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":33,"query_location_length":72,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"id","query_location":41,"query_location_length":5,"column_names":["rowid"]},{"class":"FUNCTION","type":"FUNCTION","alias":"ss","query_location":54,"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":61,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bb"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":95,"query_location_length":9,"schema_name":"","table_name":"documents","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["documents"]}},"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":120,"query_location_length":2,"column_names":["id"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select UNNEST(string_split('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":"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":23,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 string_split('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":17,"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":20,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 s[-2147483647] FROM strings","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":13,"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":11,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483647}}]}],"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 substring('hello' 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":37,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"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 suffix('abcd', '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":19,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcd"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', '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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcdefghijklmnopqrstuvwxyz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 suffix('omotá', 'á')","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"omotá"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 suffix('two ñ three ₡ four 🦆 end', 'XXXtwo ñ 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":77,"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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two ñ three ₡ four 🦆 end"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"XXXtwo ñ three ₡ four 🦆 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 to_base(10, 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":36}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('https://dxyzdb.org', 'zyx.orghttps:/', 'kcu')","json":{"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":"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":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"https://dxyzdb.org"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"zyx.orghttps:/"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"kcu"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(a, 'oel', 'OEL') 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":26,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"oel"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"OEL"}}}]}],"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":{"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":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 RTRIM(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":"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":13,"query_location_length":1,"column_names":["a"]}}]}],"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":"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":["b"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select UNICODE(b) 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":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":["b"]}}]}],"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 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"]}}]},{"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"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hour"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["d"]}}]}],"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["d"]}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["d"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"WEEK"}}},{"name":"","expression":{"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 seconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-3 hours"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000000000 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]}}]}],"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('{rspecial}'::TIMESTAMP, '{lspecial}'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{rspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{lspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_timestamp(0) as epoch1, \n\tmake_timestamp(1574802684123 * 1000) as epoch2, \n\tmake_timestamp(-291044928000 * 1000) as epoch3, \n\tmake_timestamp(-291081600000 * 1000) as epoch4, \n\tmake_timestamp(-291081600001 * 1000) as epoch5, \n\tmake_timestamp(-290995201000 * 1000) as epoch6","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"epoch1","query_location":9,"query_location_length":17,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"epoch2","query_location":40,"query_location_length":36,"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":55,"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":55,"query_location_length":13,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1574802684123}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"epoch3","query_location":90,"query_location_length":36,"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":105,"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":105,"query_location_length":13,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-291044928000}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"epoch4","query_location":140,"query_location_length":36,"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":155,"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":155,"query_location_length":13,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-291081600000}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"epoch5","query_location":191,"query_location_length":36,"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":206,"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":206,"query_location_length":13,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-291081600001}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":222,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"epoch6","query_location":241,"query_location_length":36,"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":256,"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":256,"query_location_length":13,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-290995201000}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":272,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, mts\nFROM (SELECT ts, make_timestamp(year(ts), month(ts), day(ts), hour(ts), minute(ts), microsecond(ts) / 1000000.0) mts\n\tFROM timestamps) t\nWHERE mts IS DISTINCT FROM 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":"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":129,"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":95,"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":47,"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":52,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"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":63,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"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":72,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"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":82,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"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":94,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"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":99,"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":111,"query_location_length":2,"column_names":["ts"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":9,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":8,"scale":1}},"is_null":false,"value":10000000}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":138,"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":158,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":3,"column_names":["mts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"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_timestamp_ns(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":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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":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 ts, DATE_PART('millennium', ts) FROM millennia;","json":{"error":false,"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":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":21,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"millennium"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":2,"column_names":["ts"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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::DATE AS d, DATE_PART(['weekday', 'isodow', 'doy', 'julian'], 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":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"d","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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"parts","query_location":22,"query_location_length":53,"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":32,"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":33,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"weekday"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"isodow"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"doy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"julian"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":2,"column_names":["ts"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"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_us(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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":25,"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":"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":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":"WITH parts(p) AS (VALUES (['year', 'month', 'day']), (['hour', 'minute', 'microsecond']))\nSELECT DATE_PART(p, ts) FROM parts, timestamps;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"parts","value":{"aliases":["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":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"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":27,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"year"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"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":55,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"minute"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"microsecond"}}}]}]]},"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":97,"query_location_length":16,"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":107,"query_location_length":1,"column_names":["p"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":2,"column_names":["ts"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":114,"query_location_length":22,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":119,"query_location_length":5,"schema_name":"","table_name":"parts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["parts"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":126,"query_location_length":10,"schema_name":"","table_name":"timestamps","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps"]}},"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 EXTRACT(DOY 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DOY"}}},{"name":"","expression":{"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":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 AGE(TIMESTAMPTZ '1957-06-13') t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"t","query_location":7,"query_location_length":29,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1957-06-13"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '1957-06-13', 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1957-06-13"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 iv, iv + '2021-12-01 13:54:48.123456Z'::TIMESTAMPTZ FROM intervals;","json":{"error":false,"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":["iv"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-12-01 13:54:48.123456Z"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"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 'epoch'::timestamptz - '9223372022400001001 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9223372022400001001 microseconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 (-14) 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":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":23,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-14}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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":52,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":5,"column_names":["label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tsmin"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ts + (INTERVAL (-485) microsecond) 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":27,"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":23,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-485}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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":60,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":5,"column_names":["label"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tsmax"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ts + (INTERVAL 1 second) 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_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":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tsmax"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT TIMESTAMPTZ 'Infinity' - TIMESTAMPTZ '2020-01-01';","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{specifier}', '{rspecial}'::TIMESTAMPTZ_NS, '{lspecial}'::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":83,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{specifier}"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":43,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{rspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{lspecial}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('day', '2022-01-04 19:00:00'::timestamptz, '2024-03-01'::date) 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":72,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-01-04 19:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT minute(ts), minute(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":"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":14,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"query_location_length":21,"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":"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 date_part(part, ts), date_part(part, ts::TIMESTAMP), part \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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["part"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":30,"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":38,"query_location_length":4,"column_names":["part"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":2,"column_names":["ts"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":4,"column_names":["part"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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 MAX(EXTRACT(YEAR FROM ts))\n\t, MAX(EXTRACT(MONTH FROM ts))\n\t, MAX(EXTRACT(DAY FROM ts))\n\t, MAX(EXTRACT(DECADE FROM ts))\n\t, MAX(EXTRACT(CENTURY FROM ts))\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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":19,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"YEAR"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":2,"column_names":["ts"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":27,"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":41,"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":49,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MONTH"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":2,"column_names":["ts"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":68,"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":72,"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":80,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DAY"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":2,"column_names":["ts"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":97,"query_location_length":28,"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":101,"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":109,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DECADE"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":2,"column_names":["ts"]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"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":133,"query_location_length":24,"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":141,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"CENTURY"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":154,"query_location_length":2,"column_names":["ts"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":164,"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(['year', 'month', 'day'], ts) AS parts\nFROM timestamps\nWHERE part = 'day'\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":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":39,"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":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":22,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"year"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":4,"column_names":["part"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select DATESUB('month', '2004-01-31 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":94,"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-01-31 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-29 13:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('month', '2004-01-31 13:00:00-08'::TIMESTAMPTZ, '2004-02-29 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":94,"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-01-31 13:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-29 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('hour', '2004-01-31 12:00:00-08'::TIMESTAMPTZ, '2004-02-01 13:05: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":93,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hour"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-01-31 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-01 13:05:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('microsecond', '2004-01-31 12:00:00-08'::TIMESTAMPTZ, '2004-02-01 12:00:00.000050-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":107,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"microsecond"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-01-31 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":100,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-01 12:00:00.000050-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":102,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT datetrunc(s, d), s 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":"datetrunc","schema":"","filter":null,"order_bys":{"type":"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":"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":24,"query_location_length":1,"column_names":["s"]}],"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 date_trunc('hour', 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hour"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-01-06 04:03:02-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":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 make_timestamptz(2021, 13, 1, 0, 0, 0) mts","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"mts","query_location":7,"query_location_length":38,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2021}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 ts, make_timestamptz(yyyy, mm, dd, hr, mn, ss, 'America/New_York'), make_timestamptz(yyyy, mm, dd, hr, mn, ss)\nFROM timeparts;","json":{"error":false,"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":62,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":4,"column_names":["yyyy"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":2,"column_names":["mm"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":2,"column_names":["dd"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":2,"column_names":["hr"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":2,"column_names":["mn"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["ss"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"America/New_York"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":42,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":4,"column_names":["yyyy"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":2,"column_names":["mm"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":2,"column_names":["dd"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":2,"column_names":["hr"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":2,"column_names":["mn"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":2,"column_names":["ss"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":123,"query_location_length":9,"schema_name":"","table_name":"timeparts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timeparts"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT strftime('2022-04-07 18:12:15.123456+00'::TIMESTAMPTZ, f)\nFROM formats","json":{"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":"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":47,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-04-07 18:12:15.123456+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["f"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"query_location_length":7,"schema_name":"","table_name":"formats","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["formats"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '0044-03-13 (BC) 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":36,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0044-03-13 (BC) 10:33:41+01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(null::interval, t, '2 seconds'::interval) 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":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":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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":52,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 seconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"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('5 months'::interval, t, 'Europe/Berlin') 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":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":32,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Europe/Berlin"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"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'::interval, '2019-04-05 00:00:00-11'::timestamptz, '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":103,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-04-05 00:00:00-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":99,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 hour 30 minutes"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '290279-12-24 (BC) 19:59:05.224191+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":92,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 microseconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":85,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290279-12-24 (BC) 19:59:05.224191+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 ts) FROM timestamps_default","json":{"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":"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":2,"column_names":["ts"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":18,"schema_name":"","table_name":"timestamps_default","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timestamps_default"]}},"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') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%y"}}}]}],"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, '%-S') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%-S"}}}]}],"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, '%x') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%x"}}}]}],"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('mon', '%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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mon"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 strptime('2-4', '%V-%u'), strftime('1900-01-11'::DATE, '%V-%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2-4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%V-%u"}}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%V-%u"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-0-5', '%Y-%W-%w'), strftime('2021-01-01'::DATE, '%Y-%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-0-5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%W-%w"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":62,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%W-%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.745232951', '%Y-%m-%d %H:%M:%S.%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":65,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232951"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%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 strptime('2024-11-28 23:59:00.312457', '%Y-%m-%d %H:%M:%S.%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-11-28 23:59:00.312457"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%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 strptime('2020-12-31 21:25:58.745232+000', '%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":68,"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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232+000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%f%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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-10-01 23:59:60"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%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 strptime('juk', '%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"juk"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 strptime('20 19', '%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"20 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%U %W"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 %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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%G %W"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('Mänday', '%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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Mänday"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 t, time_bucket(null::interval, t, '2 seconds'::interval) 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":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":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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":52,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 seconds"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":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 time_bucket('-3 hours'::interval, '2019-04-05 00:00:00'::timestamp, '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":99,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-3 hours"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-04-05 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":94,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 hour 30 minutes"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":97,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-05-05 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-2000000000 months"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '2022-12-22 10:00:00'::timestamp, null::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":29,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-12-22 10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, June 2003, 12:03:10 AM', '%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":79,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Mon 30, June 2003, 12:03:10 AM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%a %-d, %B %Y, %-I:%-M:%-S %p"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-4', '%U-%w'), strftime('1900-01-11'::DATE, '%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":28,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1-4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%U-%w"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":58,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%U-%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-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":49,"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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-05-12 19-4"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %U-%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('2020-12-31 21:25:58.745232+0000', '%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":73,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232+0000"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%f%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 try_strptime('2020-12-31 21:25:58.745232+0', '%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":70,"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":30,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232+0"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%f%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 try_strptime('2000-10-01 00:00:00 AM', '%Y-%m-%d %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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-10-01 00:00:00 AM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %I:%M:%S %p"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('moa', '%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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"moa"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 try_strptime('60', '%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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"60"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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":[]}]}} -{"sql":"SELECT try_strptime('20 19', '%V %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":30,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"20 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%V %W"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('21/10/2018', '%-q/%m/%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":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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"21/10/2018"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%-q/%m/%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 day(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":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":11,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"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(['epoch', 'second', 'timezone', 'timezone_hour', 'timezone_minute'], 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":123,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":81,"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":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":21,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"second"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone_hour"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone_minute"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":106,"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 TYPEOF(t) FROM (select t from time_testtz group by t) LIMIT 1","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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["t"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":22,"query_location_length":38,"subquery":{"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":["t"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"query_location_length":11,"schema_name":"","table_name":"time_testtz","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["time_testtz"]}},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["t"]}],"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 start, token_type, word from sql_tokenize($$crea tab$$);","json":{"error":false,"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":26,"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"crea tab"}}}]},"column_name_alias":[],"with_ordinality":"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(uuid()::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":33,"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":32,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":6,"function_name":"uuid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"column_name_alias":[],"with_ordinality":"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, 2], \"b\": {\"c\": 12, \"d\": 10}}', '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":67,"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":40,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": [1, 2], \"b\": {\"c\": 12, \"d\": 10}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 variant_array_length(NULL::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":40,"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":32,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 sum(list_sum([l for l in variant_array_length(j, ['duck', 'goose'])])) s\nfrom t2","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":70,"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":65,"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":20,"query_location_length":55,"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":32,"query_location_length":42,"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":53,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":57,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goose"}}}]}}]}},{"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":["l"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["l"]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"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 variant_contains('[{\"a\": 1}, {\"b\": 2}]'::JSON::VARIANT, '{\"a\": 1, \"b\": 2}'::JSON::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":90,"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":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":24,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"a\": 1}, {\"b\": 2}]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1, \"b\": 2}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(NULL::VARIANT, 1::VARIANT),\n variant_contains(1::VARIANT, NULL::VARIANT),\n variant_contains(NULL::VARIANT, NULL::VARIANT),\n variant_contains(NULL, NULL);","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":43,"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":32,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"query_location_length":43,"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":78,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":109,"query_location_length":46,"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":130,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":145,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":147,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":161,"query_location_length":28,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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":24,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"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":[]},"column_name_alias":[],"with_ordinality":"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, [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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 variant_extract(a, 'a[1].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":28,"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a[1].c"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"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":[]},"column_name_alias":[],"with_ordinality":"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_extract_string(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_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":["a"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":[]}}]}],"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":[]},"column_name_alias":[],"with_ordinality":"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_extract_string({'blob': blob}::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":51,"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":44,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":"blob","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"blob","query_location":39,"query_location_length":4,"column_names":["blob"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":64,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":87,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":4,"column_names":["bool"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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, '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":57,"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":49,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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":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":"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_group_array(i) from (select NULL::INTEGER i 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":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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":35,"query_location_length":36,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"i","query_location":47,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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":65,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 variant_keys(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":19,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"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":[]},"column_name_alias":[],"with_ordinality":"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(42::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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}::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":39,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":40,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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\n\tlist_variant.my_list::BIGINT[]\nfrom\n\tlist_variant\nlimit\n\t1;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":20,"column_names":["list_variant","my_list"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":12,"schema_name":"","table_name":"list_variant","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["list_variant"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select variant_type('{}'::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":27,"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":24,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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({'a': 1}::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":37,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 variant_type(v), variant_type(v, 'b')\nFROM fully_shredded_objects\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":82,"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_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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":37,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 total_profit FROM unit, 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":["total_profit"]}],"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":"unit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unit"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":5,"schema_name":"","table_name":"unit2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unit2"]}},"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 column_default from duckdb_columns;","json":{"error":false,"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":["column_default"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"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 profit_total 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":["profit_total"]}],"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 iu, ju, rowid FROM u_7182 WHERE iu = 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":["iu"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ju"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":5,"column_names":["rowid"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":6,"schema_name":"","table_name":"u_7182","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["u_7182"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":39,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["iu"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, j FROM tbl_6500 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":["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":8,"schema_name":"","table_name":"tbl_6500","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_6500"]}},"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 = 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"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 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","schema":"","filter":null,"order_bys":{"type":"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE i \u003e 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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers ORDER 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":32,"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":"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 integers WHERE i=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":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":4,"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":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(i) FROM tbl1 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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":32,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT k FROM byte_edges WHERE k \u003e 254 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":48,"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":10,"schema_name":"","table_name":"byte_edges","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["byte_edges"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":31,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":254}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT x FROM test WHERE x \u003e 20;","json":{"error":false,"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":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":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}},"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) 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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":101}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM nulls WHERE (i IS NOT DISTINCT FROM 499997) = 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nulls"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":39,"left":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":34,"query_location_length":29,"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":57,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":499997}}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM tbl WHERE i = 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":["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":5,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT table_name, index_count FROM duckdb_tables() 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":61,"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"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":11,"column_names":["index_count"]}],"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_tables","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"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 tbl_deser_scan WHERE id \u003e= 424242;","json":{"error":false,"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":14,"schema_name":"","table_name":"tbl_deser_scan","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_deser_scan"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":36,"query_location_length":12,"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":42,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":424242}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM integers WHERE j+l=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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":5,"left":{"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":["j"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["l"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"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= 1000000000::BIGINT 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":"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":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["l"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM \"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":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 * FROM myschema.t4;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"t4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["myschema","t4"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select lefttable.x, righttable.y\nfrom (select 1 as x) lefttable\nasof join (select 1 as x, 1 as y limit 0) righttable\non lefttable.x \u003e= righttable.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":11,"column_names":["lefttable","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":12,"column_names":["righttable","y"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":64,"query_location_length":83,"left":{"type":"SUBQUERY","alias":"lefttable","sample":null,"query_location":38,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"righttable","sample":null,"query_location":74,"query_location_length":31,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_GREATERTHANOREQUALTO","alias":"","query_location":120,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":11,"column_names":["lefttable","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":12,"column_names":["righttable","x"]}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 t.*, p.price\nFROM trades_list t ASOF JOIN prices_list p \n ON t.symbol = p.symbol 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":39,"query_location_length":70,"left":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":25,"query_location_length":13,"schema_name":"","table_name":"trades_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["trades_list"]}},"right":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":49,"query_location_length":13,"schema_name":"","table_name":"prices_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prices_list"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":69,"query_location_length":40,"children":[{"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":8,"column_names":["t","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":8,"column_names":["p","symbol"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":93,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":6,"column_names":["t","when"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"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":"WITH t1 AS (\n\tFROM VALUES\n\t\t(1::INT, '2020-01-01 00:00:00'::TIMESTAMP), \n\t\t(2, '2020-01-02 00:00:00')\n\tAS t1(a, b)\n), t2 AS (\n\tFROM VALUES\n\t\t(1::INT, '2020-01-01 00:01:00'::TIMESTAMP), \n\t\t(2, '2020-01-02 00:00:00')\n\tt2(c, d)\n)\nSELECT * \nFROM t1 \nASOF JOIN t2 \n ON t1 = (b == t2.d)\n AND t1.b \u003e= t2.d - INTERVAL '1' SECOND;","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":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"t1","sample":null,"query_location":19,"query_location_length":95,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-02 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":["a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"t2","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":"t2","sample":null,"query_location":132,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":143,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":145,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":171,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01 00:01:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":173,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":189,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-02 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":["c","d"]},"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":234,"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":246,"query_location_length":76,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":242,"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":256,"query_location_length":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":265,"query_location_length":57,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":265,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":2,"column_names":["t1"]},"right":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":271,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":271,"query_location_length":1,"column_names":["b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":276,"query_location_length":4,"column_names":["t2","d"]}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":288,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":288,"query_location_length":4,"column_names":["t1","b"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":301,"query_location_length":0,"function_name":"-","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":4,"column_names":["t2","d"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":303,"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":312,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}}]}}]},"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\nFROM probe0 p ASOF SEMI 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":85,"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"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":20,"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":44,"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":57,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":7,"column_names":["p","begin"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":7,"column_names":["e","begin"]}},"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 range(2000) t1, test 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":28,"left":{"type":"TABLE_FUNCTION","alias":"t1","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":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2000}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":37,"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":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":[]}],"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 i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i=integers2.k\nUNION\nSELECT i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i=integers2.k\nORDER BY i","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":183,"query_location_length":1,"column_names":["i"]}}]}],"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":["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":51,"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_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"]}},"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},{"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":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":1,"column_names":["j"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":1,"column_names":["l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":122,"query_location_length":51,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":113,"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":138,"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_EQUAL","alias":"","query_location":151,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"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 * FROM (SELECT a2.x FROM (SELECT x FROM test WHERE x \u003e 3) AS a1 FULL OUTER JOIN (SELECT x FROM test WHERE x = 1) AS a2 ON a1.x = a2.x) AS a3 FULL OUTER JOIN (SELECT 1 AS x) AS a4 ON a3.x = a4.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":148,"query_location_length":52,"left":{"type":"SUBQUERY","alias":"a3","sample":null,"query_location":14,"query_location_length":127,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":4,"column_names":["a2","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":71,"query_location_length":69,"left":{"type":"SUBQUERY","alias":"a1","sample":null,"query_location":32,"query_location_length":32,"subquery":{"node":{"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":["x"]}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":58,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"right":{"type":"SUBQUERY","alias":"a2","sample":null,"query_location":87,"query_location_length":32,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"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":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":113,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":129,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":4,"column_names":["a1","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":136,"query_location_length":4,"column_names":["a2","x"]}},"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":[]},"right":{"type":"SUBQUERY","alias":"a4","sample":null,"query_location":164,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":189,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":189,"query_location_length":4,"column_names":["a3","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":196,"query_location_length":4,"column_names":["a4","x"]}},"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 CAST(NULL AS VARCHAR) AS ccy, id FROM fact) t JOIN dim_nd d ON t.ccy IS NOT DISTINCT FROM 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":75,"query_location_length":47,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":21,"query_location_length":51,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"ccy","query_location":29,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"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":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":80,"query_location_length":8,"schema_name":"","table_name":"dim_nd","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim_nd"]}},"condition":{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":92,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":5,"column_names":["t","ccy"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"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 n.n_name, n.n_region, COUNT(*) AS cnt\nFROM nation n JOIN customer c ON n.nk = c.nk JOIN orders o ON o.ck = c.ck\nGROUP BY n.n_name, n.n_region 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":158,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":10,"column_names":["n","n_region"]},{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","query_location":29,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":90,"query_location_length":28,"left":{"type":"JOIN","alias":"","sample":null,"query_location":59,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":50,"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":64,"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":78,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"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":95,"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":107,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":4,"column_names":["o","ck"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"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":128,"query_location_length":8,"column_names":["n","n_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":10,"column_names":["n","n_region"]}],"group_sets":[[0,1]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(DISTINCT n.n_name)\nFROM nation n JOIN customer c ON n.nk = c.nk JOIN orders o ON o.ck = c.ck","json":{"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":true,"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":["n","n_name"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":77,"query_location_length":28,"left":{"type":"JOIN","alias":"","sample":null,"query_location":46,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":37,"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":51,"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":65,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"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":82,"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":94,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":4,"column_names":["o","ck"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM fact f JOIN dim 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":28,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":21,"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":33,"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":42,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":3,"column_names":["f","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"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 dim WHERE k IN (SELECT k FROM fact WHERE k 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim"]}},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":36,"query_location_length":40,"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":["k"]}],"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":{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":64,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["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":31,"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 o.o_orderkey, o.o_custkey, o.o_totalprice, l.l_orderkey, l.l_partkey, l.l_quantity, l.l_extendedprice\nFROM orders o\nRIGHT 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":101,"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":134,"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":148,"query_location_length":76,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":148,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":12,"column_names":["o","o_orderkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":12,"column_names":["l","l_orderkey"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":184,"query_location_length":40,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":199,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":14,"column_names":["o","o_totalprice"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":17,"column_names":["l","l_extendedprice"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":250}}}]},"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 COUNT(*) FROM lineitem l\nINNER JOIN orders o ON l.l_orderkey = o.o_orderkey\n AND l.l_partkey + l.l_suppkey * 10 + o.o_custkey \u003e 200\n AND l.l_discount * 100 + (l.l_commitdate::DATE - o.o_orderdate::DATE) \u003e o.o_shippriority + 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":207,"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":184,"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":50,"left":{"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":"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":11,"column_names":["l","l_partkey"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":11,"column_names":["l","l_suppkey"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":11,"column_names":["o","o_custkey"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":150,"query_location_length":89,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":169,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":150,"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":150,"query_location_length":12,"column_names":["l","l_discount"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":165,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":193,"query_location_length":0,"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":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":14,"column_names":["l","l_commitdate"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":188,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":208,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":195,"query_location_length":13,"column_names":["o","o_orderdate"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":210,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":235,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":16,"column_names":["o","o_shippriority"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":237,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]},"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\n\trange,\n\tcount(*) as n\nfrom scd2\ninner join calendar\n\t\ton range \u003c= ifnull(range_end,'2099-01-01') and range_start \u003c= range\ngroup by range\norder by range","json":{"error":false,"statements":[{"node":{"type":"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":5,"column_names":["range"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":5,"column_names":["range"]},{"class":"FUNCTION","type":"FUNCTION","alias":"n","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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":89,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":4,"schema_name":"","table_name":"scd2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scd2"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":8,"schema_name":"","table_name":"calendar","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["calendar"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":65,"query_location_length":64,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":65,"query_location_length":39,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":5,"column_names":["range"]},"right":{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":74,"query_location_length":30,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":9,"column_names":["range_end"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2099-01-01"}}]}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":109,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":11,"column_names":["range_start"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":5,"column_names":["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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":5,"column_names":["range"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"WITH test AS (\n\tSELECT\n\t\ti AS id,\n\t\ti AS begin,\n\t\ti + 10 AS end,\n\t\ti % 2 AS p1,\n\t\ti % 3 AS p2\n\tFROM range(0, 10) tbl(i)\n),\nsub AS (\n\tSELECT lhs.id AS lid, rhs.id AS rid\n\tFROM test lhs, test rhs\n\tWHERE lhs.begin \u003c rhs.end\n\t AND rhs.begin \u003c lhs.end\n\t AND lhs.p1 \u003c\u003e rhs.p1\n\t AND lhs.p2 \u003c\u003e rhs.p2\n\tORDER BY ALL\n)\nSELECT MIN(lid), MAX(rid)\nFROM sub","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"test","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":"id","query_location":25,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"begin","query_location":36,"query_location_length":1,"column_names":["i"]},{"class":"FUNCTION","type":"FUNCTION","alias":"end","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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"p1","query_location":67,"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":67,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"p2","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":100,"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":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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":"sub","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":"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":"lid","query_location":140,"query_location_length":6,"column_names":["lhs","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"rid","query_location":155,"query_location_length":6,"column_names":["rhs","id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":170,"query_location_length":23,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":175,"query_location_length":8,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":185,"query_location_length":8,"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":201,"query_location_length":94,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":201,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":9,"column_names":["lhs","begin"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":213,"query_location_length":7,"column_names":["rhs","end"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":228,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":228,"query_location_length":9,"column_names":["rhs","begin"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":240,"query_location_length":7,"column_names":["lhs","end"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":255,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":255,"query_location_length":6,"column_names":["lhs","p1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":6,"column_names":["rhs","p1"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":279,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":279,"query_location_length":6,"column_names":["lhs","p2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":289,"query_location_length":6,"column_names":["rhs","p2"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":319,"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":323,"query_location_length":3,"column_names":["lid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":329,"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":333,"query_location_length":3,"column_names":["rid"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":343,"query_location_length":3,"schema_name":"","table_name":"sub","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sub"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t1.x, t2.x\nFROM 'test/sql/join/iejoin/overlap.left.csv' t1, 'test/sql/join/iejoin/overlap.right.csv' t2\nWHERE t1.y \u003e t2.y AND t1.x \u003c t2.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":["t1","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["t2","x"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":18,"query_location_length":92,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":23,"query_location_length":42,"schema_name":"","table_name":"test/sql/join/iejoin/overlap.left.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test/sql/join/iejoin/overlap.left.csv"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":67,"query_location_length":43,"schema_name":"","table_name":"test/sql/join/iejoin/overlap.right.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test/sql/join/iejoin/overlap.right.csv"]}},"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":117,"query_location_length":27,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":117,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":4,"column_names":["t1","y"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":4,"column_names":["t2","y"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":133,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":4,"column_names":["t1","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":4,"column_names":["t2","x"]}}]},"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\n AND l.price + r.bid \u003c 400\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":"STAR","type":"STAR","alias":"","query_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":105,"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":72,"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_LESSTHAN","alias":"","query_location":103,"query_location_length":21,"left":{"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":103,"query_location_length":7,"column_names":["l","price"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":5,"column_names":["r","bid"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":400}}}]},"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 INNER JOIN t2 ON ((t1.c0 NOT BETWEEN t2.c0 AND t2.c0) IS 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":"JOIN","alias":"","sample":null,"query_location":17,"query_location_length":62,"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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":71,"query_location_length":7,"children":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":36,"query_location_length":33,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":46,"query_location_length":23,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":5,"column_names":["t1","c0"]},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":5,"column_names":["t2","c0"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"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 * FROM test WHERE NOT EXISTS(SELECT * FROM test2 WHERE test.a=test2.a AND test.b\u003ctest2.c) 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":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":25,"query_location_length":71,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":29,"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":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":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":62,"query_location_length":33,"children":[{"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":["test","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["test2","a"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":81,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"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":"WITH c AS (\n\tSELECT flag FROM ordered_probe ORDER BY ord OFFSET 2\n)\nSELECT * FROM c INNER JOIN boolean_keys ON flag = flag_key;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"c","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":53,"query_location_length":3,"column_names":["ord"]}}]},{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"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":13,"schema_name":"","table_name":"ordered_probe","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ordered_probe"]}},"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":75,"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":84,"query_location_length":42,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"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":95,"query_location_length":12,"schema_name":"","table_name":"boolean_keys","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["boolean_keys"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":111,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":4,"column_names":["flag"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":8,"column_names":["flag_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 * FROM (VALUES (1)) tbl(i) JOIN (VALUES (1)) tbl2(j) ON (i=j);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":34,"left":{"type":"SUBQUERY","alias":"tbl","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":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]]},"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":"tbl2","sample":null,"query_location":39,"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":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"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},"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 != 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":103,"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":38,"query_location_length":55,"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":36,"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_NOTEQUAL","alias":"","query_location":77,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"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(*) FROM tb1 AS lhs ANTI JOIN tb2 AS rhs ON (lhs.a IS DISTINCT FROM rhs.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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":54,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"tb1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tb1"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":42,"query_location_length":10,"schema_name":"","table_name":"tb2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tb2"]}},"condition":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":57,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":5,"column_names":["lhs","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":5,"column_names":["rhs","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 x.col1, y.col1 FROM tbl_l_null x JOIN tbl_l_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":127,"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":135,"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":77,"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":56,"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_NOT_DISTINCT_FROM","alias":"","query_location":82,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"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 p.id, p.k, p.g, b.payload\nFROM prf_probe_small p\nJOIN prf_build_small b\n ON p.k = b.k\n AND p.g \u003e= b.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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["p","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["p","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["p","g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":9,"column_names":["b","payload"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":53,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":38,"query_location_length":17,"schema_name":"","table_name":"prf_probe_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prf_probe_small"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":61,"query_location_length":17,"schema_name":"","table_name":"prf_build_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prf_build_small"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":84,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":84,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":3,"column_names":["p","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":3,"column_names":["b","k"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":99,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":3,"column_names":["p","g"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"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(*) from a,b where i \u003c\u003e 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":8,"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":23,"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":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":31,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"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 t2.a, t2.b, t2.c FROM t1 JOIN t2 USING(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":4,"column_names":["t2","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":4,"column_names":["t2","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":4,"column_names":["t2","c"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":16,"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":37,"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":["d"],"delim_flipped":false,"duplicate_eliminated_columns":[],"is_implicit":false,"ranking_expression":null,"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_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 \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":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":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_NOTEQUAL","alias":"","query_location":33,"query_location_length":14,"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":42,"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 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":47,"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":20,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 integers2 RIGHT OUTER JOIN integers ON integers.i=integers2.k 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":"STAR","type":"STAR","alias":"","query_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":24,"query_location_length":51,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"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":41,"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":53,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"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 * FROM integers LEFT OUTER JOIN integers2 ON i+l=21 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":"STAR","type":"STAR","alias":"","query_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":35,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":6,"left":{"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":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["l"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":21}}},"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 big_fact f LEFT JOIN big_dim d ON f.fk = d.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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":32,"query_location_length":34,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":21,"query_location_length":10,"schema_name":"","table_name":"big_fact","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big_fact"]}},"right":{"type":"BASE_TABLE","alias":"d","sample":null,"query_location":42,"query_location_length":9,"schema_name":"","table_name":"big_dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["big_dim"]}},"condition":{"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":["f","fk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM t3 NATURAL JOIN 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":17,"query_location_length":15,"left":{"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"]}},"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},"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"]}}]}],"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"]}}]},"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":[]}],"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"]}}]},"nearest_count":1,"nearest_order_type":"ASCENDING","nearest_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 (1), (1)) 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":164,"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":106,"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":60,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":94,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":94,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":3,"column_names":["r","b"]}},{"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":3,"column_names":["o","x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":130,"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":139,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 = CASE\n\tWHEN l.j \u003e= 20 THEN (SELECT s.i FROM non_inner_s s WHERE s.i = l.i LIMIT 1)\n\tELSE NULL\nEND\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":174,"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":179,"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":129,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":102,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["r","i"]},"right":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":68,"query_location_length":96,"case_checks":[{"when_expr":{"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":3,"column_names":["l","j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}},"then_expr":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":94,"query_location_length":55,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":3,"column_names":["s","i"]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":111,"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":131,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":3,"column_names":["s","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":3,"column_names":["l","i"]}},"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":156,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 l.v, r.v\nFROM (VALUES ('a')) l(v)\nLEFT JOIN (VALUES ('A')) r(v)\nON EXISTS (\n\tSELECT 1\n\tWHERE l.v.lower() = 'a'\n\t AND r.v.lower() = 'a'\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","v"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["r","v"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":41,"query_location_length":103,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":21,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":51,"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":60,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":74,"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":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":100,"query_location_length":42,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":17,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":100,"query_location_length":11,"function_name":"lower","schema":"v","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"l","arguments":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"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":11,"function_name":"lower","schema":"v","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"r","arguments":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":139,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 *\nFROM ((VALUES (1)) a(x) JOIN (VALUES (1)) b(x) USING (x))\nLEFT JOIN ((VALUES (1)) c(x) JOIN (VALUES (1)) d(x) USING (x))\nON EXISTS (\n\tSELECT 1\n\tWHERE x = 1\n\t AND a.x = c.x\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":67,"query_location_length":116,"left":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":32,"left":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":15,"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":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":38,"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":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"right":{"type":"JOIN","alias":"","sample":null,"query_location":96,"query_location_length":32,"left":{"type":"SUBQUERY","alias":"c","sample":null,"query_location":78,"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":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"d","sample":null,"query_location":101,"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":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":133,"query_location_length":50,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":159,"query_location_length":22,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":159,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"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":3,"column_names":["a","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":3,"column_names":["c","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.a, r.b\nFROM pair_nested_l l\nFULL OUTER JOIN pair_nested_r r ON EXISTS (\n\tSELECT 1\n\tFROM pair_nested_local_t t\n\tWHERE EXISTS (\n\t\tSELECT 1\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)\n\t)\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":37,"query_location_length":233,"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":198,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":97,"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":126,"query_location_length":142,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":154,"query_location_length":111,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":183,"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":214,"query_location_length":47,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":214,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":214,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":220,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":233,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":233,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":239,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":252,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":252,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":258,"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"},"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\nFROM pair_l_order l\nFULL OUTER JOIN pair_r_order r ON EXISTS (\n\tSELECT 1 FROM pair_s_order s WHERE s.x = l.x 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":["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"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":46,"query_location_length":104,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":31,"query_location_length":14,"schema_name":"","table_name":"pair_l_order","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_l_order"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":62,"query_location_length":14,"schema_name":"","table_name":"pair_r_order","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r_order"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":80,"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":97,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":104,"query_location_length":14,"schema_name":"","table_name":"pair_s_order","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s_order"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":125,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":125,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":3,"column_names":["s","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":3,"column_names":["l","x"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":139,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"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, l2.c, r.b\nFROM pair_multi_l l\nJOIN pair_multi_l2 l2 ON true\nFULL OUTER JOIN pair_multi_r r 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 = l2.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":4,"column_names":["l2","c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":72,"query_location_length":127,"left":{"type":"JOIN","alias":"","sample":null,"query_location":42,"query_location_length":29,"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":"BASE_TABLE","alias":"l2","sample":null,"query_location":47,"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":67,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"BASE_TABLE","alias":"r","sample":null,"query_location":88,"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"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":106,"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":123,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":131,"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":153,"query_location_length":44,"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":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":159,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":170,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":176,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","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":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":193,"query_location_length":4,"column_names":["l2","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, l.rn, r.b\nFROM (SELECT a, row_number() OVER (ORDER BY a) AS rn FROM pair_multi_l) l\nFULL OUTER JOIN pair_multi_r r ON EXISTS (\n\tSELECT 1\n\tFROM pair_multi_window_s s\n\tWHERE s.a = l.a\n\t AND s.b = r.b\n\t AND s.rn = l.rn\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":4,"column_names":["l","rn"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":96,"query_location_length":135,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":27,"query_location_length":66,"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":["a"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":38,"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":66,"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":80,"query_location_length":12,"schema_name":"","table_name":"pair_multi_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_multi_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":112,"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"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":130,"query_location_length":101,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":155,"query_location_length":21,"schema_name":"","table_name":"pair_multi_window_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_multi_window_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":184,"query_location_length":45,"children":[{"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","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":190,"query_location_length":3,"column_names":["l","a"]}},{"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","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":207,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":218,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":4,"column_names":["s","rn"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":225,"query_location_length":4,"column_names":["l","rn"]}}]},"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 EXISTS (\n\tSELECT 1 FROM pair_s s WHERE s.a = l.a AND 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":131,"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":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":["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":86,"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":64,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":81,"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":96,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"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":[]}]}} -{"sql":"SELECT l.a, r.b, r2.c\nFROM pair_l l\nLEFT JOIN (pair_r r JOIN pair_left_multi_r2 r2 ON true) ON EXISTS (\n\tSELECT 1\n\tFROM pair_left_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 l.a, r.b NULLS LAST, r2.c 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":203,"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":208,"query_location_length":3,"column_names":["r","b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":224,"query_location_length":4,"column_names":["r2","c"]}}]}],"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":36,"query_location_length":157,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":27,"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":"JOIN","alias":"","sample":null,"query_location":56,"query_location_length":34,"left":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":47,"query_location_length":8,"schema_name":"","table_name":"pair_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_r"]}},"right":{"type":"BASE_TABLE","alias":"r2","sample":null,"query_location":61,"query_location_length":21,"schema_name":"","table_name":"pair_left_multi_r2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_multi_r2"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":95,"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":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":120,"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":147,"query_location_length":44,"children":[{"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","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":164,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":181,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"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":"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 (SELECT a, nextval('pair_exists_effect_seq') AS v FROM pair_left_effect_l) l\n\tSEMI JOIN pair_left_effect_r r ON EXISTS (\n\t\tSELECT 1 WHERE l.v = r.b\n\t)\n)\nSELECT count_value, currval('pair_exists_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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":137,"query_location_length":72,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":59,"query_location_length":74,"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":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":78,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pair_exists_effect_seq"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":114,"query_location_length":18,"schema_name":"","table_name":"pair_left_effect_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_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":147,"query_location_length":20,"schema_name":"","table_name":"pair_left_effect_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_effect_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":171,"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":189,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":197,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":3,"column_names":["l","v"]},"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":"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":219,"query_location_length":11,"column_names":["count_value"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":232,"query_location_length":33,"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":240,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pair_exists_effect_seq"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":271,"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, r.b\nFROM pair_state_l l\nLEFT JOIN pair_state_r r ON EXISTS (\n\t(SELECT l.a)\n\tINTERSECT\n\t(SELECT 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":77,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"pair_state_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_state_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":46,"query_location_length":14,"schema_name":"","table_name":"pair_state_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_state_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":64,"query_location_length":49,"subquery_type":"EXISTS","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":3,"column_names":["l","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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"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":[]},"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 COUNT(DISTINCT t) 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":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":["t"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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 strftime(d, '%m') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%m"}}}]}],"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, '%-M') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%-M"}}}]}],"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, '%V') 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%V"}}}]}],"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('Mon 30, December 30, 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":70,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Mon 30, December 30, 7:3:5 PM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%a %d, %B %y, %I:%M:%S %p"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('6', '%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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%u"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-0-5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%U-%w"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":62,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%U-%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('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":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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Jun 30 2003 2:03:10AM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%b %d %Y %-I:%M:%S%p"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-28 23:59:00.3', '%Y-%m-%d %H:%M:%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":57,"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-11-28 23:59:00.3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%g"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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+0X', '%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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232+0X"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%f%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 strptime('2000-10-01 13:00:00 AM', '%Y-%m-%d %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":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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-10-01 13:00:00 AM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %I:%M:%S %p"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('moaday', '%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":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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"moaday"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%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 strptime('9', '%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', '%V %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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"20 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%V %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":[]}]}} +{"sql":"SELECT strptime('2000/10/10', random()::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":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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000/10/10"}}},{"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":"random","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('4 days'::interval, t, '6 hours'::interval) 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":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":30,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["t"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"6 hours"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":71,"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 w, t, origin, time_bucket(w, t, origin) 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":["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":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":["t"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":6,"column_names":["origin"]}}]}],"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 time_bucket('1 month 1 day'::interval, '2018-05-05 00:00:00'::timestamp, '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":106,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 month 1 day"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2018-05-05 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2018-05-05 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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);","json":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('Tuesday 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":80,"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":37,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Tuesday 30, December 2003, 7:3:5 PM"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%A %d, %B %Y, %I:%M:%S %p"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('6', '%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"6"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-%W-%w'), strftime('2021-01-01'::DATE, '%Y-%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-0-5"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%W-%w"}}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%W-%w"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('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":66,"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":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d %H:%M:%S.%f"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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/28/1910', ['%d-%m-%Y', '%m-%d-%Y', '%d/%m/%Y', '%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":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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10/28/1910"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"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":35,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%d-%m-%Y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%m-%d-%Y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%d/%m/%Y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%m/%d/%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 try_strptime('2000-10-hello', '%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":41,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-10-hello"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%d"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('pp', '%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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pp"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%p"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('60', '%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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"60"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%U"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 19', '%W %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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"20 19"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%W %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":[]}]}} +{"sql":"SELECT try_strptime('9999999', '%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":29,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9999999"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%f"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":7,"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":12,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"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('{partcode}', d) AS p, DATE_PART(['{partcode}'], d) AS st\nFROM timetzs\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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["d"]}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{partcode}"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":83,"query_location_length":7,"schema_name":"","table_name":"timetzs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["timetzs"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":97,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":1,"column_names":["p"]},"right":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":104,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":2,"column_names":["st"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"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 1 -- /* not a block */ rest$$);","json":{"error":false,"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":52,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 1 -- /* not a block */ rest"}}}]},"column_name_alias":[],"with_ordinality":"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 uuids ORDER BY gen_random_uuid();","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":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":[]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"uuids","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uuids"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT uuid_extract_timestamp('0196f97a-db14-71c3-9132-9f0b1334466f');","json":{"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":"uuid_extract_timestamp","schema":"","filter":null,"order_bys":{"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":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0196f97a-db14-71c3-9132-9f0b1334466f"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":41,"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":32,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 variant_array_length('{\"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":47,"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":39,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\"\\: 1}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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\n variant_contains('{\"a\": 1, \"b\": 2}'::JSON::VARIANT, '{\"a\": 1}'::JSON::VARIANT),\n variant_contains('{\"a\": 1, \"b\": 2}'::JSON::VARIANT, '{\"b\": 2, \"a\": 1}'::JSON::VARIANT),\n variant_contains('{\"a\": 1}'::JSON::VARIANT, '{\"a\": 1, \"b\": 2}'::JSON::VARIANT),\n variant_contains('{\"a\": 1}'::JSON::VARIANT, '{\"b\": 1}'::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":78,"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":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":28,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1, \"b\": 2}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":95,"query_location_length":86,"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":136,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":130,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1, \"b\": 2}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":138,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":171,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":165,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\": 2, \"a\": 1}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":167,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":173,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":187,"query_location_length":78,"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":220,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":214,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":204,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":216,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":222,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":255,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":249,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1, \"b\": 2}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":251,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":257,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":271,"query_location_length":70,"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":304,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":298,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":288,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":300,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":306,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":331,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":325,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":315,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\": 1}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":327,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":333,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('2020-01-01 12:34:56'::TIMESTAMP::VARIANT,\n '2020-01-01 12:34:56+00'::TIMESTAMPTZ::VARIANT),\n variant_contains('12:34:56'::TIME::VARIANT, '12:34:56+00'::TIMETZ::VARIANT),\n variant_contains('12:34:56+02'::TIMETZ::VARIANT, '12:34:56+02'::TIMETZ::VARIANT),\n variant_contains('12:34:56+02'::TIMETZ::VARIANT, '12:34:56+03'::TIMETZ::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":128,"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":60,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01 12:34:56"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":129,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01 12:34:56+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":145,"query_location_length":75,"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":178,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":172,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:34:56"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":174,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":180,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":210,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":202,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":189,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:34:56+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":204,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":212,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":226,"query_location_length":80,"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":264,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":256,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":243,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:34:56+02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":258,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":266,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":296,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":288,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":275,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:34:56+02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":290,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":298,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":312,"query_location_length":80,"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":350,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":342,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":329,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:34:56+02"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":344,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":352,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":382,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":374,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":361,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:34:56+03"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":376,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":384,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, ['']) 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":23,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":26,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}}]}],"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":"struct_cast_data","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"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, '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":65,"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":53,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":36,"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":42,"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":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b.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 variant_exists(v, 'b'), variant_exists(v, 'missing')\nFROM fully_shredded_objects\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":97,"query_location_length":2,"column_names":["id"]}}]}],"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":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":28,"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":46,"query_location_length":1,"column_names":["v"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"missing"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":65,"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1, \"b\": {\"c\": 12, \"d\": 10}}"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":113,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":127,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}]]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1, \"b\": {\"c\": 12, \"d\": 10}}"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b.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 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"]}}]}],"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":22,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}}]}],"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":[]},"column_name_alias":[],"with_ordinality":"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('{}'::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":32,"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":24,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 variant_type(v, ['b', 'z', 'missing']) 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":69,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":38,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":24,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"z"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"missing"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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":"with cte as (\n\tselect * from all_types limit 1 offset 1\n)\nselect variant_typeof(variant_extract(test, 'array_of_structs')[1]), variant_typeof(variant_extract(test, 'array_of_structs')[2]), variant_typeof(variant_extract(test, 'array_of_structs')[3]) 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":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"limit_type":"ROW_COUNT"}],"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":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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"query_location_length":60,"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":121,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":41,"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":96,"query_location_length":4,"column_names":["test"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array_of_structs"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"query_location_length":60,"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":183,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":142,"query_location_length":41,"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":158,"query_location_length":4,"column_names":["test"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array_of_structs"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":189,"query_location_length":60,"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":245,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":204,"query_location_length":41,"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":220,"query_location_length":4,"column_names":["test"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":226,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array_of_structs"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":246,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":255,"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 also_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":17,"column_names":["also_total_profit"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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 total_profit, COUNT(total_profit), SUM(amount_sold), SUM(price) FROM unit GROUP BY total_profit 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":12,"column_names":["total_profit"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":27,"query_location_length":12,"column_names":["total_profit"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":16,"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":11,"column_names":["amount_sold"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"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":64,"query_location_length":5,"column_names":["price"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":12,"column_names":["total_profit"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a, b, gen, c, d FROM tbl_comp WHERE c = 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":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":3,"column_names":["gen"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","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":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, u, rowid FROM t_4807;","json":{"error":false,"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":6,"schema_name":"","table_name":"t_4807","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_4807"]}},"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 i=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":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":3,"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":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"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 \u003e= 1 AND i \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":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"]}}]}],"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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":36,"query_location_length":16,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","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":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","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":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM integers WHERE i \u003c 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_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":2}},"is_null":false,"value":7147}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":98}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":26}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":25}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 \u003e 42 AND i \u003e= 42 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":83,"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":49,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":101}}]},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":66,"query_location_length":7,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from t where id = getvariable('u2');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"u2"}}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i FROM tbl WHERE i = 13000;","json":{"error":false,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13000}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM pk_tbl 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"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM test_table LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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 j FROM integers WHERE j \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":["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_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":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT u_1.string FROM tbl WHERE u_2 = 'helloo';","json":{"error":false,"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":["u_1","string"]}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":33,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":3,"column_names":["u_2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"helloo"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM tbl3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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 COUNT(i), SUM(i), 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":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"]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]},{"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":[]}],"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 p.ts, e.value\nFROM range(0,10) p(ts) ASOF JOIN events0 e\nON p.ts \u003c\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":92,"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":38,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":67,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":4,"column_names":["p","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"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.key, p.ts, e.value\nFROM \n\tprobes p\nJOIN (\n\tSELECT key, value, begin, \n\t\tLEAD(begin, 1, 'infinity'::DOUBLE) OVER (PARTITION BY key ORDER BY begin ASC) AS end\n\tFROM events\n) e\nON p.key = e.key AND p.ts \u003e= e.begin AND p.ts \u003c e.end\nORDER BY 1, 2 ASC","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":246,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":249,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":4,"column_names":["p","ts"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["e","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":44,"query_location_length":192,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":35,"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":"e","sample":null,"query_location":49,"query_location_length":131,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["key"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":5,"column_names":["value"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":5,"column_names":["begin"]},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"end","query_location":81,"query_location_length":77,"function_name":"lead","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":3,"column_names":["key"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":148,"query_location_length":5,"column_names":["begin"]}}],"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":86,"query_location_length":5,"column_names":["begin"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":106,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":108,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":172,"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":[]},"column_name_alias":[]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":186,"query_location_length":50,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":186,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":186,"query_location_length":5,"column_names":["p","key"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":194,"query_location_length":5,"column_names":["e","key"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":204,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":204,"query_location_length":4,"column_names":["p","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":212,"query_location_length":7,"column_names":["e","begin"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":224,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":224,"query_location_length":4,"column_names":["p","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":231,"query_location_length":5,"column_names":["e","end"]}}]},"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 left_table l\nASOF JOIN right_table r\nON l.symbol = r.symbol AND l.ts \u003e= r.ts 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":72,"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":45,"children":[{"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":8,"column_names":["l","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":8,"column_names":["r","symbol"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":78,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["l","ts"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":4,"column_names":["r","ts"]}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}]},"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.begin, e.value\nFROM probe0 p ASOF JOIN events0 e\nON p.begin \u003c 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":40,"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":57,"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_LESSTHAN","alias":"","query_location":70,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":7,"column_names":["p","begin"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 COUNT(*) FROM integers_empty JOIN integers2 ON (integers_empty.i\u003c\u003eintegers2.i OR integers_empty.i+1\u003c\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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":84,"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":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":55,"query_location_length":64,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":55,"query_location_length":29,"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":73,"query_location_length":11,"column_names":["integers2","i"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":88,"query_location_length":31,"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":88,"query_location_length":16,"column_names":["integers_empty","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"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 integers.*, integers2_empty.* FROM integers FULL OUTER 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":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":17,"relation_name":"integers2_empty","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":51,"query_location_length":41,"left":{"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"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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":"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 i, j, k, l FROM integers FULL OUTER JOIN integers2 ON integers.i=integers2.k 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":"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":51,"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_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"]}},"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 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":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":51,"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_LESSTHAN","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"]}},"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 'USD' AS ccy, id FROM fact) t WHERE ccy IN (SELECT k FROM dim)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"USD"}},{"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":[]},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":72,"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":80,"query_location_length":1,"column_names":["k"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":3,"schema_name":"","table_name":"dim","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim"]}},"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":65,"query_location_length":3,"column_names":["ccy"]},"comparison_type":"COMPARE_EQUAL"},"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 JOIN customer_tiny c ON n.nk = c.nk JOIN orders_tiny o ON o.ck = c.ck\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":144,"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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":83,"query_location_length":33,"left":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":35,"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":15,"schema_name":"","table_name":"customer_tiny","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["customer_tiny"]}},"condition":{"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":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"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":88,"query_location_length":13,"schema_name":"","table_name":"orders_tiny","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders_tiny"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":105,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":4,"column_names":["o","ck"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"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":126,"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_t, COUNT(*) AS cnt\nFROM nation_tiny n JOIN customer c ON n.nk = c.nk JOIN orders o ON o.ck = c.ck\nGROUP BY n.n_t ORDER BY n.n_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":133,"query_location_length":5,"column_names":["n","n_t"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["n","n_t"]},{"class":"FUNCTION","type":"FUNCTION","alias":"cnt","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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":80,"query_location_length":28,"left":{"type":"JOIN","alias":"","sample":null,"query_location":49,"query_location_length":30,"left":{"type":"BASE_TABLE","alias":"n","sample":null,"query_location":35,"query_location_length":13,"schema_name":"","table_name":"nation_tiny","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nation_tiny"]}},"right":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":54,"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":68,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":4,"column_names":["n","nk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"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":85,"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":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},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":5,"column_names":["n","n_t"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM fact f JOIN dim_dup 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":28,"query_location_length":27,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":21,"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":33,"query_location_length":9,"schema_name":"","table_name":"dim_dup","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dim_dup"]}},"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":3,"column_names":["f","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"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 fact f JOIN dim d ON lower(f.k) = lower(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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":28,"query_location_length":37,"left":{"type":"BASE_TABLE","alias":"f","sample":null,"query_location":21,"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":33,"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":42,"query_location_length":23,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"query_location_length":10,"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":48,"query_location_length":3,"column_names":["f","k"]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":10,"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":61,"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 o.o_orderkey, o.o_custkey, o.o_totalprice, o.o_orderstatus\nFROM orders o\nSEMI 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":15,"column_names":["o","o_orderstatus"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":80,"query_location_length":100,"left":{"type":"BASE_TABLE","alias":"o","sample":null,"query_location":71,"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":90,"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":104,"query_location_length":76,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":104,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":12,"column_names":["o","o_orderkey"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":12,"column_names":["l","l_orderkey"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":140,"query_location_length":40,"left":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":14,"column_names":["o","o_totalprice"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":17,"column_names":["l","l_extendedprice"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":250}}}]},"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 * \nFROM test AS a, test AS b \nWHERE (a.x BETWEEN b.x AND b.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":10,"query_location_length":25,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":15,"query_location_length":9,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":26,"query_location_length":9,"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":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":48,"query_location_length":19,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":3,"column_names":["a","x"]},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["b","x"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"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":[]}]}} +{"sql":"SELECT l.id, l.start, l.stop\nFROM left_small l\nANTI JOIN right_small r\n ON l.start \u003c r.stop\n AND r.start \u003c l.stop\n AND l.symbol = r.symbol\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":164,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":7,"column_names":["l","start"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":6,"column_names":["l","stop"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":107,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":34,"query_location_length":12,"schema_name":"","table_name":"left_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["left_small"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":57,"query_location_length":13,"schema_name":"","table_name":"right_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_small"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":81,"query_location_length":73,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":81,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":7,"column_names":["l","start"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":6,"column_names":["r","stop"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":108,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":7,"column_names":["r","start"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":6,"column_names":["l","stop"]}},{"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":8,"column_names":["l","symbol"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":8,"column_names":["r","symbol"]}}]},"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 s1.rid, s2.rid\nFROM west s1, west s2\nWHERE s1.time \u003e s2.time\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":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["s1","rid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["s2","rid"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":22,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"s1","sample":null,"query_location":27,"query_location_length":7,"schema_name":"","table_name":"west","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["west"]}},"right":{"type":"BASE_TABLE","alias":"s2","sample":null,"query_location":36,"query_location_length":7,"schema_name":"","table_name":"west","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["west"]}},"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":50,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":7,"column_names":["s1","time"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":7,"column_names":["s2","time"]}},"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 \nfull join tleft r \non l.b100 \u003c r.e100\nand r.b100 \u003c l.e100\nand l.k100 + r.k100 \u003c 10\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":"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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 bigtable 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":25,"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":35,"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":"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 COUNT(*) FROM p WHERE p.pb IN (SELECT f 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":[]}],"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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":37,"query_location_length":17,"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":["f"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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":[]},"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 NOT EXISTS(SELECT * FROM test2 WHERE test.a=test2.a AND test.b\u003ctest2.c AND test2.a=12) AND NOT EXISTS(SELECT * FROM test2 WHERE test.a=test2.a AND test.b\u003etest2.c AND test2.a=12) 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":212,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":177,"children":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":25,"query_location_length":86,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":29,"query_location_length":82,"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":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":62,"query_location_length":48,"children":[{"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":["test","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["test2","a"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":81,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":81,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":7,"column_names":["test2","c"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":100,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":7,"column_names":["test2","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]},"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":116,"query_location_length":86,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":120,"query_location_length":82,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":134,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":141,"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":153,"query_location_length":48,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":153,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":6,"column_names":["test","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":7,"column_names":["test2","a"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":172,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":179,"query_location_length":7,"column_names":["test2","c"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":191,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":191,"query_location_length":7,"column_names":["test2","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":199,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]},"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 a, test.b, c FROM test, test2 WHERE test.b=test2.b AND test.a-1=test2.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":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":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":35,"children":[{"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":6,"column_names":["test","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":7,"column_names":["test2","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":16,"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":62,"query_location_length":6,"column_names":["test","a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"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 x.col1, y.col1 FROM tbl x JOIN tbl y\nON x.col0 = y.col0 AND (x.col1 IS DISTINCT FROM 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":109,"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":33,"query_location_length":66,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":27,"query_location_length":5,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"right":{"type":"BASE_TABLE","alias":"y","sample":null,"query_location":38,"query_location_length":5,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":47,"query_location_length":52,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":6,"column_names":["x","col0"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":6,"column_names":["y","col0"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":68,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"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":107,"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":117,"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":57,"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":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_s x JOIN tbl_s y\nON x.col0 = y.col0 AND (x.col1 IS NOT DISTINCT FROM 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":117,"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":72,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":27,"query_location_length":7,"schema_name":"","table_name":"tbl_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_s"]}},"right":{"type":"BASE_TABLE","alias":"y","sample":null,"query_location":40,"query_location_length":7,"schema_name":"","table_name":"tbl_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_s"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":51,"query_location_length":56,"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_NOT_DISTINCT_FROM","alias":"","query_location":72,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":6,"column_names":["x","col1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"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(*) from a, (SELECT 2000 AS j) b where i \u003c 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":16,"query_location_length":28,"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":"SUBQUERY","alias":"b","sample":null,"query_location":24,"query_location_length":18,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":32,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2000}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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_LESSTHAN","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"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 b.k, p.k\nFROM prf_row_group_bug.prf_probe_small p\nRIGHT JOIN prf_build_row_group_bug b USING (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":3,"column_names":["b","k"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":3,"column_names":["p","k"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":57,"query_location_length":46,"left":{"type":"BASE_TABLE","alias":"p","sample":null,"query_location":21,"query_location_length":35,"schema_name":"prf_row_group_bug","table_name":"prf_probe_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prf_row_group_bug","prf_probe_small"]}},"right":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":68,"query_location_length":25,"schema_name":"","table_name":"prf_build_row_group_bug","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prf_build_row_group_bug"]}},"condition":null,"join_type":"RIGHT","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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t1 JOIN t2 USING (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":17,"query_location_length":17,"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},"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 foo.ts foo, bar.ts bar FROM foo LEFT JOIN bar ON foo.ts = 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_EQUAL","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[] AS a\n)\nSELECT r, a.value\nFROM t\nLEFT JOIN UNNEST(a) AS a(value) ON TRUE\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":198,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"a","query_location":109,"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}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":7,"column_names":["a","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":149,"query_location_length":39,"left":{"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"]}},"right":{"type":"TABLE_FUNCTION","alias":"a","sample":null,"query_location":159,"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":166,"query_location_length":1,"column_names":["a"]}}]},"column_name_alias":["value"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 1=1 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":65,"query_location_length":1,"column_names":["i"]}},{"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"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":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":"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 (SELECT * FROM integers2 WHERE k=100) integers2 ON integers.i\u003cintegers2.k 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":"STAR","type":"STAR","alias":"","query_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":89,"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":"integers2","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":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_EQUAL","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":["k"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},"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":90,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":10,"column_names":["integers","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":11,"column_names":["integers2","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":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 d ON f.fk = d.id\nWHERE f.value = 777","json":{"error":false,"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":30,"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":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":61,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":4,"column_names":["f","fk"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"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_EQUAL","alias":"","query_location":79,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":7,"column_names":["f","value"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":777}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from (values (1)) tbl(a) natural join (values (1)) tbl2(a) natural join (values (1)) tbl3(a)\n natural join (values (1)) tbl4(a) natural join (values (1)) tbl5(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":150,"query_location_length":33,"left":{"type":"JOIN","alias":"","sample":null,"query_location":116,"query_location_length":33,"left":{"type":"JOIN","alias":"","sample":null,"query_location":68,"query_location_length":33,"left":{"type":"JOIN","alias":"","sample":null,"query_location":34,"query_location_length":33,"left":{"type":"SUBQUERY","alias":"tbl","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":[],"values":[[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"tbl2","sample":null,"query_location":47,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"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":"SUBQUERY","alias":"tbl3","sample":null,"query_location":81,"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":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"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":"SUBQUERY","alias":"tbl4","sample":null,"query_location":129,"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":138,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"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":"SUBQUERY","alias":"tbl5","sample":null,"query_location":163,"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":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"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 q.user_id, q.name, t.product_id, t.name AS product FROM users q\n INNER JOIN products t APPROX NEAREST 2 BY SIMILARITY array_cosine_similarity(q.embedding, t.embedding)\n ORDER BY q.user_id, 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":187,"query_location_length":9,"column_names":["q","user_id"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":198,"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":9,"column_names":["q","user_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":6,"column_names":["q","name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":12,"column_names":["t","product_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"product","query_location":40,"query_location_length":6,"column_names":["t","name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":73,"query_location_length":102,"left":{"type":"BASE_TABLE","alias":"q","sample":null,"query_location":63,"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":"t","sample":null,"query_location":84,"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":126,"query_location_length":49,"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":150,"query_location_length":11,"column_names":["q","embedding"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":11,"column_names":["t","embedding"]}}]},"nearest_count":2,"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 q.id, t.y FROM lnums q\n INNER JOIN rnull t NEAREST 2 BY DISTANCE abs(q.x - t.y)\n ORDER BY q.id, t.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":99,"query_location_length":4,"column_names":["q","id"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":105,"query_location_length":3,"column_names":["t","y"]}}]}],"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":55,"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":7,"schema_name":"","table_name":"rnull","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rnull"]}},"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":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":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":["q","x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":3,"column_names":["t","y"]}}]}}]},"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 count(*) FROM latest_db.nearest_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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":22,"schema_name":"latest_db","table_name":"nearest_view","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["latest_db","nearest_view"]}},"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, s.c, t.d\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))\nCROSS JOIN ((VALUES (3), (4)) s(c)\nFULL OUTER JOIN (VALUES (30), (40)) t(d)\n\tON EXISTS (SELECT 1 WHERE s.c = 3 AND t.d = 30))\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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":3,"column_names":["t","d"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":146,"query_location_length":125,"left":{"type":"JOIN","alias":"","sample":null,"query_location":55,"query_location_length":89,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":32,"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":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":71,"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":80,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":100,"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":115,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":123,"query_location_length":20,"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":["l","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":135,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":3,"column_names":["r","b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"JOIN","alias":"","sample":null,"query_location":181,"query_location_length":89,"left":{"type":"SUBQUERY","alias":"s","sample":null,"query_location":158,"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":167,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]]},"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":"t","sample":null,"query_location":197,"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":206,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":212,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}]]},"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":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":226,"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":241,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":249,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":249,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":249,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":255,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":261,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":261,"query_location_length":3,"column_names":["t","d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}}}]},"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},"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 o.b, q.a, q.b\nFROM (VALUES (1), (2)) o(b)\nLEFT JOIN LATERAL (\n\tSELECT l.a, r.b\n\tFROM LATERAL (SELECT b) l(a)\n\tRIGHT JOIN (VALUES (1)) r(b) ON EXISTS (\n\t\tSELECT 1 WHERE l.a = r.b\n\t)\n) q ON true\nORDER BY o.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":209,"query_location_length":3,"column_names":["o","b"]}}]}],"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","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":49,"query_location_length":150,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"right":{"type":"SUBQUERY","alias":"q","sample":null,"query_location":67,"query_location_length":122,"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":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":117,"query_location_length":70,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":100,"query_location_length":10,"subquery":{"node":{"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":["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":128,"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":137,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":149,"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":167,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":175,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":175,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"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":195,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 l.i, r.i, r.j, nested.i\nFROM non_inner_l l\nLEFT JOIN non_inner_r r ON EXISTS (\n\tSELECT 1 FROM non_inner_s s WHERE s.i = l.i AND s.j * 10 = r.j\n)\nLEFT JOIN non_inner_s nested ON FALSE\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":199,"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":204,"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":220,"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"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":8,"column_names":["nested","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":152,"query_location_length":37,"left":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":101,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":36,"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":60,"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":77,"query_location_length":74,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":101,"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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":121,"query_location_length":28,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":3,"column_names":["s","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":3,"column_names":["l","i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":135,"query_location_length":14,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":135,"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":135,"query_location_length":3,"column_names":["s","j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"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"},"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":"nested","sample":null,"query_location":162,"query_location_length":18,"schema_name":"","table_name":"non_inner_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["non_inner_s"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT *\nFROM (VALUES (1, 1)) l(x, a)\nLEFT JOIN (VALUES (2, 1)) r(x, b)\nON join_extract({'v': 1}) = 1\nAND EXISTS (\n\tSELECT 1\n\tWHERE 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":38,"query_location_length":105,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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","a"]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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","b"]},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":75,"query_location_length":68,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":26,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":22,"function_name":"join_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":88,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":106,"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":123,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":132,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"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":[]}]}} +{"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\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":132,"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":148,"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":92,"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":64,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":23,"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"]}}]},"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 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_s s\n\t\tWHERE s.a = l.a\n\t\t AND s.b = r.b\n\t\t AND s.c = o.x\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":184,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":84,"query_location_length":140,"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":105,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":146,"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":176,"query_location_length":45,"children":[{"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","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":182,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":194,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":194,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":3,"column_names":["r","b"]}},{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"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"},"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.a, l.x, r.b, r.y, count(*)::INTEGER\nFROM pair_dup_l l\nFULL OUTER JOIN pair_dup_r r ON r.b NOT IN (\n\tSELECT s.b FROM pair_s_null 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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":63,"query_location_length":93,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":50,"query_location_length":12,"schema_name":"","table_name":"pair_dup_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_dup_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":79,"query_location_length":12,"schema_name":"","table_name":"pair_dup_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_dup_r"]}},"condition":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":95,"query_location_length":61,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":106,"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":116,"query_location_length":3,"column_names":["s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":125,"query_location_length":13,"schema_name":"","table_name":"pair_s_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_s_null"]}},"where_clause":{"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":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":151,"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":95,"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 *\nFROM pair_multi_l l\nJOIN pair_multi_l2 l2 ON true\nFULL OUTER JOIN pair_multi_r r 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 = l2.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":"STAR","type":"STAR","alias":"","query_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":59,"query_location_length":127,"left":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":29,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":14,"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":"BASE_TABLE","alias":"l2","sample":null,"query_location":34,"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":54,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"BASE_TABLE","alias":"r","sample":null,"query_location":75,"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"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":93,"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":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":118,"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":140,"query_location_length":44,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":140,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":3,"column_names":["l","a"]}},{"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":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":174,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":180,"query_location_length":4,"column_names":["l2","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_null_l l\nFULL OUTER JOIN pair_null_r r ON EXISTS (\n\tSELECT 1\n\tFROM pair_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)\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":35,"query_location_length":145,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"pair_null_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_null_l"]}},"right":{"type":"BASE_TABLE","alias":"r","sample":null,"query_location":51,"query_location_length":13,"schema_name":"","table_name":"pair_null_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_null_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":68,"query_location_length":112,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":93,"query_location_length":13,"schema_name":"","table_name":"pair_null_s","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_null_s"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":114,"query_location_length":64,"children":[{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":114,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"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_NOT_DISTINCT_FROM","alias":"","query_location":150,"query_location_length":28,"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":175,"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, r.y\nFROM pair_l l\nRIGHT JOIN pair_r r ON EXISTS (\n\tSELECT 1 FROM pair_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":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"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":40,"query_location_length":87,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":31,"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":51,"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":63,"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":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":87,"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":102,"query_location_length":23,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":116,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":116,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"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.a, l2.c, r.b\nFROM (pair_l l JOIN pair_left_multi_l2 l2 ON true)\nLEFT JOIN pair_r r ON EXISTS (\n\tSELECT 1\n\tFROM pair_left_multi_s s\n\tWHERE s.a = l.a\n\t AND s.b = r.b\n\t AND s.c = l2.c\n)\nORDER BY l.a, l2.c, 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":203,"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":208,"query_location_length":4,"column_names":["l2","c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":214,"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":4,"column_names":["l2","c"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":73,"query_location_length":120,"left":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":34,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":28,"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":"l2","sample":null,"query_location":42,"query_location_length":21,"schema_name":"","table_name":"pair_left_multi_l2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_multi_l2"]}},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"BASE_TABLE","alias":"r","sample":null,"query_location":83,"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":95,"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":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":120,"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":147,"query_location_length":44,"children":[{"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","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":164,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":3,"column_names":["r","b"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":181,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":181,"query_location_length":3,"column_names":["s","c"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":4,"column_names":["l2","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":"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 (SELECT a, nextval('pair_anti_effect_seq') AS v FROM pair_left_effect_l) l\n\tANTI JOIN pair_left_effect_r r ON EXISTS (\n\t\tSELECT 1 WHERE l.v = r.b\n\t)\n)\nSELECT count_value, currval('pair_anti_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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":135,"query_location_length":72,"left":{"type":"SUBQUERY","alias":"l","sample":null,"query_location":59,"query_location_length":72,"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":31,"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":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pair_anti_effect_seq"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":112,"query_location_length":18,"schema_name":"","table_name":"pair_left_effect_l","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_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":145,"query_location_length":20,"schema_name":"","table_name":"pair_left_effect_r","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_left_effect_r"]}},"condition":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":169,"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":187,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":195,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":195,"query_location_length":3,"column_names":["l","v"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"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":"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}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":217,"query_location_length":11,"column_names":["count_value"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":230,"query_location_length":31,"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":238,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pair_anti_effect_seq"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":267,"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(rid), currval('pair_volatile_left_seq')\nFROM pair_volatile_left_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":[]},{"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":["rid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"query_location_length":33,"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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pair_volatile_left_seq"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"query_location_length":25,"schema_name":"","table_name":"pair_volatile_left_result","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pair_volatile_left_result"]}},"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.a, q.x, q.b\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 l.a, l.x, cr.b\n\tFROM pair_l l\n\tLEFT JOIN cr 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 = cr.b\n\t)\n) q ON true\nORDER BY outer_r.b, 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":286,"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":297,"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":302,"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":307,"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_r","b"]},{"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":52,"query_location_length":224,"left":{"type":"BASE_TABLE","alias":"outer_r","sample":null,"query_location":37,"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":70,"query_location_length":196,"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":92,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"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":112,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":8,"column_names":["pair_r","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":3,"column_names":["l","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":3,"column_names":["l","x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":4,"column_names":["cr","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":173,"query_location_length":91,"left":{"type":"BASE_TABLE","alias":"l","sample":null,"query_location":163,"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":"","sample":null,"query_location":183,"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":189,"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":207,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":216,"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":233,"query_location_length":28,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":233,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":233,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":239,"query_location_length":3,"column_names":["l","a"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":251,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":251,"query_location_length":3,"column_names":["s","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":257,"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":"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":272,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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.b\nFROM pair_l outer_l\nLEFT JOIN LATERAL (\n\tSELECT l.a, r.b\n\tFROM pair_l l\n\tLEFT JOIN pair_r r ON l.a = outer_l.a AND r.b IN (\n\t\tSELECT s.b\n\t\tFROM pair_s s\n\t\tWHERE s.a = l.a\n\t)\n\tWHERE l.x = outer_l.x\n) q ON true\nORDER BY outer_l.x, q.a, 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":245,"query_location_length":9,"column_names":["outer_l","x"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":256,"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":261,"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","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","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":47,"query_location_length":188,"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":160,"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":["r","b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":100,"query_location_length":100,"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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":122,"query_location_length":78,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":122,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":3,"column_names":["l","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":128,"query_location_length":9,"column_names":["outer_l","a"]}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":149,"query_location_length":51,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":160,"query_location_length":3,"column_names":["s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":171,"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":188,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":194,"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":142,"query_location_length":3,"column_names":["r","b"]},"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":208,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":208,"query_location_length":3,"column_names":["l","x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":214,"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":231,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 \n\t(SELECT * FROM two WHERE a % 2 = 0) t1\n\tPOSITIONAL JOIN\n\t(SELECT * FROM three WHERE a % 2 = 1) 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":56,"query_location_length":57,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":16,"query_location_length":35,"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":3,"schema_name":"","table_name":"two","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["two"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":41,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":73,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":81,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"query_location_length":5,"schema_name":"","table_name":"three","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["three"]}},"where_clause":{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*), SUM(CASE WHEN in_result THEN 1 ELSE 0 END) FROM\n(SELECT i IN (SELECT MAX(i) FROM integers) AS in_result 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":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":21,"query_location_length":37,"case_checks":[{"when_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":9,"column_names":["in_result"]},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":65,"query_location_length":70,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"in_result","query_location":78,"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":86,"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":90,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"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":73,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":126,"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 * FROM left_table l\nRIGHT 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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}]},"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 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":96,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"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":40,"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_OR","alias":"","query_location":75,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":75,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":1,"column_names":["l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM left_table ANTI JOIN right_table ON left_table.a = right_table.a WHERE a \u003e 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":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":"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":85,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"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 + 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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}}]},"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 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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"WITH lhs(i, j, k) AS (VALUES\n\t(100, 10, 1),\n\t(200, 20, 2)\n),\nrhs(p, q, r) AS (VALUES\n\t(100, 10, 1),\n\t(200, 20, 2)\n)\nSELECT lhs.*, rhs.*\nFROM lhs, rhs\nWHERE i \u003c= p AND j \u003c\u003e q AND k IS DISTINCT FROM r","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"lhs","value":{"aliases":["i","j","k"],"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"rhs","value":{"aliases":["p","q","r"],"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":87,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]]},"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":123,"query_location_length":5,"relation_name":"lhs","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":130,"query_location_length":5,"relation_name":"rhs","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":136,"query_location_length":13,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":141,"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":146,"query_location_length":3,"schema_name":"","table_name":"rhs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rhs"]}},"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":156,"query_location_length":42,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":156,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":156,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":161,"query_location_length":1,"column_names":["p"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":167,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"query_location_length":1,"column_names":["j"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":1,"column_names":["q"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":178,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":1,"column_names":["k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":197,"query_location_length":1,"column_names":["r"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT lhs.i, rhs.i\nFROM wide_nulls lhs, wide_nulls rhs\nWHERE lhs.c3 \u003c rhs.c0\n AND lhs.c8 IS DISTINCT FROM rhs.c3\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":124,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":20,"query_location_length":35,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":25,"query_location_length":14,"schema_name":"","table_name":"wide_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_nulls"]}},"right":{"type":"BASE_TABLE","alias":"rhs","sample":null,"query_location":41,"query_location_length":14,"schema_name":"","table_name":"wide_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["wide_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":62,"query_location_length":52,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":62,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":6,"column_names":["lhs","c3"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":6,"column_names":["rhs","c0"]}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":84,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":6,"column_names":["lhs","c8"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":6,"column_names":["rhs","c3"]}}]},"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 (SELECT * FROM stats_table WHERE tag % 7 = 3) e ON l.val \u003c= e.category;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":80,"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":"SUBQUERY","alias":"e","sample":null,"query_location":37,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":45,"query_location_length":1,"relation_name":"","exclude_list":[],"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":11,"schema_name":"","table_name":"stats_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stats_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":70,"query_location_length":3,"column_names":["tag"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"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_LESSTHANOREQUALTO","alias":"","query_location":88,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":5,"column_names":["l","val"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":10,"column_names":["e","category"]}},"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.k100 as lid, r.k100 as rid\nfrom tleft l \ninner join tleft r \non l.b100 \u003c r.e100\nand l.k100 + r.k100 \u003c 10\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":"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":["l","b100"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":6,"column_names":["r","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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 issue23927.s, sub0.s\nFROM issue23927 \nINNER JOIN issue23927 AS sub0 \nON (issue23927.s \u003c= sub0.s) \nWHERE (issue23927.s \u003c issue23927.s) 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":12,"column_names":["issue23927","s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":6,"column_names":["sub0","s"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":45,"query_location_length":58,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":10,"schema_name":"","table_name":"issue23927","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue23927"]}},"right":{"type":"BASE_TABLE","alias":"sub0","sample":null,"query_location":56,"query_location_length":18,"schema_name":"","table_name":"issue23927","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue23927"]}},"condition":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":80,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":12,"column_names":["issue23927","s"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":6,"column_names":["sub0","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":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":141,"query_location_length":7,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":112,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":12,"column_names":["issue23927","s"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":12,"column_names":["issue23927","s"]}}]},"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 places2 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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":42,"query_location_length":7,"schema_name":"","table_name":"places2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["places2"]}},"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}/bbox_edges.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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/bbox_edges.geojsonl"}}}]},"column_name_alias":[],"with_ordinality":"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(json) FROM '{TEST_DIR}/empty_object.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":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":["json"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":30,"schema_name":"","table_name":"{TEST_DIR}/empty_object.json","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/empty_object.json"]}},"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'}, ignore_errors=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":101,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"name":"k","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"k","query_location":84,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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_auto(['{TEST_DIR}/t1.json.gz', '{TEST_DIR}/t2.json.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":68,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"read_ndjson_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":31,"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":32,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/t1.json.gz"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/t2.json.gz"}}}]}}]},"column_name_alias":[],"with_ordinality":"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, 2, 3]'-\u003e0","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":14,"lhs":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1, 2, 3]"}},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"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 (1::UHUGEINT \u003c\u003c 100)::DECIMAL(38,0)::JSON","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":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":15,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":9,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(from_hex('aa'));","json":{"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","schema":"","filter":null,"order_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":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":21,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"aa"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', NULL, 'two') AS KEEP_NULL_2","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"KEEP_NULL_2","query_location":7,"query_location_length":40,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"key_1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"one"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"two"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{DATA_DIR}/json/internal_3813.json', map_inference_threshold=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":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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/internal_3813.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":26,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}}]},"column_name_alias":[],"with_ordinality":"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(['42'], ['88'])::MAP(JSON, JSON)","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":17,"child":{"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":11,"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":12,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}}]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"88"}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":15,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\":42}'::JSON::MAP(VARCHAR, INTEGER)","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":23,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\":42}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,\n tinyint,\n smallint,\n int,\n bigint,\n hugeint,\n\t uhugeint,\n utinyint,\n usmallint,\n uint,\n ubigint,\n date,\n time,\n timestamp,\n timestamp_s,\n timestamp_ms,\n timestamp_ns,\n time_tz,\n timestamp_tz,\n float,\n double,\n dec_4_1,\n dec_9_4,\n dec_18_6::DOUBLE as dec_18_6,\n dec38_10::DOUBLE as dec38_10,\n uuid,\n interval,\n small_enum,\n int_array,\n double_array,\n date_array,\n timestamp_array,\n timestamptz_array,\n varchar_array,\n nested_int_array,\n struct,\n struct_of_arrays,\n array_of_structs,\n map,\nfrom test_all_types()","json":{"error":false,"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":["bool"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":7,"column_names":["tinyint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":8,"column_names":["smallint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":3,"column_names":["int"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":6,"column_names":["bigint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":7,"column_names":["hugeint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":8,"column_names":["uhugeint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":8,"column_names":["utinyint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":9,"column_names":["usmallint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":4,"column_names":["uint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":158,"query_location_length":7,"column_names":["ubigint"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":4,"column_names":["date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":187,"query_location_length":4,"column_names":["time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":200,"query_location_length":9,"column_names":["timestamp"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":218,"query_location_length":11,"column_names":["timestamp_s"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":238,"query_location_length":12,"column_names":["timestamp_ms"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":259,"query_location_length":12,"column_names":["timestamp_ns"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":280,"query_location_length":7,"column_names":["time_tz"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":296,"query_location_length":12,"column_names":["timestamp_tz"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":317,"query_location_length":5,"column_names":["float"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":331,"query_location_length":6,"column_names":["double"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":346,"query_location_length":7,"column_names":["dec_4_1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":362,"query_location_length":7,"column_names":["dec_9_4"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"dec_18_6","query_location":386,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":378,"query_location_length":8,"column_names":["dec_18_6"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":388,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"dec38_10","query_location":423,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":415,"query_location_length":8,"column_names":["dec38_10"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":425,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":452,"query_location_length":4,"column_names":["uuid"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":465,"query_location_length":8,"column_names":["interval"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":482,"query_location_length":10,"column_names":["small_enum"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":501,"query_location_length":9,"column_names":["int_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":519,"query_location_length":12,"column_names":["double_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":540,"query_location_length":10,"column_names":["date_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":559,"query_location_length":15,"column_names":["timestamp_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":583,"query_location_length":17,"column_names":["timestamptz_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":609,"query_location_length":13,"column_names":["varchar_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":631,"query_location_length":16,"column_names":["nested_int_array"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":656,"query_location_length":6,"column_names":["struct"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":671,"query_location_length":16,"column_names":["struct_of_arrays"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":696,"query_location_length":16,"column_names":["array_of_structs"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":721,"query_location_length":3,"column_names":["map"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":731,"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":[]},"column_name_alias":[],"with_ordinality":"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_json('POINT(1 2)'::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":31,"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":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(1 2)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_array_length('{\"one\":[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":"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"one\":[1,2,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 json_contains('{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}', '{\"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":61,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": {\"b\": [{\"c\": 1, \"d\": 2}]}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"d\": 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 json_array(42::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":23,"function_name":"json_array","schema":"","filter":null,"order_bys":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', [{duck: 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":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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nested"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":30,"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":"duck","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"duck","query_location":37,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 json_object(e::varchar, e) from test where e 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":26,"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":["e"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["e"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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":"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":["e"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select array_to_json([42], [21])","json":{"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":28,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 json_object('a',2,'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":24,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 json_deep_merge('{\"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 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 json_deep_merge('[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":42,"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1, 2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[true, false]"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":27,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 json_deep_merge('{\"a\":{\"b\":{\"c\":{\"d\":1}}}}', '{\"a\":{\"b\":{\"c\":{\"e\":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"b\":{\"c\":{\"d\":1}}}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"b\":{\"c\":{\"e\":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 json_deep_merge('{\"a\":1}', 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":43,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\":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 ('{\"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"my_field"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"my_nested_field"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\": null}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":1,"column_names":["p"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"my_field\": {\"my_nested_field\": [\"goose\", \"duck\"]}}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/my_field/my_nested_field/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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.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 json_extract(j, '$.b[#-2][#-1]') a, a = json_extract(j, '$.b[-2][-1]') FROM t1;","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":32,"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[#-2][#-1]"}}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["a"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":30,"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":60,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[-2][-1]"}}}]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":83,"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[#-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":28,"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":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[#-1x]"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"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 '{\"duck\":null}'-\u003e\u003e'$.duck'","json":{"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":"-\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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\":null}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.duck"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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')","json":{"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_insert('{}', '$.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":37,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.obj"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"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 json_insert('{\"a\\\\\":2}', '$.\"a\\\"b\"', '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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\\\\\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.\"a\\\"b\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_keys('[\"duck\", \"goose\"]');","json":{"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_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":17,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[\"duck\", \"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},"named_param_map":[]}]}} -{"sql":"SELECT JSON_MERGE_PATCH('1', '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":29,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_merge_patch('{\"a\":1}', '{\"b\":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":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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 json_merge_patch_diff('{\"tags\":[1,2]}', '{\"tags\":[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":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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"tags\":[1,2]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"tags\":[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 json_merge_patch_diff('{\"a\":1}', '[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":41,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[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 json_merge_patch('{\"a\":1,\"b\":2,\"c\":3}', json_merge_patch_diff('{\"a\":1,\"b\":2,\"c\":3}', '{\"a\":1,\"b\":99,\"d\":4}')) = '{\"a\":1,\"b\":99,\"d\":4}'","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":134,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":109,"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":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":2,\"c\":3}"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":68,"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":69,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":2,\"c\":3}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":99,\"d\":4}"}}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":99,\"d\":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 json_normalize('{\"z\":1,\"a\":2,\"m\":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":"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":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"z\":1,\"a\":2,\"m\":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 json_normalize('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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_normalize('[3,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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[3,2,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('{\"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":30,"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":2,\"\":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_extract(j, '$.my_field.my_nested_field[#]') 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":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":"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":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.my_field.my_nested_field[#]"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"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(j, '$.my_field.my_nested_field[!]') 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":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":"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":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.my_field.my_nested_field[!]"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"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('[{\"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":51,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"duck\":42},{\"duck\":43}]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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":"with tbl as (\n select '{\"duck\":[{\"goose\":42},{\"goose\":43}],\"goose\":null}' j\n)\nselect json_extract(j, '$.duck[*]..goose') 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":51,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\":[{\"goose\":42},{\"goose\":43}],\"goose\":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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":88,"query_location_length":35,"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":101,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.duck[*]..goose"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":129,"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_remove('{\"a\":{\"x\":1}}', '$.a.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":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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"x\":1}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a.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 json_remove(NULL, '$.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":24,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.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 json_remove('[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":32,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1,2,3]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[#-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 json_remove('{\"a/b\":1,\"c\":2}', '/a~1b')","json":{"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_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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a/b\":1,\"c\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/a~1b"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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]', '$[#]', '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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[#]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_replace('{\"a\":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":41,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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[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":33,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a[0]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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_set('{}', '$.n', '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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.n"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_set('{\"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":29,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_set('{\"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":35,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\":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 json_set('{\"a\":1}', '$.a.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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a.b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_set('{}', '$.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":29,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a[#]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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_set('{}', '$.a', '{bad')","json":{"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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":[]}]}} -{"sql":"SELECT json_strip_nulls('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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_structure('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":20,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": [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 json_structure('[{\"a\": [{\"b\": 42}, {\"b\": null}]}, {\"a\": [{\"c\": 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":70,"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":54,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"a\": [{\"b\": 42}, {\"b\": null}]}, {\"a\": [{\"c\": 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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4.2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 42}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":\"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 json_transform('\"42\"', '\"{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":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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"42\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"{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_transform('42', '\"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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_transform('\"42\"', '\"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"42\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"DECIMAL(3,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_transform_strict('42', '\"DECIMAL(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":45,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"DECIMAL(2,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_transform('\"1996-03-27\"', '\"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":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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"1996-03-27\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 json_transform('\"1996-03-27 11:59:59\"', '\"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":54,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"1996-03-27 11:59:59\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 json_type('{\"str\": 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":24,"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":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"str\": 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 json_type('{\"null\": NaN}', '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":"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"null\": NaN}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_type(json, query) 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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["json"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["query"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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_extract('{\"a\":{\"duck\":[1]},\"b\":{\"duck\":[2,3]}}', '$..duck'))","json":{"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":"json_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":17,"query_location_length":64,"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":30,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"duck\":[1]},\"b\":{\"duck\":[2,3]}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$..duck"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_valid('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\G \""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_valid('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\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 json_valid('\" \\uab \"');","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\uab \""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_valid('{\"x\":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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"x\":00}"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('{\"a\":2,\"c\":[4,5,{\"f\":7}]}', '$.c[2].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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":2,\"c\":[4,5,{\"f\":7}]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.c[2].f"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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[#+2]') 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":25,"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[#+2]"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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('POINT M(1 2 3)'::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":40,"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":36,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT M(1 2 3)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\":\"Point\",\"coordinates\":[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":77,"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":66,"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":46,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"type\":\"Point\",\"coordinates\":[1.0,2.0,3.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 ST_GeomFromGeoJSON('{\"type\":\"Point\",\"coordinates\":[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":56,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"type\":\"Point\",\"coordinates\":[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 * 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array"}}}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\\\"b\": 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":[]}]}} -{"sql":"SELECT ST_AsText(geometry) FROM read_json('data/json/geojson/malformed.geojsonl', records='false', columns={geometry: '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":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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"query_location_length":98,"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":42,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/json/geojson/malformed.geojsonl"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":82,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":99,"query_location_length":30,"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":107,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"geometry","query_location":118,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"GEOMETRY"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/features.geojson', 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":87,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":62,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/json/geojson/features.geojson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":7,"column_names":["geojson"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}}]},"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":""},"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) FROM read_json('data/json/geojson/geometries.geojsonl', geojson=false, records='false', columns={geometry: '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":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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"query_location_length":114,"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":42,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/json/geojson/geometries.geojsonl"}}},{"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":7,"column_names":["geojson"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":98,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":115,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":123,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"geometry","query_location":134,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"GEOMETRY"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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/near_miss.ndjson', geojson=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":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":"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":61,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/json/geojson/near_miss.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":109,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":7,"column_names":["geojson"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"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":""},"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 features 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":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"]}}]},{"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":8,"schema_name":"","table_name":"features","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["features"]}},"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='unstructured')","json":{"error":false,"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":110,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":91,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":103,"query_location_length":21,"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"unstructured"}}}}]},"column_name_alias":[],"with_ordinality":"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(id), typeof(name) FROM read_json_auto('{DATA_DIR}/json/with_list.json', maximum_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":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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":26,"query_location_length":4,"column_names":["name"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"query_location_length":65,"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":52,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/with_list.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":86,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":13,"column_names":["maximum_depth"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":100,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"select * from read_json_auto('{TEMP_DIR}/my_file.json', format='array', 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":71,"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":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/my_file.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":56,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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/simple_timestamp.json', columns={\"ts\": \"TIMESTAMP[]\"});","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_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":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/simple_timestamp.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":78,"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":"ts","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"ts","query_location":85,"query_location_length":13,"column_names":["TIMESTAMP[]"]}}]}}}]},"column_name_alias":[],"with_ordinality":"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_neg_offset.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":["ts"]}}]},{"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":52,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/iso8601_neg_offset.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\n json_extract_string(json, '$.tstz_ns') AS top_level_tstz_ns,\n json_extract_string(json, '$.payload_tz_ns.tstz_ns') AS nested_tstz_ns,\n json_extract_string(json, '$.tstz_ns_list[0]') AS list_tstz_ns\nFROM read_json_objects('{TEMP_DIR}/timestampformat_timestamptz_ns.json');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"top_level_tstz_ns","query_location":11,"query_location_length":38,"function_name":"json_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":31,"query_location_length":4,"column_names":["json"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.tstz_ns"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"nested_tstz_ns","query_location":76,"query_location_length":52,"function_name":"json_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":96,"query_location_length":4,"column_names":["json"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.payload_tz_ns.tstz_ns"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"list_tstz_ns","query_location":152,"query_location_length":46,"function_name":"json_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":172,"query_location_length":4,"column_names":["json"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.tstz_ns_list[0]"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":220,"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":238,"query_location_length":48,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/timestampformat_timestamptz_ns.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_objects('{DATA_DIR}/json/example_n.ndjson', format='auto')","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_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":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/example_n.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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_ndjson_objects('{DATA_DIR}/json/empty.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":51,"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":30,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/empty.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_json_objects('{DATA_DIR}/json/top_level_array.json', 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":70,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/top_level_array.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":72,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nd"}}}}]},"column_name_alias":[],"with_ordinality":"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_extract_string(item, '$.name')\nFROM (\n SELECT UNNEST(CAST(results AS JSON[])) AS item\n FROM read_json_auto('{TEMP_DIR}/heterogeneous.json')\n)\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":169,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":35,"function_name":"json_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":27,"query_location_length":4,"column_names":["item"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.name"}}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":48,"query_location_length":111,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"item","query_location":61,"query_location_length":31,"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":68,"query_location_length":23,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":7,"column_names":["results"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":84,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":110,"query_location_length":47,"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":125,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/heterogeneous.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":[]},"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_extract('{\"key\": false}', '$.key')::BOOLEAN","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"key\": false}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.key"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::TIMESTAMP::JSON::TIMESTAMP","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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-01 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::UBIGINT::JSON::UBIGINT","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::JSON::mood;","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":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18,"query_location_length":6,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"sad"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_DIR}/data.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":25,"schema_name":"","table_name":"{TEST_DIR}/data.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEST_DIR}/data.parquet"]}},"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"]}}]}],"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 plan::VARCHAR LIKE '%LOGICAL_CHUNK_GET%', plan::VARCHAR LIKE '%\"column_ids\"%'\nFROM (\n\tSELECT json_serialize_plan(\n\t\t'SELECT column_name FROM (DESCRIBE SELECT 42 AS a, 84 AS b)',\n\t\tskip_default := true, optimize := true\n\t) plan\n);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":11,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["plan"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%LOGICAL_CHUNK_GET%"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":4,"column_names":["plan"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%\"column_ids\"%"}}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":90,"query_location_length":145,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"plan","query_location":100,"query_location_length":128,"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":123,"query_location_length":60,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT column_name FROM (DESCRIBE SELECT 42 AS a, 84 AS b)"}}},{"name":"skip_default","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"skip_default","query_location":203,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"optimize","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"optimize","query_location":221,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":[]},"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_deserialize_sql(json_serialize_sql('SELECT * FROM t1 JOIN t2 USING(\"$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":81,"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":59,"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":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM t1 JOIN t2 USING(\"$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 * FROM json_execute_serialized_sql(json_serialize_sql('SELECT * FROM ms PIVOT (SUM(amount) FOR month IN (''JAN'') GROUP BY \"$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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":14,"query_location_length":125,"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":96,"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":76,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM ms PIVOT (SUM(amount) FOR month IN ('JAN') GROUP BY \"$id\")"}}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"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\"['SO\"ME']['I\"N'] FROM \"SCH\"\"EMA\".\"TA\"\"BLE\";","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":47,"query_location_length":7,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":38,"query_location_length":9,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":31,"column_names":["SCH\"EMA","TA\"BLE","COL\"UMN"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SO\"ME"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"I\"N"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"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 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"]}}]},{"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"]}}]},{"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":[]}],"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 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_log_contexts()","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":21,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_log_contexts","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_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/big_number.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":31,"schema_name":"","table_name":"{DATA_DIR}/csv/big_number.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/big_number.csv"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM duckdb_logs_parsed('FileSystem');","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":"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":24,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FileSystem"}}}]},"column_name_alias":[],"with_ordinality":"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, log_level, scope, fs, parse_filename(path), op, bytes, pos FROM duckdb_logs_parsed('FileSystem') 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":119,"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":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"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":2,"column_names":["op"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":5,"column_names":["bytes"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":3,"column_names":["pos"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":77,"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":96,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FileSystem"}}}]},"column_name_alias":[],"with_ordinality":"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 dest 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":4,"schema_name":"","table_name":"dest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dest"]}},"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 id, amount FROM archived_orders;","json":{"error":false,"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":6,"column_names":["amount"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":15,"schema_name":"","table_name":"archived_orders","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["archived_orders"]}},"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 three WHERE a % 2 = 1) t1\n\tPOSITIONAL JOIN\n\t(SELECT * FROM two WHERE a % 2 = 0) 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":58,"query_location_length":55,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":16,"query_location_length":37,"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":5,"schema_name":"","table_name":"three","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["three"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":43,"query_location_length":9,"left":{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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":75,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"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":3,"schema_name":"","table_name":"two","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["two"]}},"where_clause":{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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 WHERE i IN (997, 999)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":997}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":999}}]},"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 l.val \u003e 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":53,"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":25,"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":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":5,"column_names":["l","val"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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\u003e0 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":88,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"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":32,"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_GREATERTHAN","alias":"","query_location":75,"query_location_length":3,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"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 * FROM left_table ANTI 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":"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, 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":9,"query_location_length":28,"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":26,"query_location_length":11,"schema_name":"","table_name":"right_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["right_table"]}},"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 input_table\nANTI JOIN flattened\nON input_table.\"timestamp\" \u003e= flattened.start AND input_table.\"timestamp\" \u003c flattened.end;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":110,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"input_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["input_table"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":9,"schema_name":"","table_name":"flattened","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["flattened"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":49,"query_location_length":87,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":49,"query_location_length":42,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":23,"column_names":["input_table","timestamp"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":15,"column_names":["flattened","start"]}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":96,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":23,"column_names":["input_table","timestamp"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":13,"column_names":["flattened","end"]}}]},"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 SEMI 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":"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\nANTI JOIN empty_table e ON l.id = e.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":27,"query_location_length":38,"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":"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":["e","id"]}},"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 test FULL OUTER JOIN test2 ON test.a+test2.c=test.b+test2.b 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":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":19,"query_location_length":54,"left":{"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"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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":44,"query_location_length":29,"left":{"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":44,"query_location_length":6,"column_names":["test","a"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":7,"column_names":["test2","c"]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","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":59,"query_location_length":6,"column_names":["test","b"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":7,"column_names":["test2","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 i, z\nFROM wide_nulls, limits_nulls\nWHERE z NOT BETWEEN c8 AND c9\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":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":48,"query_location_length":23,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":54,"query_location_length":17,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["z"]},"lower":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":2,"column_names":["c8"]},"upper":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"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 * FROM left_table l\nJOIN (SELECT * FROM stats_table WHERE tag % 7 = 3) e ON l.val \u003c= e.category;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":75,"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":"SUBQUERY","alias":"e","sample":null,"query_location":32,"query_location_length":45,"subquery":{"node":{"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":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":11,"schema_name":"","table_name":"stats_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["stats_table"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"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":65,"query_location_length":3,"column_names":["tag"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"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_LESSTHANOREQUALTO","alias":"","query_location":83,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":5,"column_names":["l","val"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":10,"column_names":["e","category"]}},"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 t1 JOIN BY (TYPE semi) (SELECT b AS a FROM t2) 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":53,"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":"SUBQUERY","alias":"","sample":null,"query_location":44,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":52,"query_location_length":1,"column_names":["b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":64,"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":[]},"condition":null,"join_type":"SEMI","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 lhs.*, rhs.*\nfrom list_int lhs, list_int rhs\nwhere lhs.i2 = rhs.i2 and lhs.l3 \u003e rhs.l3\norder by lhs.i, rhs.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":5,"column_names":["lhs","i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":5,"column_names":["rhs","i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":5,"relation_name":"lhs","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":14,"query_location_length":5,"relation_name":"rhs","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":31,"left":{"type":"BASE_TABLE","alias":"lhs","sample":null,"query_location":25,"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":39,"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":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":58,"query_location_length":35,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":6,"column_names":["lhs","i2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":6,"column_names":["rhs","i2"]}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":78,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":6,"column_names":["lhs","l3"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":6,"column_names":["rhs","l3"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT content = (SELECT content FROM read_text('{TEST_DIR}/places.geojson')) FROM read_text('{TEST_DIR}/places_l_array.tmp');","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["content"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":17,"query_location_length":60,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":7,"column_names":["content"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":38,"query_location_length":38,"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":48,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/places.geojson"}}}]},"column_name_alias":[],"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":83,"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":93,"query_location_length":31,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/places_l_array.tmp"}}}]},"column_name_alias":[],"with_ordinality":"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}/ids_named.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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/ids_named.geojsonl"}}}]},"column_name_alias":[],"with_ordinality":"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_dateformat/*/*.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":113,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":45,"query_location_length":58,"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":47,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/json_partition_dateformat/*/*.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 json_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":9,"schema_name":"","table_name":"json_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["json_test"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT typeof(field1), typeof(field2) FROM '{DATA_DIR}/parquet-testing/parquet_with_json.parquet' 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["field1"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":30,"query_location_length":6,"column_names":["field2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":54,"schema_name":"","table_name":"{DATA_DIR}/parquet-testing/parquet_with_json.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/parquet_with_json.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '{\"\\\"Status / SubStatus\\\"\": \"test\"}' -\u003e '\"Status / SubStatus\"';","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":62,"lhs":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"\\\"Status / SubStatus\\\"\": \"test\"}"}},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"Status / SubStatus\""}},"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 (1::HUGEINT \u003c\u003c 100)::JSON","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":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 '{\"a\":1}'::JSON as j\n)\nselect typeof(j[2:3]), typeof(substring(j, 2, 3))\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":"j","query_location":34,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":55,"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":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":63,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":1,"column_names":["j"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"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":78,"query_location_length":18,"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":88,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"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 typeof(id), id from read_json('{TEST_DIR}/mixed.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"]}}]},{"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":34,"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/mixed.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 MAX(JSON_ARRAY_LENGTH(filter_keystage))::int - 1 FROM read_json_auto('{DATA_DIR}/json/filter_keystage.ndjson');","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":46,"query_location_length":5,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":11,"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":29,"query_location_length":15,"column_names":["filter_keystage"]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":61,"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":76,"query_location_length":40,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/filter_keystage.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 {'a': 42, 'b': '[1, 2]'}::ROW(a JSON, b JSON)","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":21,"child":{"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":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":13,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1, 2]"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":19,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":39,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\":42}'::JSON::STRUCT(duck INTEGER)","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":22,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\":42}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":20,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"duck","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 structs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":"with cte1 as (\n select array_agg({duck:42}::json) json_list_value\n from range(5_000)\n), cte2 as (\n select '[' || string_agg('{\"duck\":42}', ', ') || ']' string_value\n from range(5_000)\n)\nselect json_list_value::varchar = string_value, json_list_value = string_value::json[]\nfrom cte1, cte2","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":"FUNCTION","type":"FUNCTION","alias":"json_list_value","query_location":26,"query_location_length":26,"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":45,"query_location_length":6,"child":{"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":"duck","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"duck","query_location":42,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"json","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":78,"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":84,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5000}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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":"FUNCTION","type":"FUNCTION","alias":"string_value","query_location":115,"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":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":115,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"["}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"query_location_length":31,"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":133,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"duck\":42}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":148,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":", "}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"]"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":183,"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":189,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5000}}}]},"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":205,"query_location_length":39,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":220,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":205,"query_location_length":15,"column_names":["json_list_value"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":222,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":12,"column_names":["string_value"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":246,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":246,"query_location_length":15,"column_names":["json_list_value"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":276,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":264,"query_location_length":12,"column_names":["string_value"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":278,"query_location_length":4,"catalog":"","schema":"","type_name":"json","children":[]}]}}},"try_cast":false}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":285,"query_location_length":15,"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":"","sample":null,"query_location":296,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"type\":\"Point\",\"coordinates\":[\"a\",\"b\"]}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_CONTAINS('{\"a\": 1, \"b\": 2, \"c\": {\"d\": 3}}', '\"c\": {\"d\": 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":65,"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":33,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 1, \"b\": 2, \"c\": {\"d\": 3}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"c\": {\"d\": 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 json_contains(json('{\"key\":\"value\"}'),json('{\"blah\":\"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":63,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":23,"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":26,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"key\":\"value\"}"}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"query_location_length":24,"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":50,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"blah\":\"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 to_json(union_value(b := 'abc')::UNION(a INTEGER, b VARCHAR, c 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":70,"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":38,"query_location_length":38,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":23,"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":32,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":36,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"c","query_location":70,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', {nested2: [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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nested"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":"nested2","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"nested2","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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 row_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":20,"function_name":"row_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":19,"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":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 json_array(1,2.5,null,'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":30,"function_name":"json_array","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"SELECT json_array(1,null,'3','[4,5]','{\"six\":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":44,"function_name":"json_array","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[4,5]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"six\":7.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_deep_merge('{\"a\":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":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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":null}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"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_deep_merge('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":29,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_deep_merge('{\"a\":1}', NULL, '{\"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":43,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"c\":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 json_deep_merge('{\"a\":{\"b\":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":43,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"b\":2}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"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('{\"foo\": null}')['foo']","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":28,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"foo\": null}"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('[1, 2, 42]').\"2\"","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":22,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"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":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1, 2, 42]"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json('{\"foo\": \"bar\"}').foo = '\"bar\"';","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":36,"left":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":7,"query_location_length":26,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":22,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"foo\": \"bar\"}"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 json_extract('[null]', '$[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_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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[null]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[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 json_extract_string('[1, 2, 42]', 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":"json_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":27,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1, 2, 42]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 json_extract(j, '$.b[#-0]') a, a = json_extract(j, '$.b[-0]') FROM t1;","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[#-0]"}}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":30,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":55,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[-0]"}}}]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"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 j::JSON-\u003e'$.b[#-000001]' a, a = (j::JSON-\u003e'$.b[-000001]') FROM t1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"LAMBDA","type":"LAMBDA","alias":"a","query_location":7,"query_location_length":24,"lhs":{"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":["j"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[#-000001]"}},"syntax_type":"SINGLE_ARROW"},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["a"]},"right":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":40,"query_location_length":23,"lhs":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["j"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b[-000001]"}},"syntax_type":"SINGLE_ARROW"}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":70,"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 '{\"\\\"duck\\\"\": 42}'-\u003e'$.\"\\\"duck\\\"\"';","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":34,"lhs":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"\\\"duck\\\"\": 42}"}},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.\"\\\"duck\\\"\""}},"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 ('[1,2]'::JSON)-\u003e1","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":18,"lhs":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1,2]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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]', '/-', '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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/-"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_insert('{\"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":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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_insert('{\"a\":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":31,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 sum(list_sum([length(l) for l in json_keys(j, ['duck', 'goose'])])) s\nfrom t2","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":67,"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":62,"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":20,"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":40,"query_location_length":31,"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":50,"query_location_length":1,"column_names":["j"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":54,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goose"}}}]}}]}},{"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":["l"]},"expr":{"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":["l"]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}}]}}]}],"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 JSON_MERGE_PATCH('{\"a\":{\"x\":1}}', '{\"a\":{\"y\":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"x\":1}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"y\":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 json_merge_patch_diff('{\"a\":1,\"b\":2,\"c\":3}', '{\"a\":1,\"b\":99,\"d\":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":2,\"c\":3}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":99,\"d\":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 json_merge_patch_diff('{\"a\":1}', '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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_merge_patch_diff('{}', '{\"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":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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"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_merge_patch_diff('{\"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":50,"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"x\":1}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":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 json_normalize('{\"b\":[3,1,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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\":[3,1,2],\"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('{\"t\":20,\"s\":19,\"r\":18,\"q\":17,\"p\":16,\"o\":15,\"n\":14,\"m\":13,\"l\":12,\"k\":11,\"j\":10,\"i\":9,\"h\":8,\"g\":7,\"f\":6,\"e\":5,\"d\":4,\"c\":3,\"b\":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":150,"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":134,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"t\":20,\"s\":19,\"r\":18,\"q\":17,\"p\":16,\"o\":15,\"n\":14,\"m\":13,\"l\":12,\"k\":11,\"j\":10,\"i\":9,\"h\":8,\"g\":7,\"f\":6,\"e\":5,\"d\":4,\"c\":3,\"b\":2,\"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('{ \"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":39,"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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{ \"z\" : 1 , \"a\" : 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 json_extract('[0, 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":33,"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":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[0, 1, 2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[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_extract('{\"my_field\": [{\"my_nested_field\": [\"duck\", \"goose\"]}]}', '$.my_field[0].my_nested_field[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":106,"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":56,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"my_field\": [{\"my_nested_field\": [\"duck\", \"goose\"]}]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.my_field[0].my_nested_field[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 json_extract('[{\"duck\":42},{\"duck\":43}]', '$[*].duck')","json":{"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"duck\":42},{\"duck\":43}]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[*].duck"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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((to_json({duck:range})-\u003e'$.*')[1]::int) = sum(range) from range(10000)","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":56,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"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":44,"query_location_length":5,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":41,"query_location_length":3,"children":[{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":12,"query_location_length":28,"lhs":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":21,"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":20,"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":"duck","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"duck","query_location":26,"query_location_length":5,"column_names":["range"]}}]}}]},"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.*"}},"syntax_type":"SINGLE_ARROW"},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":57,"query_location_length":5,"column_names":["range"]}}]}}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"column_name_alias":[],"with_ordinality":"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_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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":[1,[2,3],4]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/a/1/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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"z\":1,\"a\":2}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$not_a_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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"/a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"b\":2,\"c\":3}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[#-1]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"x\":1}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a.x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"b\":{\"c\":1}}}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a.b.c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"z\":1}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[1,2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[2]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$not_a_path"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":[[1]]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.a[0][0]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":{\"x\":1,\"y\":null},\"b\":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[true,null,false,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},"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"]}}]}],"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_transform('{\"a\": 42}', '{\"a\":\"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":46,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\": 42}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":\"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 json_transform('[{\"a\": 42}, {\"a\": null}, {\"a\": 7}]', '[{\"a\": \"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":74,"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":36,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"a\": 42}, {\"a\": null}, {\"a\": 7}]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[{\"a\": \"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"{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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 json_transform('42.42', '\"DECIMAL(38,17)\"')","json":{"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42.42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"DECIMAL(38,17)\""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', '\"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"UUID\""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"42\""}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 json_transform('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":35,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"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 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":17,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 json_type(json, 'int') 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":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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"int"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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[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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":[2,3.5,true,false,null,\"x\"]}"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.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_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":30,"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":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":55,\"b\":72,}"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_valid('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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_valid('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\L \""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \"');","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\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 json_valid('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\d \""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\p \""}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\" \\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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\" \\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":[]}]}} +{"sql":"SELECT json_valid('{\"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"x\":-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 json_value('[null]', '$[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":28,"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":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[null]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$[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 json_value(NULL, ['$.x', '$.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":32,"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":25,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.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 json_value(x, '$.settings.layer2.\"tris.legomenon\".\"summary.report\"') 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":68,"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":53,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"$.settings.layer2.\"tris.legomenon\".\"summary.report\""}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"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(NULL::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":28,"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":24,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\":\"Point\",\"coordinates\":[1,2],\"crs\":{\"type\":\"name\"},\"bbox\":[0,0,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":108,"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":97,"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":77,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"type\":\"Point\",\"coordinates\":[1,2],\"crs\":{\"type\":\"name\"},\"bbox\":[0,0,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},"named_param_map":[]}]}} +{"sql":"SELECT ST_GeomFromGeoJSON('{\"type\":\"Point\",\"coordinates\":' || repeat('[', 100000) || 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":105,"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":85,"function_name":"||","schema":"","filter":null,"order_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":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"type\":\"Point\",\"coordinates\":"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"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":69,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"["}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100000}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":85,"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":92,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"]"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100000}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 * exclude (filename), parse_filename(filename) as filename from read_json_auto('{DATA_DIR}/json/example_*.ndjson', filename=true) 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":20,"relation_name":"","exclude_list":["filename"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"filename","query_location":29,"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":44,"query_location_length":8,"column_names":["filename"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":71,"query_location_length":65,"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":86,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/example_*.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":122,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":8,"column_names":["filename"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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, maximum_sample_files=99)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/with_uuid.json"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/example_n.ndjson"}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},{"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":20,"column_names":["maximum_sample_files"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":99}}}}]},"column_name_alias":[],"with_ordinality":"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, fullkey FROM json_each('{\"\": 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":20,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"\": 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":[]}]}} +{"sql":"SELECT g FROM read_json('{TEST_DIR}/badwkt.ndjson', columns={g: '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":1,"column_names":["g"]}],"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_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":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/badwkt.ndjson"}}},{"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":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"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":"g","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"g","query_location":64,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"GEOMETRY"}}}]}}}]},"column_name_alias":[],"with_ordinality":"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('{TEST_DIR}/not_fc.geojson'));","json":{"error":false,"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":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":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":38,"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":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/not_fc.geojson"}}}]},"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":""},"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) FROM read_ndjson('data/json/geojson/geometries.geojsonl', geojson=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":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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"query_location_length":66,"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":44,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"data/json/geojson/geometries.geojsonl"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":7,"column_names":["geojson"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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('{TEST_DIR}/inconsistent.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":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":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":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":71,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEST_DIR}/inconsistent.geojsonl"}}}]},"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":""},"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 property_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":64,"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"]}}]},{"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":12,"schema_name":"","table_name":"property_ids","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["property_ids"]}},"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_ndjson('{DATA_DIR}/json/example_n.ndjson', columns={id: 'INTEGER', name: 'VARCHAR'}, format='nd')","json":{"error":false,"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":102,"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":29,"query_location_length":34,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/example_n.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":7,"column_names":["columns"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":73,"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":78,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"name":"name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"name","query_location":95,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":107,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nd"}}}}]},"column_name_alias":[],"with_ordinality":"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', 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":67,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/top_level_array.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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='unstructured', 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":94,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/my_file.json"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":51,"query_location_length":21,"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"unstructured"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":7,"column_names":["records"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":11,"column_names":["auto_detect"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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 date_copy_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":"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"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":1,"column_names":["d"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":14,"schema_name":"","table_name":"date_copy_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["date_copy_test"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2026-04-01T06:03:00+00:01"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%Y-%m-%dT%H:%M:%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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{TEMP_DIR}/nested_dateformat_partition/*/*.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_ndjson_objects('{DATA_DIR}/json/example_r.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/example_r.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_json_objects('{DATA_DIR}/json/unterminated_quotes.ndjson', format='auto', ignore_errors=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":98,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/unterminated_quotes.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":78,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":6,"column_names":["format"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"auto"}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":93,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":13,"column_names":["ignore_errors"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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 FROM read_ndjson('{DATA_DIR}/json/union.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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["data"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":105,"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":29,"query_location_length":30,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/json/union.ndjson"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":60,"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":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":76,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UNION(name VARCHAR, age INT, veteran BOOL)"}}}]}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 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":10,"column_names":["duck","goose"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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 true::BOOLEAN::JSON::BOOLEAN","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":"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::FLOAT::JSON::FLOAT","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":7,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_NS::JSON::TIME_NS","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":26,"query_location_length":6,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"TIME_NS","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"TIME_NS","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'foo'::VARIANT::JSON::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":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":6,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('json_geometry_format');","json":{"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":"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":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"json_geometry_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 json(' { \"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":43,"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":37,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" { \"this\" : \"is\", \"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 json_serialize_plan('select blob ''\\\\x00''');","json":{"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_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":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"select blob '\\\\x00'"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":40,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT * FROM tbl2"}}}]}}]},"column_name_alias":[],"with_ordinality":"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 j2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"j2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["j2"]}},"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\" 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":25,"column_names":["SCHEMA","TABLE","COLUMN"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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 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":"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"]}}]},{"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"]}}]},{"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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 * EXCLUDE (context_id, timestamp, connection_id, transaction_id, query_id) FROM duckdb_logs","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":74,"relation_name":"","exclude_list":["context_id","query_id","timestamp","connection_id","transaction_id"],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"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('hello from the connection log scope', level := 'error', scope := 'connection') from range(0, 2048);","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello from the connection log scope"}}},{"name":"level","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"level","query_location":65,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"error"}}},{"name":"scope","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"scope","query_location":83,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"connection"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":102,"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":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2048}}}]},"column_name_alias":[],"with_ordinality":"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}/logging_csv_log.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":32,"schema_name":"","table_name":"{TEMP_DIR}/logging_csv_log.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{TEMP_DIR}/logging_csv_log.csv"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"querylog"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"SELECT 1"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT type, log_level, scope, message FROM duckdb_logs WHERE type='QueryLog';","json":{"error":false,"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":7,"column_names":["message"]}],"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":4,"column_names":["type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"QueryLog"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM Stock 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":5,"schema_name":"","table_name":"Stock","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["Stock"]}},"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 target;","json":{"error":false,"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":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},"named_param_map":[]}]}} +{"sql":"SELECT x \u003e ANY(SELECT y FROM t2 WHERE 1=0) 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":60,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":35,"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":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":7,"query_location_length":1,"column_names":["x"]},"comparison_type":"COMPARE_GREATERTHAN"}],"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 'b' COLLATE NOCASE \u003e ANY(SELECT x FROM (VALUES ('Z'), ('a')) t(x));","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["x"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":46,"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":55,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Z"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}},"collation":"NOCASE"},"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 currval('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":"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 t1.c1 FROM t1 WHERE (1 BETWEEN -1 AND CAST(CAST(t1.c1 AS BIT) AS 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":5,"column_names":["t1","c1"]}],"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":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":30,"query_location_length":50,"input":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"upper":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":35,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":18,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":5,"column_names":["t1","c1"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i FROM integers WHERE (i IS NULL AND (i+1) IS NULL) OR (i IS NULL AND (i+2) 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":101,"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":62,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":27,"children":[{"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":["i"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":50,"query_location_length":7,"children":[{"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":45,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":63,"query_location_length":27,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":65,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":1,"column_names":["i"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":83,"query_location_length":7,"children":[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (a*2)+(a*2)+(a*2)+(a*2)+(a*2), a FROM test","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":"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":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":"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":8,"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":8,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":14,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"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":26,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"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":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]}],"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 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 max(distinct x) from range(10) 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":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":20,"query_location_length":1,"column_names":["x"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":28,"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":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 -v FROM (VALUES (CAST(-128 AS TINYINT))) 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":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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":15,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-128}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":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 0 // 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":"//","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]}}]}],"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 count(*) FROM instr_pruning WHERE instr(s, 'mmm') = 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"instr_pruning","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["instr_pruning"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":19,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":15,"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":47,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mmm"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, grp, ts\nFROM lm_test\nWHERE grp = 1\n AND ts \u003e= TIMESTAMP '2024-01-01'\n AND ts \u003c TIMESTAMP '2024-07-01'\nORDER BY ts\nLIMIT 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":124,"query_location_length":2,"column_names":["ts"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":3,"column_names":["grp"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["ts"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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":38,"query_location_length":76,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":3,"column_names":["grp"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":52,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":2,"column_names":["ts"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":87,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":2,"column_names":["ts"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":92,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-07-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":92,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]},"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) = 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":[]}],"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_EQUAL","alias":"","query_location":29,"query_location_length":15,"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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2020}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT count(*) FROM nested_nulls WHERE l IS NULL),\n (SELECT count(*) FROM array_nulls WHERE a 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":51,"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":12,"schema_name":"","table_name":"nested_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nested_nulls"]}},"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":48,"query_location_length":1,"column_names":["l"]}]},"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":67,"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":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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"query_location_length":11,"schema_name":"","table_name":"array_nulls","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["array_nulls"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":109,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"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":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(i) FROM integers WHERE i 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":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"]}}]}],"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":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":36,"query_location_length":21,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["i"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2900}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3100}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id,\n coalesce((date_trunc('day', t) = TIMESTAMP '2020-06-15 12:00:00')::VARCHAR, 'NIL'),\n coalesce((date_trunc('day', t) \u003c\u003e TIMESTAMP '2020-06-15 12:00:00')::VARCHAR, 'NIL')\nFROM ts 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":211,"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_COALESCE","alias":"","query_location":18,"query_location_length":83,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":84,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":55,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":39,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["t"]}}]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-06-15 12:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NIL"}}]},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":110,"query_location_length":83,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":176,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":120,"query_location_length":55,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"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":131,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"day"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["t"]}}]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":144,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-06-15 12:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":144,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":178,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NIL"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":199,"query_location_length":2,"schema_name":"","table_name":"ts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ts"]}},"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 long_strings WHERE v \u003e 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"]}}]}],"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_GREATERTHAN","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}},"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 \u003e 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"]}}]}],"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_GREATERTHAN","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}},"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":[]}],"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM substring_truncated_stats WHERE s[14:] \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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":25,"schema_name":"","table_name":"substring_truncated_stats","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["substring_truncated_stats"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":53,"query_location_length":17,"left":{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":54,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":14}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"495000"}}},"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":136,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"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":[]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2026-10-25 02:30:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"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":[]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":161,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2026-10-25 02:30:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":198,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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', count(*) FROM csp_filter_key WHERE a \u003e 1\nUNION ALL\nSELECT 'y', count(*) FROM csp_filter_key WHERE a \u003e 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":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}},{"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":[]}],"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":"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":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"y"}},{"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"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":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":110,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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 'qqq';","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":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":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"qqq"}}}]},"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 = 122879;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":122879}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM lineitem ORDER BY l_orderkey DESC 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":32,"query_location_length":10,"column_names":["l_orderkey"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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\n\t*,\n\tlist(DISTINCT train_number) OVER(\n\t\tPARTITION BY date\n\t\tORDER BY train_number DESC\n\t\tROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n\t\t) as trains\nFROM services","json":{"error":false,"statements":[{"node":{"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":[]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"trains","query_location":12,"query_location_length":145,"function_name":"list","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":4,"column_names":["date"]}],"orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":12,"column_names":["train_number"]}}],"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":[],"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":173,"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":null},"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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 NULLS LAST","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"NULLS LAST","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 1 limit date '1992-01-01';","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":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * 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":25,"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":"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 'Test' LIMIT ?","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"PARAMETER","type":"VALUE_PARAMETER","alias":"","query_location":20,"query_location_length":1,"identifier":"1"},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[{"key":"1","value":1}]}]}} -{"sql":"SELECT * FROM test LIMIT RANDOM() %;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":[]},"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 1 limit date '2021-11-25' %;","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":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-11-25"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false},"offset":null,"limit_type":"PERCENTAGE"}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 o_orderkey, o_clerk, o_orderstatus, o_totalprice from orders_small\n order by o_orderkey NULLS FIRST,\n o_clerk NULLS FIRST, o_orderstatus NULLS FIRST,\n o_totalprice DESC NULLS LAST limit 360","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":103,"query_location_length":10,"column_names":["o_orderkey"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"query_location_length":7,"column_names":["o_clerk"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":13,"column_names":["o_orderstatus"]}},{"type":"DESCENDING","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":215,"query_location_length":12,"column_names":["o_totalprice"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":250,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":360}},"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":["o_orderkey"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":7,"column_names":["o_clerk"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":13,"column_names":["o_orderstatus"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":12,"column_names":["o_totalprice"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":12,"schema_name":"","table_name":"orders_small","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["orders_small"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM unnest([41,42,43]) WITH ORDINALITY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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":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":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":41}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}}]}}]},"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 251658240::BIGINT * 1080863910568919040::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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":251658240}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1080863910568919040}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * (-9223372036854775808)::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}},{"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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * (-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":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":8,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":41,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775807}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483640}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -30000::SMALLINT - 1::SMALLINT","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":"-","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 50::TINYINT * 2::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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * 2147483647::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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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":21,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483647}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT -120::TINYINT + (-(-(-i))) 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":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":120}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":29,"query_location_length":1,"column_names":["i"]}}]}}]}}]}}]}],"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 i*10000::SMALLINT FROM smallints","json":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":14,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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 -2e38::REAL-2e38::REAL","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":"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":12,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":4,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":2e38}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":23,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":2e38}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 - -b::TINYINT FROM test2","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":24,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":1,"column_names":["b"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}}]}],"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},"named_param_map":[]}]}} -{"sql":"select (select min(i::int)+tbl.k from varchars) from (values (1), (2), (3)) tbl(k);","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":"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"query_location_length":11,"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":20,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":5,"column_names":["tbl","k"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":53,"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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["k"]},"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 UNION ALL SELECT AVG(i) FROM integers UNION ALL SELECT MIN(i) FROM integers UNION ALL SELECT MAX(i) FROM integers;","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":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"]}}]}],"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":49,"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":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":83,"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":87,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":95,"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"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":125,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":133,"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(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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"([a-z])\\d+"}},"qualified_exclude_list":[],"rename_list":[]}}]}],"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 1_000_000","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":9,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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__2'::FLOAT","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":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1__2.1__2"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5::DOUBLE","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":31,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":23,"scale":1}},"is_null":false,"value":{"upper":542,"lower":1864712049423024133}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '_12e10::BIGINT' == 12e10::BIGINT","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"_12e10::BIGINT"}},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":5,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":120000000000.0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::FLOAT","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":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":120000000000.0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 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":[]}],"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":[]},"column_name_alias":[],"with_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 integers SELECT DISTINCT i%2 WHERE i\u003e0 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":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":30,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"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":40,"query_location_length":3,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT v.split(' ').apply(lambda x: x.lower()) FROM varchars","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":"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":7,"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":15,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":26,"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":36,"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":[]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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 [a for a in [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":28,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":21,"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":19,"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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}}]}},{"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":["a"]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["a"]},"syntax_type":"LAMBDA_KEYWORD"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM integers GROUP BY i HAVING COLUMNS(*)\u003e42","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["i"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":41,"query_location_length":13,"left":{"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT \"weird name\".* EXCLUDE (\"select\") FROM \"weird name\"","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":33,"relation_name":"weird name","exclude_list":["select"],"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":12,"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":"SELECT switch(i, MAP {1 : 100, 3 : 300}) FROM nums 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":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":33,"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":1,"column_names":["i"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":22,"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":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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":26,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":300}}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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 tbl AT (TIMESTAMP =\u003e TIMESTAMP '2020-01-01' + 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":48,"schema_name":"","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":{"unit":"TIMESTAMP","expr":{"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":35,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["a"]}}]}},"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 MIN(COLUMNS('xxx')) FROM grouped_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":"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":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xxx"}},"qualified_exclude_list":[],"rename_list":[]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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 COLUMNS(list_concat(['i'], ['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":34,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":28,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}},{"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}}]},"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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 COLUMNS([NULL]) 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":15,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},"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":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('xxxx')","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":15,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xxxx"}},"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 struct_pack(*COLUMNS(*)) from 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":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":19,"query_location_length":11,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":28,"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":37,"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":"with integers as (\n\tselect * FROM (VALUES\n\t\t(21, 42),\n\t\t(1337, 7331)\n\t) as t(a, b)\n)\nselect [(UNPACK(a + COLUMNS(['a', 'b'])))] from integers","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"integers","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":27,"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":34,"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":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":21}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1337}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7331}}]]},"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}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"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":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":94,"query_location_length":31,"children":[{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":105,"query_location_length":19,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":113,"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":114,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]},"qualified_exclude_list":[],"rename_list":[]}}]}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":133,"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 WHERE COLUMNS(* EXCLUDE (col1, col2, col3)) \u003e= 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":"STAR","type":"STAR","alias":"","query_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_GREATERTHANOREQUALTO","alias":"","query_location":24,"query_location_length":42,"left":{"class":"STAR","type":"STAR","alias":"","query_location":32,"query_location_length":28,"relation_name":"","exclude_list":["col1","col3","col2"],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 2**(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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 a as \"b\", \"b\" + 1 from (VALUES (84), (42)) t(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":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":7,"query_location_length":1,"column_names":["a"]},{"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":17,"query_location_length":3,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":30,"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":39,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":84}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 E'\\\\\\\\' = '\\\\';","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":14,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\\\"}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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":"foo; ","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":18446744073709551615,"query_location_length":0,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM pg_depend 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":9,"schema_name":"","table_name":"pg_depend","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_depend"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from pg_prepared_statements 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":46,"query_location_length":4,"column_names":["name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"","table_name":"pg_prepared_statements","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_prepared_statements"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM pg_type","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"pg_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_type"]}},"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 = 'int2' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"int2"}}},{"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 * FROM pg_catalog.pg_views","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"pg_catalog","table_name":"pg_views","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_views"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT nspname FROM pg_namespace\nWHERE nspname NOT LIKE 'pg_%'\nORDER BY nspname","json":{"error":false,"statements":[{"node":{"type":"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":7,"column_names":["nspname"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["nspname"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"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":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":39,"query_location_length":7,"column_names":["nspname"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"pg_%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n\tpgd.description as table_comment\nFROM\n\tpg_catalog.pg_description pgd\nWHERE\n\tpgd.objsubid = 0 AND\n\tpgd.objoid = (SELECT MIN(table_oid) FROM duckdb_tables)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"table_comment","query_location":8,"query_location_length":15,"column_names":["pgd","description"]}],"from_table":{"type":"BASE_TABLE","alias":"pgd","sample":null,"query_location":47,"query_location_length":29,"schema_name":"pg_catalog","table_name":"pg_description","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_description"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":84,"query_location_length":77,"children":[{"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":12,"column_names":["pgd","objsubid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":55,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":10,"column_names":["pgd","objoid"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":119,"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":127,"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":131,"query_location_length":9,"column_names":["table_oid"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":147,"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 1, 2, 3, current_query();","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"query_location_length":15,"function_name":"current_query","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 CPB(CPDH,NF,JG) AS (\nSELECT 'C1',2022,10\nUNION ALL\nSELECT 'C1',2018,20\nUNION ALL\nSELECT 'C1',2017,0\nUNION ALL\nSELECT 'C2',2022,10\nUNION ALL\nSELECT 'C2',2010,30\nUNION ALL\nSELECT 'C3',2010,80\n)\npivot CPB on nf IN (2010, 2017, 2018, 2022) using sum(jg)group by cpdh","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"CPB","value":{"aliases":["CPDH","NF","JG"],"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":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2022}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":63,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2018}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C1"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2017}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2022}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":152,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C2"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2010}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":182,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"C3"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2010}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":192,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":80}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":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":203,"query_location_length":3,"schema_name":"","table_name":"CPB","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["CPB"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":247,"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":251,"query_location_length":2,"column_names":["jg"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":210,"query_location_length":2,"column_names":["nf"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2010}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2017}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2018}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2022}],"star_expr":null,"alias":""}],"pivot_enum":""}],"groups":["cpdh"],"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_east, q1_west, q2_east, q2_west, q3_east, q3_west, q4_east, q4_west\n FROM sales\n PIVOT (sum(sales)\n FOR (quarter, region)\n IN ((1, 'east') AS q1_east, (1, 'west') AS q1_west, (2, 'east') AS q2_east, (2, 'west') AS q2_west,\n (3, 'east') AS q3_east, (3, 'west') AS q3_west, (4, 'east') AS q4_east, (4, 'west') AS q4_west));","json":{"error":false,"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":7,"column_names":["q1_east"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":7,"column_names":["q1_west"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":7,"column_names":["q2_east"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":7,"column_names":["q2_west"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":7,"column_names":["q3_east"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":7,"column_names":["q3_west"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":7,"column_names":["q4_east"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":7,"column_names":["q4_west"]}],"from_table":{"type":"PIVOT","alias":"","sample":null,"query_location":110,"query_location_length":250,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"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":110,"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":114,"query_location_length":5,"column_names":["sales"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":132,"query_location_length":7,"column_names":["quarter"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"query_location_length":6,"column_names":["region"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"east"}],"star_expr":null,"alias":"q1_east"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"west"}],"star_expr":null,"alias":"q1_west"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"east"}],"star_expr":null,"alias":"q2_east"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"west"}],"star_expr":null,"alias":"q2_west"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"east"}],"star_expr":null,"alias":"q3_east"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"west"}],"star_expr":null,"alias":"q3_west"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"east"}],"star_expr":null,"alias":"q4_east"},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4},{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"west"}],"star_expr":null,"alias":"q4_west"}],"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"]}}]}],"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 *\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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"]}}]}],"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 *\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"]}}]}],"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":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"JAN"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FEB"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MAR"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DEC"}],"star_expr":null,"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\n\t(UNPIVOT t1 ON \"Sales (05/19/2020)\" AS \"2020-05-19\", \"Sales (06/03/2020)\" AS \"2020-06-03\", \"Sales (10/23/2020)\" AS \"2020-10-23\" INTO NAME date VALUE sales)\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":"SUBQUERY","alias":"","sample":null,"query_location":15,"query_location_length":155,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":24,"query_location_length":2,"schema_name":"","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t1"]}},"aggregates":[],"unpivot_names":["sales"],"pivots":[{"pivot_expressions":[],"unpivot_names":["date"],"entries":[{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"2020-05-19","query_location":30,"query_location_length":20,"column_names":["Sales (05/19/2020)"]},"alias":"2020-05-19"},{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"2020-06-03","query_location":68,"query_location_length":20,"column_names":["Sales (06/03/2020)"]},"alias":"2020-06-03"},{"values":[],"star_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"2020-10-23","query_location":106,"query_location_length":20,"column_names":["Sales (10/23/2020)"]},"alias":"2020-10-23"}],"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 col1 + 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":28,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":"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":51,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"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":"unpivot (select cast(columns(*) as varchar) from (select 42 as col1, 'woot' as col2))\n on 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":"PIVOT","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"source":{"type":"SUBQUERY","alias":"","sample":null,"query_location":8,"query_location_length":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":27,"child":{"class":"STAR","type":"STAR","alias":"","query_location":29,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":49,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col1","query_location":57,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":69,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]},"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":"STAR","type":"STAR","alias":"","query_location":101,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tracked_metrics"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(\n\tlist_filter(\n\t\tlist_transform(l, lambda x: struct_pack(filter := x \u003e 8, result := x + 5)),\n\t\tlambda s: NOT s.filter\n\t),\n\tlambda s: s.result\n) 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":158,"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":118,"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":39,"query_location_length":74,"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":54,"query_location_length":1,"column_names":["l"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":57,"query_location_length":55,"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":67,"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":"filter","expression":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"filter","query_location":89,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}},{"name":"result","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"result","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":117,"query_location_length":22,"lhs":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["s"]},"expr":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":127,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":131,"query_location_length":8,"column_names":["s","filter"]}]},"syntax_type":"LAMBDA_KEYWORD"}}]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":145,"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":155,"query_location_length":8,"column_names":["s","result"]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":171,"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 integers WHERE (i=1 AND i\u003e0) OR (i=1 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":69,"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":30,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":30,"query_location_length":11,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":47,"query_location_length":11,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (i IS NULL AND i=1) OR (i IS 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":74,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":7,"query_location_length":43,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":8,"query_location_length":17,"children":[{"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":["i"]}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":31,"query_location_length":18,"children":[{"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":["i"]}]},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":45,"query_location_length":4,"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":47,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}]}],"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":[]}]}} +{"sql":"SELECT CAST('2020-02-20' AS date) - CAST(min(\"ta_1\".\"lo_commitdate\") AS date) AS \"ca_1\"\nFROM dates AS \"ta_1\"\nHAVING CAST('2020-02-20' AS date) - CAST(min(\"ta_1\".\"lo_commitdate\") AS date) \u003e 4\nORDER BY \"ca_1\" 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":200,"query_location_length":6,"column_names":["ca_1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"ca_1","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":7,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-02-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":41,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":27,"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":22,"column_names":["ta_1","lo_commitdate"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"ta_1","sample":null,"query_location":93,"query_location_length":15,"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":116,"query_location_length":74,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-02-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":137,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":145,"query_location_length":41,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":150,"query_location_length":27,"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":154,"query_location_length":22,"column_names":["ta_1","lo_commitdate"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":181,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":189,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT test1.i FROM test AS test1, test AS test2 WHERE (test1.i=test2.j) OR (test2.i IS NULL AND test1.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":7,"column_names":["test1","i"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":15,"query_location_length":33,"left":{"type":"BASE_TABLE","alias":"test1","sample":null,"query_location":20,"query_location_length":13,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"right":{"type":"BASE_TABLE","alias":"test2","sample":null,"query_location":35,"query_location_length":13,"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_OR","alias":"","query_location":55,"query_location_length":58,"children":[{"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":7,"column_names":["test1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":7,"column_names":["test2","j"]}},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":77,"query_location_length":35,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":85,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":7,"column_names":["test2","i"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":105,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"query_location_length":7,"column_names":["test1","j"]}]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -(CAST(-2147483648 AS INTEGER)), typeof(-(CAST(-2147483648 AS 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":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":9,"query_location_length":28,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":11,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483648}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":47,"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":49,"query_location_length":28,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":11,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483648}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * 0 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}],"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 timestamp_str, cast(timestamp_str as timestamp)\nfrom table1\nwhere cast(timestamp_str as timestamp) \u003e cast('2024-05-03 01: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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"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":75,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":108,"query_location_length":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-05-03 01:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":138,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"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 AND s.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":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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":43,"query_location_length":26,"children":[{"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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["s","a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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) \u003c 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":[]}],"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":23,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5000}}},"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) = 2020) IS 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":[]}],"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_NOT_DISTINCT_FROM","alias":"","query_location":47,"query_location_length":8,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":18446744073709551615,"query_location_length":0,"child":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":15,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":35,"query_location_length":2,"column_names":["dt"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2020}}},"cast_type":{"id":"BOOLEAN","type_info":null},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT NOT (a AND b), (NOT a) OR (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":13,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":12,"query_location_length":7,"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":18,"query_location_length":1,"column_names":["b"]}]}]},{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":22,"query_location_length":18,"children":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":23,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":149,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":189,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}}},"try_cast":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","a","b"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT lhs.id FROM (SELECT 1 id) lhs ANTI JOIN (SELECT 1 id WHERE FALSE) rhs ON lhs.id = rhs.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":6,"column_names":["lhs","id"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":58,"left":{"type":"SUBQUERY","alias":"lhs","sample":null,"query_location":19,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"rhs","sample":null,"query_location":47,"query_location_length":25,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"id","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":66,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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_EQUAL","alias":"","query_location":80,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":6,"column_names":["lhs","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":6,"column_names":["rhs","id"]}},"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 integers i1 LEFT OUTER JOIN integers i2 ON 1=1 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":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":34,"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":42,"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":57,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"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":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"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 (SELECT i1.i AS a, i2.i AS b, row_number() OVER (ORDER BY i1.i, i2.i) FROM integers i1, integers i2 WHERE i1.i IS NOT NULL AND i2.i IS NOT NULL) a1 WHERE a=b 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":181,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"a1","sample":null,"query_location":14,"query_location_length":144,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":22,"query_location_length":4,"column_names":["i1","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"b","query_location":33,"query_location_length":4,"column_names":["i2","i"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":44,"query_location_length":39,"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":72,"query_location_length":4,"column_names":["i1","i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":4,"column_names":["i2","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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":84,"query_location_length":29,"left":{"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"]}},"right":{"type":"BASE_TABLE","alias":"i2","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"]}},"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":120,"query_location_length":37,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":125,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":120,"query_location_length":4,"column_names":["i1","i"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":146,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":141,"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":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":168,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":168,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"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 * FROM (SELECT * FROM vals1, vals2 WHERE j=5 AND l=5) tbl1 LEFT OUTER JOIN (SELECT * FROM vals1, vals2) tbl2 ON tbl1.i=tbl2.i AND tbl1.k=tbl2.k WHERE tbl2.j=5 AND tbl2.l=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":84,"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":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":31,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":119,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":6,"column_names":["tbl1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":126,"query_location_length":6,"column_names":["tbl2","i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":137,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":137,"query_location_length":6,"column_names":["tbl1","k"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":6,"column_names":["tbl2","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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":157,"query_location_length":21,"children":[{"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":6,"column_names":["tbl2","j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":170,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":6,"column_names":["tbl2","l"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM (SELECT 0=1 AS cond FROM vals1, vals2 GROUP BY 1) a1 WHERE cond 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":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"a1","sample":null,"query_location":14,"query_location_length":49,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"cond","query_location":22,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":34,"query_location_length":17,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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":46,"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":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":[]},"where_clause":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":4,"column_names":["cond"]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(i) FROM integers where j \u003e 90 and j \u003c 95","json":{"error":false,"statements":[{"node":{"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"]}}]}],"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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":36,"query_location_length":17,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":["j"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":90}}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":95}}}]},"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(power(x, 2)) s FROM negative_power_stats 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":63,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":33,"query_location_length":18,"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":11,"function_name":"power","schema":"","filter":null,"order_bys":{"type":"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":20,"schema_name":"","table_name":"negative_power_stats","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["negative_power_stats"]}},"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,\n coalesce(((-x) \u003e 0)::VARCHAR, 'NIL'),\n coalesce(((-x) \u003e= 0)::VARCHAR, 'NIL'),\n coalesce(((-x) \u003c 0)::VARCHAR, 'NIL'),\n coalesce(((-x) \u003c= 0)::VARCHAR, 'NIL'),\n coalesce(((-x) = 0)::VARCHAR, 'NIL')\nFROM neg 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":258,"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_COALESCE","alias":"","query_location":18,"query_location_length":37,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":28,"query_location_length":9,"left":{"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":["x"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NIL"}}]},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":64,"query_location_length":37,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":84,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":74,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"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":76,"query_location_length":1,"column_names":["x"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NIL"}}]},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":110,"query_location_length":37,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":130,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":120,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":121,"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":122,"query_location_length":1,"column_names":["x"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NIL"}}]},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":156,"query_location_length":37,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":176,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":166,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":167,"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":168,"query_location_length":1,"column_names":["x"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":178,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NIL"}}]},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":202,"query_location_length":37,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":222,"query_location_length":9,"child":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":212,"query_location_length":9,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":213,"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":214,"query_location_length":1,"column_names":["x"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":220,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":224,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":233,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NIL"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":245,"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":[]}]}} +{"sql":"SELECT sum(payload) FROM s WHERE v IS DISTINCT 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":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"]}}]}],"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_DISTINCT_FROM","alias":"","query_location":33,"query_location_length":22,"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":52,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},"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 \u003e 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"]}}]}],"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_GREATERTHAN","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}}}]}},"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 \u003e 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"]}}]}],"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_GREATERTHAN","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}},"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[2:5] \u003e '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":[]}],"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":15,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4950"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM substring_pruning_utf8 WHERE substr(s, 2) = '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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":22,"schema_name":"","table_name":"substring_pruning_utf8","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["substring_pruning_utf8"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":50,"query_location_length":23,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"query_location_length":12,"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":57,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"495000"}}},"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":[]}],"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":[]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":true},"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":[]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-06-15 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from t3 group by cube(a, b, 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":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["c"]}],"group_sets":[[],[0],[0,1],[0,1,2],[0,2],[1],[1,2],[2]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT x::BIGINT IN (1::BIGINT, y) FROM (VALUES (1::INTEGER, 2::BIGINT), (2::INTEGER, 3::BIGINT)) tbl(x, y);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":20,"query_location_length":14,"children":[{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["y"]}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":40,"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":50,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":75,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":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"]},"where_clause":null,"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 = 300000;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":300000}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM services QUALIFY count(*) OVER(PARTITION BY date, train_number) = 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":"STAR","type":"STAR","alias":"","query_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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":50,"left":{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":22,"query_location_length":46,"function_name":"count","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":4,"column_names":["date"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}},"named_param_map":[]}]}} +{"sql":"SELECT g, n, sum(n) OVER (PARTITION BY g) s \nFROM (\n\tSELECT nextval('seq') g, i n \n\tFROM t\n) \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":103,"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":["g"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["n"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"s","query_location":13,"query_location_length":28,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":1,"column_names":["g"]}],"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":["n"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":50,"query_location_length":42,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"g","query_location":60,"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":68,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"n","query_location":78,"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":[]},"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 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 (SELECT * FROM range(5) UNION ALL SELECT * FROM range(5) LIMIT 7) 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":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":21,"query_location_length":65,"subquery":{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},"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":"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"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":62,"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":69,"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":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"column_name_alias":[],"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 42 ORDER BY -9223372036854775808;","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":19,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 integers OFFSET nextval('of_seq');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":17,"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":38,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"of_seq"}}}]},"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 * FROM t ORDER BY x LIMIT (SELECT 3) OFFSET (SELECT 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":25,"query_location_length":1,"column_names":["x"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":33,"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":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"comparison_type":"INVALID"},"offset":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":51,"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":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"comparison_type":"INVALID"},"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 a FROM test LIMIT 79.9%","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":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":799}},"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(10000) LIMIT 0.1% OFFSET 9999","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9999}},"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":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":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"column_name_alias":[],"with_ordinality":"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_PACK(a := 42, b := 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":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":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT * FROM test ORDER BY i NULLS LAST, j NULLS LAST LIMIT 2","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":28,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["j"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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 WHERE a \u003c 13 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":44,"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_LESSTHAN","alias":"","query_location":28,"query_location_length":6,"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":32,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a FROM test ORDER BY 'hello world', a","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":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"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":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 t ORDER BY true, a","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":25,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"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":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 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 range(1) WITH ORDINALITY AS _(ordinality);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":["ordinality"],"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 column00, row_number() OVER () AS ordinality FROM read_csv('{DATA_DIR}/csv/customer.csv') ORDER BY ordinality,column00;","json":{"error":false,"statements":[{"node":{"type":"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":10,"column_names":["ordinality"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":8,"column_names":["column00"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["column00"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"ordinality","query_location":17,"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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":57,"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":66,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/customer.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 1080863910568919040::BIGINT * 1080863910568919040::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":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":"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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1080863910568919040}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1080863910568919040}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::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":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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 2e38::FLOAT * 2e38::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":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":11,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":2e38}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":2e38}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::INTEGER + -2147483647::INTEGER","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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"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":31,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483647}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::SMALLINT - 32767::SMALLINT","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":32767}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * 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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":127}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * 1073741825::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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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":21,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1073741825}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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*15::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":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":["i"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"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","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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":120}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ALL CAST ( - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) 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":11,"query_location_length":65,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"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":20,"query_location_length":43,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":37,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"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 (SELECT cast(100 AS TINYINT) AS a, cast(100 AS TINYINT) AS b) tbl1","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl1","sample":null,"query_location":18,"query_location_length":61,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":26,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":53,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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([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":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":"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["a"]}}]}}]}],"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":[{"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":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM v1 t1 JOIN v1 t2 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":20,"query_location_length":20,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":14,"query_location_length":5,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":25,"query_location_length":5,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"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 price, amount_sold, total_profit FROM (SELECT COLUMNS(*)::VARCHAR 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":5,"column_names":["price"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":11,"column_names":["amount_sold"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":12,"column_names":["total_profit"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":45,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":9,"child":{"class":"STAR","type":"STAR","alias":"","query_location":61,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":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":[]},"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 '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1000__000__000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1_2.12"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"_1_000_000_000_000_000_000_000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":5,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":1e21}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0b0_1_0_1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":120000000000.0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":7,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"FROM integers JOIN integers i2 USING (i)","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":"JOIN","alias":"","sample":null,"query_location":14,"query_location_length":26,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"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":"i2","sample":null,"query_location":19,"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":[]}]}} +{"sql":"SELECT v.split(' ').length() FROM varchars","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":8,"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":7,"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":15,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"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":"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":"BASE_TABLE","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 * REPLACE (\"odder col\" + 1 AS \"odder col\") FROM \"weird name\"","json":{"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":"","exclude_list":[],"replace_list":[{"key":"odder col","value":{"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":18,"query_location_length":11,"column_names":["odder col"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":12,"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":"SELECT switch(val, MAP { 1 : 'one', NULL : 'is_null'}, '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":88,"query_location_length":3,"column_names":["val"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":56,"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":34,"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":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"one"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"is_null"}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"other"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":69,"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(*) FROM integers","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":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":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},"named_param_map":[]}]}} +{"sql":"SELECT COLUMNS(*) + COLUMNS(* EXCLUDE(j)) 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":"STAR","type":"STAR","alias":"","query_location":28,"query_location_length":12,"relation_name":"","exclude_list":["j"],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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 COLUMNS(['i']) + COLUMNS(['i']) FROM integers","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":"STAR","type":"STAR","alias":"","query_location":7,"query_location_length":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":16,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]},"qualified_exclude_list":[],"rename_list":[]}},{"name":"","expression":{"class":"STAR","type":"STAR","alias":"","query_location":24,"query_location_length":14,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":33,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]},"qualified_exclude_list":[],"rename_list":[]}}]}],"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 COLUMNS(NULL::VARCHAR[]) 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":24,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},"qualified_exclude_list":[],"rename_list":[]}],"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":"select column_name from (describe select COALESCE(*COLUMNS(*)) from (select NULL, 2, 3) t(a, b, 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":11,"column_names":["column_name"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"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":"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":"OPERATOR","type":"OPERATOR_COALESCE","alias":"","query_location":41,"query_location_length":21,"children":[{"class":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":50,"query_location_length":11,"children":[{"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":[]}]}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":68,"query_location_length":19,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["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":""},"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 *COLUMNS(COLUMNS(*)) FROM (VALUES ('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":20,"children":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":{"class":"STAR","type":"STAR","alias":"","query_location":24,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]},"qualified_exclude_list":[],"rename_list":[]}]}],"from_table":{"type":"SUBQUERY","alias":"","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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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\n\t[UNPACK(COLUMNS(*)::VARCHAR)]\nfrom (\n\tselect\n\t\t21::INTEGER a,\n\t\tTrue::BOOL b,\n\t\t0.1234::DOUBLE c\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":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":"OPERATOR","type":"OPERATOR_UNPACK","alias":"","query_location":9,"query_location_length":27,"children":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"STAR","type":"STAR","alias":"","query_location":24,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":43,"query_location_length":63,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"a","query_location":57,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":21}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"b","query_location":76,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":4,"catalog":"","schema":"","type_name":"BOOL","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"c","query_location":94,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":6,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":5,"scale":4}},"is_null":false,"value":1234}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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 * FROM tbl WHERE * \u003e= 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":"STAR","type":"STAR","alias":"","query_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_GREATERTHANOREQUALTO","alias":"","query_location":24,"query_location_length":6,"left":{"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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (16/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":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":8,"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":8,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 a as localtime from (VALUES ('2018-01-01'), ('2022-01-01')) t(a) where localtime \u003e= '2020-01-01'","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"localtime","query_location":7,"query_location_length":1,"column_names":["a"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":27,"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":36,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2018-01-01"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-01-01"}}]]},"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":78,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":9,"column_names":["localtime"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}}},"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":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":13,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT e'\\7' = chr(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":14,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\u0007"}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"bar: 1 + 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"bar","query_location":7,"query_location_length":0,"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":5,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 a$c;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a$c","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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'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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b1010"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 pg_catalog.pg_depend 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":20,"schema_name":"pg_catalog","table_name":"pg_depend","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_depend"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT has_column_privilege('main', 'test', 'col'), has_column_privilege(current_user, 'main', 'test', 'col')","json":{"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":"has_column_privilege","schema":"","filter":null,"order_bys":{"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"col"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":57,"function_name":"has_column_privilege","schema":"","filter":null,"order_bys":{"type":"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":12,"column_names":["current_user"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"col"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 pg_catalog.pg_type","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"pg_catalog","table_name":"pg_type","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_catalog","pg_type"]}},"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 = 'interval' 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":40,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":20,"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":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"interval"}}},{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":59,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"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 viewname, viewowner FROM pg_views WHERE viewname='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":8,"column_names":["viewname"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":9,"column_names":["viewowner"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":8,"schema_name":"","table_name":"pg_views","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_views"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":47,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":8,"column_names":["viewname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"v1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c.relname FROM pg_class c\nJOIN pg_namespace n ON n.oid = c.relnamespace\nWHERE n.nspname = 'main' AND c.relkind in ('r', '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":9,"column_names":["c","relname"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":45,"left":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":22,"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":38,"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":56,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":5,"column_names":["n","oid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"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":85,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":85,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"query_location_length":9,"column_names":["n","nspname"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"main"}}},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":121,"query_location_length":10,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":9,"column_names":["c","relkind"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"r"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"p"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\ti.relname as relname,\n\tix.indisunique, ix.indexprs,\n\ta.attname, a.attnum, c.conrelid, ix.indkey::varchar,\n\tix.indoption::varchar, i.reloptions, am.amname,\n\tpg_get_expr(ix.indpred, ix.indrelid)\nFROM\n\tpg_class t\n\t\tjoin pg_index ix on t.oid = ix.indrelid\n\t\tjoin pg_class i on i.oid = ix.indexrelid\n\t\tleft outer join\n\t\t\tpg_attribute a\n\t\t\ton t.oid = a.attrelid and a.attnum = ANY(ix.indkey)\n\t\tleft outer join\n\t\t\tpg_constraint c\n\t\t\ton (ix.indrelid = c.conrelid and\n\t\t\t\tix.indexrelid = c.conindid and\n\t\t\t\tc.contype in ('p', 'u', 'x'))\n\t\tleft outer join\n\t\t\tpg_am am\n\t\t\ton i.relam = am.oid\nWHERE\n\tt.relkind IN ('r', 'v', 'f', 'm', 'p')\n\tand t.oid = (SELECT MIN(table_oid) FROM duckdb_tables)\n\tand ix.indisprimary = 'f'\nORDER BY\n\tt.relname,\n\ti.relname","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":728,"query_location_length":9,"column_names":["t","relname"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":740,"query_location_length":9,"column_names":["i","relname"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"relname","query_location":8,"query_location_length":9,"column_names":["i","relname"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":14,"column_names":["ix","indisunique"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":11,"column_names":["ix","indexprs"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":9,"column_names":["a","attname"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":8,"column_names":["a","attnum"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":10,"column_names":["c","conrelid"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":103,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":9,"column_names":["ix","indkey"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":105,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":127,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":12,"column_names":["ix","indoption"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":129,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":12,"column_names":["i","reloptions"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":9,"column_names":["am","amname"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":164,"query_location_length":36,"function_name":"pg_get_expr","schema":"","filter":null,"order_bys":{"type":"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":10,"column_names":["ix","indpred"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"query_location_length":11,"column_names":["ix","indrelid"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":538,"query_location_length":50,"left":{"type":"JOIN","alias":"","sample":null,"query_location":396,"query_location_length":139,"left":{"type":"JOIN","alias":"","sample":null,"query_location":305,"query_location_length":88,"left":{"type":"JOIN","alias":"","sample":null,"query_location":262,"query_location_length":40,"left":{"type":"JOIN","alias":"","sample":null,"query_location":220,"query_location_length":39,"left":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":207,"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":"ix","sample":null,"query_location":225,"query_location_length":11,"schema_name":"","table_name":"pg_index","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_index"]}},"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":5,"column_names":["t","oid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":248,"query_location_length":11,"column_names":["ix","indrelid"]}},"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":"i","sample":null,"query_location":267,"query_location_length":10,"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":281,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":281,"query_location_length":5,"column_names":["i","oid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":289,"query_location_length":13,"column_names":["ix","indexrelid"]}},"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":"a","sample":null,"query_location":324,"query_location_length":14,"schema_name":"","table_name":"pg_attribute","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_attribute"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":345,"query_location_length":48,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":345,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":345,"query_location_length":5,"column_names":["t","oid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":353,"query_location_length":10,"column_names":["a","attrelid"]}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":368,"query_location_length":25,"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":383,"query_location_length":9,"column_names":["ix","indkey"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":368,"query_location_length":8,"column_names":["a","attnum"]},"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},"right":{"type":"BASE_TABLE","alias":"c","sample":null,"query_location":415,"query_location_length":15,"schema_name":"","table_name":"pg_constraint","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_constraint"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":438,"query_location_length":96,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":438,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":438,"query_location_length":11,"column_names":["ix","indrelid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":452,"query_location_length":10,"column_names":["c","conrelid"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":471,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":471,"query_location_length":13,"column_names":["ix","indexrelid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":487,"query_location_length":10,"column_names":["c","conindid"]}},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":519,"query_location_length":15,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":506,"query_location_length":9,"column_names":["c","contype"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":520,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"p"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":525,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"u"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":530,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},"right":{"type":"BASE_TABLE","alias":"am","sample":null,"query_location":557,"query_location_length":8,"schema_name":"","table_name":"pg_am","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pg_am"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":572,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":572,"query_location_length":7,"column_names":["i","relam"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":582,"query_location_length":6,"column_names":["am","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":596,"query_location_length":121,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":609,"query_location_length":25,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":596,"query_location_length":9,"column_names":["t","relkind"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":610,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"r"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":615,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"v"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":620,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"f"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":625,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"m"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":630,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"p"}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":640,"query_location_length":50,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":640,"query_location_length":5,"column_names":["t","oid"]},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":648,"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":656,"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":660,"query_location_length":9,"column_names":["table_oid"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":676,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":696,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":696,"query_location_length":15,"column_names":["ix","indisprimary"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":714,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"f"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT pg_catalog.current_query();","json":{"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":"current_query","schema":"pg_catalog","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"pivot p using sum (col2) group by col1 order by 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":48,"query_location_length":4,"column_names":["col1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["col1"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":19,"query_location_length":4,"column_names":["col2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":6,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18446744073709551615,"query_location_length":0,"column_names":["col1"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM Cities\nPIVOT (\n array_agg(id)\n FOR\n name IN ('test','Test')\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":"PIVOT","alias":"","sample":null,"query_location":24,"query_location_length":53,"source":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":5,"query_location_length":6,"schema_name":"","table_name":"Cities","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["Cities"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":13,"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":34,"query_location_length":2,"column_names":["id"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":4,"column_names":["name"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Test"}],"star_expr":null,"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":"PIVOT Cities ON Country IN ('xx') USING SUM(Population);","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":6,"query_location_length":6,"schema_name":"","table_name":"Cities","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["Cities"]}},"aggregates":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":44,"query_location_length":10,"column_names":["Population"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":7,"column_names":["Country"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xx"}],"star_expr":null,"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 v,\n regexp_replace(a, '__pivot_enum_[0-9a-f\\-]+', '__pivot_enum_X') AS a,\n regexp_replace(b, '__pivot_enum_[0-9a-f\\-]+', '__pivot_enum_X') AS b\nFROM captured 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":186,"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":"a","query_location":17,"query_location_length":63,"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":32,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"__pivot_enum_[0-9a-f\\-]+"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"__pivot_enum_X"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":94,"query_location_length":63,"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":109,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"__pivot_enum_[0-9a-f\\-]+"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"__pivot_enum_X"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":168,"query_location_length":8,"schema_name":"","table_name":"captured","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["captured"]}},"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', '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":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"]}}]}],"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":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"JAN"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FEB"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MAR"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"APR"}],"star_expr":null,"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 monthly_sales\nPIVOT(COS(amount) FOR MONTH IN ('JAN', 'FEB', 'MAR', 'APR'))\n AS p (EMP_ID_renamed, JAN, FEB, MAR, APR)\nORDER BY EMP_ID_renamed;","json":{"error":false,"statements":[{"node":{"type":"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":14,"column_names":["EMP_ID_renamed"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":34,"query_location_length":53,"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":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":11,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":6,"column_names":["amount"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":5,"column_names":["MONTH"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"JAN"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FEB"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MAR"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"APR"}],"star_expr":null,"alias":""}],"pivot_enum":""}],"groups":[],"column_name_alias":["EMP_ID_renamed","JAN","FEB","MAR","APR"],"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((a, b, c) FOR month IN ((jan, feb), (mar, april)));","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":49,"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":["a","b","c"],"pivots":[{"pivot_expressions":[],"unpivot_names":["month"],"entries":[{"values":[],"star_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"query_location_length":10,"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":65,"query_location_length":3,"column_names":["jan"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":3,"column_names":["feb"]}}]},"alias":""},{"values":[],"star_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":77,"query_location_length":3,"column_names":["mar"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":5,"column_names":["april"]}}]},"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":"PIVOT monthly_sales ON MONTH IN ('1-JAN', '2-FEB', '3-MAR', '4-APR') USING SUM(AMOUNT) GROUP BY empid","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":6,"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":75,"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":79,"query_location_length":6,"column_names":["AMOUNT"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":5,"column_names":["MONTH"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1-JAN"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2-FEB"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3-MAR"}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4-APR"}],"star_expr":null,"alias":""}],"pivot_enum":""}],"groups":["empid"],"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"col2","query_location":28,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"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_replay_wal_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":78,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":18,"query_location_length":38,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":33,"column_names":["storage","attach_replay_wal_latency"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"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.attach_replay_wal_latency \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":76,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":17,"query_location_length":37,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":33,"column_names":["storage","attach_replay_wal_latency"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"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\n CASE WHEN optimizer.join_order \u003e 0 THEN 'true'\n ELSE '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":11,"query_location_length":68,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":21,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":20,"column_names":["optimizer","join_order"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"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\tCASE WHEN system.total_memory_allocated \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":74,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":18,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":29,"column_names":["system","total_memory_allocated"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"true"}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"false"}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":88,"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 operator[1].extra_info,\n\toperator[1].intermediate_size_bytes,\n\tquery.cpu_time,\n\tquery.total_intermediate_rows,\n\tquery.total_rows_scanned,\n\tquery.total_time,\n\tquery.sql,\n\tsystem.blocked_thread_time,\n\tsystem.peak_buffer_memory,\n\tsystem.peak_temp_dir_size,\n\tsystem.total_memory_allocated\nFROM metrics_output;","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":22,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":15,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["operator"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"extra_info"}}]},{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":32,"query_location_length":35,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":40,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":8,"column_names":["operator"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"intermediate_size_bytes"}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":14,"column_names":["query","cpu_time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":29,"column_names":["query","total_intermediate_rows"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":24,"column_names":["query","total_rows_scanned"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":146,"query_location_length":16,"column_names":["query","total_time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":165,"query_location_length":9,"column_names":["query","sql"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":26,"column_names":["system","blocked_thread_time"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":206,"query_location_length":25,"column_names":["system","peak_buffer_memory"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":234,"query_location_length":25,"column_names":["system","peak_temp_dir_size"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":262,"query_location_length":29,"column_names":["system","total_memory_allocated"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":297,"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 children[1].operator_type, children[1].operator_timing FROM metrics_output;","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":25,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":15,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":8,"column_names":["children"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"operator_type"}}]},{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":34,"query_location_length":27,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":42,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":8,"column_names":["children"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"operator_timing"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":67,"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":[]}]}} @@ -1449,79 +1475,80 @@ {"sql":"SELECT val FROM (\nSELECT * NOT LIKE '%number%' AS val FROM (SELECT 1 AS number1, 2 AS number2, 3 AS end)\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":["val"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":16,"query_location_length":90,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"val","query_location":31,"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":"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":[]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%number%"}}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":59,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"number1","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"number2","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"end","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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 renamed_col FROM (SELECT COLUMNS(* RENAME i AS renamed_col) 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":11,"column_names":["renamed_col"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":57,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":40,"query_location_length":25,"relation_name":"","exclude_list":[],"replace_list":[],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[{"key":{"catalog":"","schema":"","table":"","column":"i"},"value":"renamed_col"}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"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 * EXCLUDE (j, k) REPLACE (i+100 AS i), * EXCLUDE (j) REPLACE (i+100 AS i), * EXCLUDE (j, k) REPLACE (i+101 AS 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":37,"relation_name":"","exclude_list":["j","k"],"replace_list":[{"key":"i","value":{"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":33,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":46,"query_location_length":34,"relation_name":"","exclude_list":["j"],"replace_list":[{"key":"i","value":{"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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"STAR","type":"STAR","alias":"","query_location":82,"query_location_length":37,"relation_name":"","exclude_list":["j","k"],"replace_list":[{"key":"i","value":{"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":"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":110,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":101}}}]}}],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"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 range(1) t1(a) NATURAL JOIN range(1) 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":29,"query_location_length":27,"left":{"type":"TABLE_FUNCTION","alias":"t1","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":["a"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":42,"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":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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 a FROM exprtest WHERE a NOT BETWEEN 43 AND 44","json":{"error":false,"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":8,"schema_name":"","table_name":"exprtest","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["exprtest"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":29,"query_location_length":23,"children":[{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":35,"query_location_length":17,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["a"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":44}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM intest WHERE a IN (43, b) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":7,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}},{"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 a FROM strtest WHERE b \u003c= 'h'","json":{"error":false,"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_LESSTHANOREQUALTO","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":33,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"h"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(rowid), MIN(rowid), MAX(rowid), COUNT(rowid), LAST(rowid) 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":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":11,"query_location_length":5,"column_names":["rowid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":19,"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":23,"query_location_length":5,"column_names":["rowid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","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":["rowid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":49,"query_location_length":5,"column_names":["rowid"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"query_location_length":11,"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":62,"query_location_length":5,"column_names":["rowid"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"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 row_number() OVER (ORDER BY rowid) FROM a 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":58,"query_location_length":5,"column_names":["rowid"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":7,"query_location_length":34,"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":35,"query_location_length":5,"column_names":["rowid"]}}],"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"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 cast(3 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":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.* FROM test 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":6,"relation_name":"test","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"t","sample":null,"query_location":19,"query_location_length":6,"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 ((SELECT MIN(a) FROM test), 2, 3), ((SELECT MAX(b) FROM test), 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":77,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"EXPRESSION_LIST","alias":"valueslist","sample":null,"query_location":18446744073709551615,"query_location_length":0,"expected_names":[],"expected_types":[],"values":[[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":23,"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":31,"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":35,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"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":[]},"child":null,"comparison_type":"INVALID"},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":58,"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":66,"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":70,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"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":[]},"child":null,"comparison_type":"INVALID"},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 v0 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":"v0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v0"]}},"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_csv_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":15,"schema_name":"","table_name":"all_types_csv_1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["all_types_csv_1"]}},"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 \u003c 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t1"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_LESSTHAN","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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('blob_samples') where a 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":[]}],"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":"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"blob_samples"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":65,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"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 100 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":100},"is_percentage":false,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"query_location":21,"query_location_length":41,"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":"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","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},"query_location":67,"query_location_length":34,"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 fs, op FROM duckdb_logs_parsed('FileSystem') WHERE path LIKE '%my_secret%' 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":91,"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":2,"column_names":["fs"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["op"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"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":38,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"FileSystem"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"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":58,"query_location_length":4,"column_names":["path"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%my_secret%"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t.t.t.t.t.t FROM t.t;","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":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["t","t","t","t"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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 (select #1) from range(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":11,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":15,"query_location_length":2,"index":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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":24,"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":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"SELECT j1 : 42, 42 AS j2, 42 j3;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j1","query_location":12,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j2","query_location":16,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j3","query_location":26,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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":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":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"SELECT 42 UNION ALL SELECT 42 WHERE 1=0","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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":36,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM v3","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"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"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1 AS two UNION SELECT 2 UNION 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":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"two","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 five FROM FLOAT8_TBL\nUNION\nSELECT f1 FROM FLOAT8_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":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"COLUMN_REF","type":"COLUMN_REF","alias":"five","query_location":7,"query_location_length":2,"column_names":["f1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"query_location_length":10,"schema_name":"","table_name":"FLOAT8_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["FLOAT8_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":47,"query_location_length":2,"column_names":["f1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"query_location_length":10,"schema_name":"","table_name":"FLOAT8_TBL","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["FLOAT8_TBL"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} -{"sql":"SELECT q2 FROM int8_tbl EXCEPT ALL SELECT q1 FROM int8_tbl 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":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":7,"query_location_length":2,"column_names":["q2"]}],"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":42,"query_location_length":2,"column_names":["q1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 q1 FROM int8_tbl INTERSECT (((SELECT q2 FROM int8_tbl UNION ALL SELECT q2 FROM int8_tbl))) 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":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"setop_type":"INTERSECT","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":"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":44,"query_location_length":2,"column_names":["q2"]}],"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":2,"column_names":["q2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":86,"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 1, 'a' UNION ALL SELECT 2, 'b' UNION ALL SELECT 3, 'c' UNION ALL SELECT 4, 'd' 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":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' UNION ALL SELECT 1, 'a' UNION SELECT 2, 'b' UNION SELECT 1, 'a' ORDER BY 1 DESC","json":{"error":false,"statements":[{"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":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":true,"children":[{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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}]},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 x, y FROM t1 UNION ALL BY NAME SELECT y, z FROM t2 ORDER BY y;","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":67,"query_location_length":1,"column_names":["y"]}}]}],"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"]},{"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":45,"query_location_length":1,"column_names":["y"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":1,"column_names":["z"]}],"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 x as a FROM t1 UNION ALL BY NAME SELECT x FROM t1;","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":"COLUMN_REF","type":"COLUMN_REF","alias":"a","query_location":7,"query_location_length":1,"column_names":["x"]}],"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":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":["x"]}],"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 1, a FROM test UNION SELECT b AS a, 1 FROM test2 ORDER BY a, 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":65,"query_location_length":1,"column_names":["a"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"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":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":"a","query_location":35,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 test.a FROM test UNION SELECT * FROM test2 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":59,"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":6,"column_names":["test","a"]}],"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},{"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":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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 FROM t1 UNION ALL SELECT y FROM t1) UNION BY NAME (SELECT z FROM t2 UNION ALL SELECT y FROM t2) ORDER BY y, z;","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":115,"query_location_length":1,"column_names":["y"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["z"]}}]}],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","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":true,"children":[{"type":"SELECT_NODE","modifiers":[],"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":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["y"]}],"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":"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":68,"query_location_length":1,"column_names":["z"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":1,"column_names":["y"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":102,"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': '0'} as c union all by name select {'a': 0} as c","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":"FUNCTION","type":"FUNCTION","alias":"c","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":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":13,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"c","query_location":48,"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":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM a UNION ALL SELECT * FROM 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":[]}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":21,"query_location_length":43,"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":"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":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":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":[]}]}} -{"sql":"SELECT 1 UNION ALL SELECT * FROM range(2, 100) UNION ALL SELECT 999 LIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"STAR","type":"STAR","alias":"","query_location":26,"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":33,"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":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"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":64,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":999}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 FIRST(i ORDER BY i DESC), LAST(i ORDER BY i DESC) 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":24,"function_name":"first","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":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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"query_location_length":23,"function_name":"last","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":49,"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":38,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":62,"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","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 current_setting('threads')","json":{"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":"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"threads"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.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":6,"schema_name":"abc","table_name":"t1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["abc","t1"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT t.column_name FROM (DESCRIBE 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":13,"column_names":["t","column_name"]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":26,"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":"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":"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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 c4 FROM integers, (SELECT 84))","json":{"error":false,"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":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":"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":2,"column_names":["c4"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":49,"query_location_length":26,"left":{"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"]}},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":64,"query_location_length":11,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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":"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":""},"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-04-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]},"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":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT segment_id, count\nFROM pragma_storage_info('step_test')\nWHERE column_name = 'i' AND segment_type = 'INTEGER'\nORDER BY segment_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":125,"query_location_length":10,"column_names":["segment_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["segment_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":5,"column_names":["count"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":30,"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":50,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"step_test"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":69,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":69,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT s FROM string_test WHERE s = '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"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":11,"schema_name":"","table_name":"string_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["string_test"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":32,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["s"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"42"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM sib.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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"sib","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["sib","t"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT plus2(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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 nextval('seq'), 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":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":15,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":31,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(id), max(id) 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":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":["id"]}}]},{"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":["id"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 d, f from tbl1_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":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["f"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":17,"schema_name":"","table_name":"tbl1_uncompressed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl1_uncompressed"]}},"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 (WHERE v != 9223372036854775807.0) 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":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"query_location_length":50,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":40,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":21,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":20,"scale":1}},"is_null":false,"value":{"upper":4,"lower":18446744073709551606}}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"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 d, f from tbl2_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":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["f"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":10,"schema_name":"","table_name":"tbl2_alprd","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2_alprd"]}},"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('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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"tt"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]}}]}],"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 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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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 sum(length(STREET)) FROM index_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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":6,"column_names":["STREET"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":12,"schema_name":"index_db","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["index_db","tbl"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"fsst%"}}}]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}}]},"column_name_alias":[],"with_ordinality":"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 on (types) types from (select vector_type(a) from test offset 8192) tbl(types)","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":5,"column_names":["types"]}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":5,"column_names":["types"]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":38,"query_location_length":45,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":null,"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8192}},"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":58,"query_location_length":1,"column_names":["a"]}}]}],"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":[]},"column_name_alias":["types"]},"where_clause":null,"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= 19500 AND id_modulo\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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"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"]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]},{"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"]}}]}],"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":43,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1500}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":129,"query_location_length":11,"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":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":19500}}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":145,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":145,"query_location_length":9,"column_names":["id_modulo"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"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":[]}],"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"]},"cast_type":{"id":"BOOLEAN","type_info":null},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},"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 'BOOLEAN' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":58,"query_location_length":62,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"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":58,"query_location_length":12,"column_names":["segment_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BOOLEAN"}}}]},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":91,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Uncompressed"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from test_empty;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_empty","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_empty"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT SUM(s['a']::INT), MIN(s['a']::INT), MAX(s['a']::INT), 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":16,"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":17,"query_location_length":5,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":12,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"query_location_length":16,"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":35,"query_location_length":5,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":30,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":53,"query_location_length":5,"child":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":48,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["s"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},{"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":[]}],"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 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":31,"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":"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 (select sum(nr_bytes) from duckdb_external_file_cache()) = (select total from cached_bytes_before);","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":98,"left":{"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":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":19,"query_location_length":8,"column_names":["nr_bytes"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":34,"query_location_length":28,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_external_file_cache","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"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":66,"query_location_length":39,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":5,"column_names":["total"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":85,"query_location_length":19,"schema_name":"","table_name":"cached_bytes_before","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["cached_bytes_before"]}},"where_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(*), SUM(x) FROM other_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":[]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"query_location_length":9,"schema_name":"","table_name":"other_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["other_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 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":3,"relation_name":"i","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":9,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"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":19,"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":[]}]}} +{"sql":"SELECT COLUMNS(* REPLACE (concat(a::VARCHAR, '_joined') AS a)) 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":46,"relation_name":"","exclude_list":[],"replace_list":[{"key":"a","value":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":26,"query_location_length":29,"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":34,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"_joined"}}}]}}],"columns":true,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":76,"query_location_length":20,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":68,"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":89,"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 (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":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":3,"children":[{"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":33,"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 a FROM strtest WHERE b \u003c\u003e '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_NOTEQUAL","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":33,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT rowid \u003c i, rowid = NULL, rowid = i, rowid \u003c\u003e 0 FROM a","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["i"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":18,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":32,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["i"]}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":43,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"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=0 OR rowid=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":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":22,"query_location_length":18,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"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":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'hello'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} +{"sql":"SELECT test.* 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":6,"relation_name":"test","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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 * FROM (VALUES (1 + 1, 2, 3), (1 + 3, 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":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":"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 v0;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"v0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v0"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT a3, b3, c3 IN (1, 2, 3, 100, 200) FROM table3;","json":{"error":false,"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":["a3"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["b3"]},{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":21,"query_location_length":19,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["c3"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":6,"schema_name":"","table_name":"table3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table3"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select avg(a) \u003e 200, avg(a) \u003c 800 from duckdb_table_sample('t1');","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":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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":21,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":25,"query_location_length":1,"column_names":["a"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":800}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"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":59,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t1"}}}]},"column_name_alias":[],"with_ordinality":"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_table_sample('string_samples') where a 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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":37,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"string_samples"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"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":["a"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from duckdb_table_sample('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":24,"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":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]},"column_name_alias":[],"with_ordinality":"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 small_table USING SAMPLE 20 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":{"sample_size":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":20},"is_percentage":false,"method":"System","seed":-1,"repeatable":false,"sample_rate":-1.0},"query_location":21,"query_location_length":41,"schema_name":"","table_name":"small_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["small_table"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"scope_as_struct"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT t.t.t.t.t.t.t.t FROM t.t;","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":15,"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":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["t","t","t","t"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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 #1+#2 FROM range(1) tbl, range(1) tbl2","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":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":7,"query_location_length":2,"index":1}},{"name":"","expression":{"class":"POSITIONAL_REFERENCE","type":"POSITIONAL_REFERENCE","alias":"","query_location":10,"query_location_length":2,"index":2}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":13,"query_location_length":32,"left":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":18,"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":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"tbl2","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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 \"hel lo\" : 42;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"hel lo","query_location":18,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"from \"my_wonderful_values\" : (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":"SUBQUERY","alias":"my_wonderful_values","sample":null,"query_location":5,"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":"SUBQUERY","alias":"","sample":null,"query_location":30,"query_location_length":10,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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 WHERE 1=0 INTERSECT SELECT 42 WHERE 1=0","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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":37,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":46,"query_location_length":3,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM v1 JOIN v1 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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":20,"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":"v2","sample":null,"query_location":29,"query_location_length":5,"schema_name":"","table_name":"v1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v1"]}},"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 1 AS two 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":"two","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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.1 AS three UNION SELECT 2 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":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"setop_type":"UNION","left":null,"right":null,"setop_all":true,"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":"three","query_location":7,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":11}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 q2 FROM int8_tbl INTERSECT ALL SELECT q1 FROM int8_tbl 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":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"setop_type":"INTERSECT","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":2,"column_names":["q2"]}],"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":45,"query_location_length":2,"column_names":["q1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"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 f1 FROM float8_tbl EXCEPT SELECT f1 FROM int4_tbl 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":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":["f1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":10,"schema_name":"","table_name":"float8_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["float8_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":40,"query_location_length":2,"column_names":["f1"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":48,"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":[]}]}} +{"sql":"SELECT 1, 'a' UNION ALL SELECT 2, 'b'","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 b FROM test WHERE a \u003c 13 UNION SELECT b FROM test WHERE a \u003e 11 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":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":46,"query_location_length":1,"column_names":["b"]}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},"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 * FROM range(2, 100) UNION ALL BY NAME SELECT 999 LIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"SET_OPERATION_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},"offset":null,"limit_type":"ROW_COUNT"}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"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":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"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":80,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":999}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 FROM t1 UNION ALL BY NAME SELECT y 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":"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":["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":["y"]}],"from_table":{"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"]}},"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 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":54,"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":"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}]},"named_param_map":[]}]}} +{"sql":"SELECT a FROM test UNION SELECT * FROM test2 ORDER BY test.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":54,"query_location_length":6,"column_names":["test","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}]},"named_param_map":[]}]}} +{"sql":"(SELECT x FROM t1 UNION ALL SELECT y FROM t1) UNION BY NAME SELECT 5 ORDER BY y;","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":78,"query_location_length":1,"column_names":["y"]}}]}],"cte_map":{"map":[]},"setop_type":"UNION_BY_NAME","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":true,"children":[{"type":"SELECT_NODE","modifiers":[],"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":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["y"]}],"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 '0' as c union all select 0 as c;","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":"c","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 1 UNION SELECT 1.0","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":22,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\tSELECT 1\n\tUNION\n\tSELECT 2\n\tUNION\n\tSELECT 3\n\tUNION\n\tSELECT 4\n\tUNION\n\tSELECT 5\n) tbl(i)\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":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":81,"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":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["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 'hello' i union all select 'h' i) t1 where i='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":"SUBQUERY","alias":"t1","sample":null,"query_location":14,"query_location_length":41,"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":"i","query_location":22,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"h"}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":5,"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"h"}}},"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) UNION ALL SELECT * FROM range(1000000) tbl(i) UNION ALL 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":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":21,"query_location_length":221,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}}}]},"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":121,"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":128,"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":134,"query_location_length":7,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}}}]},"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":167,"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":174,"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":180,"query_location_length":7,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}}}]},"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":213,"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":220,"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":226,"query_location_length":7,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}}}]},"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 '{DATA_DIR}/csv/glob/a1/../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":"BASE_TABLE","alias":"","sample":null,"query_location":14,"query_location_length":35,"schema_name":"","table_name":"{DATA_DIR}/csv/glob/a1/../f_1.csv","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/csv/glob/a1/../f_1.csv"]}},"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/glob/t1.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":"{DATA_DIR}/parquet-testing/glob/t1.parquet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["{DATA_DIR}/parquet-testing/glob/t1.parquet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select corr('hello'::VARCHAR, 'world'::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":"corr","schema":"","filter":null,"order_bys":{"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":12,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"world"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":["i"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":19,"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":25,"query_location_length":7,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}}}]},"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 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 regexp_matches(user_agent, '^duckdb/.*(.*)') FROM pragma_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":44,"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":10,"column_names":["user_agent"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"^duckdb/.*(.*)"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":57,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pragma_user_agent","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_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 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":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":"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":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"DESCRIBE SELECT alias_name as alias_alias_name FROM (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_alias_name","query_location":16,"query_location_length":10,"column_names":["alias_name"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":52,"query_location_length":48,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"alias_name","query_location":60,"query_location_length":9,"column_names":["base_name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":89,"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},"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":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SHOW 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":12,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SUMMARIZE SELECT 9223372036854775296;","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9223372036854775296}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":"SUMMARY","catalog_name":"","schema_name":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT MIN(i) = 0 AND MAX(i) = 99 FROM overflow_test","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":26,"children":[{"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":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"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":11,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":26,"query_location_length":1,"column_names":["i"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":99}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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 min(j), max(j) 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":["j"]}}]},{"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"]}}]}],"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 a, b FROM mmap_db.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":36,"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":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":9,"schema_name":"mmap_db","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["mmap_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 test_default;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_default","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_default"]}},"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,6);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":11,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]},"column_name_alias":[],"with_ordinality":"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 ORDER BY a, b, 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":28,"query_location_length":1,"column_names":["a"]}},{"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":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"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":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 MEDIAN(count) FROM pragma_storage_info('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":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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":26,"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":46,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integers_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 d, f from tbl2_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":1,"column_names":["d"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["f"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":17,"schema_name":"","table_name":"tbl2_uncompressed","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl2_uncompressed"]}},"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('random_alp_float') WHERE segment_type == 'float' 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":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":44,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"random_alp_float"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":70,"query_location_length":48,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"float"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":98,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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('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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"all_types"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ALPRD"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT SUM(col), MIN(col), MAX(col), COUNT(*) FROM test WHERE col=1337","json":{"error":false,"statements":[{"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":["col"]}}]},{"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":["col"]}}]},{"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":["col"]}}]},{"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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":62,"query_location_length":8,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":3,"column_names":["col"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1337}}},"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 'INTEGER' LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"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":58,"query_location_length":12,"column_names":["segment_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM pragma_storage_info('partial_segment')\nWHERE column_name = 'task_id'\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":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":"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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"partial_segment"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":66,"query_location_length":86,"children":[{"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":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"task_id"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":96,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":127,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DICT_FSST"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from compressed_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":39,"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":15,"schema_name":"","table_name":"compressed_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["compressed_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(\"XXX XXX/XXX\") FROM db.t WHERE \"XXX XXX/XXX\" 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":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":["XXX XXX/XXX"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":58,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":13,"column_names":["XXX XXX/XXX"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT sum(length(STREET)) FROM dict_end_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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":6,"column_names":["STREET"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"query_location_length":15,"schema_name":"dict_end_db","table_name":"tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dict_end_db","tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT compression FROM pragma_storage_info('t') WHERE segment_type ILIKE 'VARCHAR'","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":11,"column_names":["compression"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"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":53,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":77,"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":64,"query_location_length":12,"column_names":["segment_type"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM tbl WHERE id = 5040 AND rle_val=100","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":24,"query_location_length":25,"children":[{"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":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5040}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":38,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":7,"column_names":["rle_val"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]},"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_uncompressed') and\n\tmessage.contains('VALIDITY') and\n\tmessage.contains('UNCOMPRESSED');","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":": "}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"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":173,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ColumnDataCheckpointer FinalAnalyze"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":127,"query_location_length":37,"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":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test_uncompressed"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"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":187,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VALIDITY"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":204,"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":221,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UNCOMPRESSED"}}}]}]},"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 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":[]}],"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":8,"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"]},"cast_type":{"id":"BOOLEAN","type_info":null},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FILTER (\n WHERE column_name='n' AND segment_type='INTEGER' AND compression!='RLE'),\n count(*) FILTER (\n WHERE column_name='z' AND segment_type='VARCHAR' AND compression!='ZSTD'),\n count(*) FILTER (\n WHERE column_name='d' AND segment_type='VARCHAR' AND compression!='Uncompressed')\nFROM 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":101,"function_name":"count_star","schema":"","filter":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":42,"query_location_length":65,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":42,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"n"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":62,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"INTEGER"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":89,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"RLE"}}}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":102,"function_name":"count_star","schema":"","filter":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":152,"query_location_length":66,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":152,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":152,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":164,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"z"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":172,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":172,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":185,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":199,"query_location_length":19,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":212,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ZSTD"}}}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":228,"query_location_length":110,"function_name":"count_star","schema":"","filter":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":263,"query_location_length":74,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":263,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":263,"query_location_length":11,"column_names":["column_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":275,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":283,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":283,"query_location_length":12,"column_names":["segment_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":296,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VARCHAR"}}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":310,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":310,"query_location_length":11,"column_names":["compression"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":323,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Uncompressed"}}}]},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":344,"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":364,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}}]},"column_name_alias":[],"with_ordinality":"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(a[1]), max(a[1]) from test_empty_large limit 5;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},"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":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":22,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":33,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"query_location_length":16,"schema_name":"","table_name":"test_empty_large","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_empty_large"]}},"where_clause":null,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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 * 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 current_setting('validate_external_file_cache');","json":{"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":"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":30,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"validate_external_file_cache"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 column_name FROM pragma_storage_info('wide_tbl', include_segment_info=true, loaded_segments_only=true)","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":11,"column_names":["column_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"query_location_length":85,"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":53,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"wide_tbl"}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":65,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":20,"column_names":["include_segment_info"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}},{"name":"","expression":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":92,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":20,"column_names":["loaded_segments_only"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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 WHERE a IS 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":4,"schema_name":"","table_name":"test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":27,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]},"column_name_alias":[],"with_ordinality":"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', include_segment_info=true) WHERE segment_type NOT IN ('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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":["include_segment_info"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":88,"query_location_length":32,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":108,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":12,"column_names":["segment_type"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"VALIDITY"}}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} @@ -1531,578 +1558,596 @@ {"sql":"SELECT k, v FROM del WHERE k IN (50, 99, 100, 200099, 200100, 200101) 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":79,"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":"del","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["del"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":32,"query_location_length":37,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":99}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200099}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200100}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200101}}]},"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;","json":{"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"]}}]},{"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"]}}]},{"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":[]}],"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":null,"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 geom = 'POINT (1500 1500)'::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":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":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":4,"column_names":["geom"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT (1500 1500)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}},"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"]}}]},{"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"]}}]},{"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":[]}],"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"]}}]},{"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"]}}]},{"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":122880}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":245760}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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 LIKE 'empty%' 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":79,"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":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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":42,"query_location_length":13,"column_names":["database_name"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"empty%"}}}]},"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 COALESCE(s.child_stats.total_string_length, 30000) FROM (SELECT stats(a) 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":50,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":33,"column_names":["s","child_stats","total_string_length"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30000}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":63,"query_location_length":37,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":71,"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":77,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"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=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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM a 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":[]}],"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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":31,"query_location_length":7,"children":[{"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 * FROM uhugeints","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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 * FROM uuids","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"uuids","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["uuids"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select \"{col}\"::VARIANT from test_all_types()","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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":7,"column_names":["{col}"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":29,"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":[]},"column_name_alias":[],"with_ordinality":"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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":[]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"block"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT col FROM tbl WHERE 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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i, j FROM integers WHERE j + i = 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":["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":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":32,"query_location_length":9,"left":{"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":["j"]}},{"name":"","expression":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM tbl WHERE a = 140;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":7,"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":140}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM distinct_test WHERE CASE WHEN a IS DISTINCT FROM 1 THEN true ELSE false 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"distinct_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["distinct_test"]}},"where_clause":{"class":"CASE","type":"CASE_EXPR","alias":"","query_location":41,"query_location_length":55,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":51,"query_location_length":20,"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":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":5,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}}},"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x123"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT MIN(i), MAX(i), COUNT(*), COUNT(i) FROM a_interval WHERE i=interval 1 year","json":{"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"]}}]},{"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"]}}]},{"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":[]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":47,"query_location_length":10,"schema_name":"","table_name":"a_interval","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a_interval"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":64,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":1,"column_names":["i"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT nextval('seq2')","json":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"seq2"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) 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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":false}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"13:35:07"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":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":[]},"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 row([1, 2], 0) IN (\n\tSELECT * FROM (VALUES ([1, NULL::INT], 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":25,"query_location_length":57,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":35,"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":42,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":11,"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":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 NULL IN (SELECT 1)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":15,"query_location_length":10,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"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 COUNT(DISTINCT row_group_id) FROM pragma_storage_info('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":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"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":41,"query_location_length":50,"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":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"rowid_gap_old_storage_idx.t"}}}]},"column_name_alias":[],"with_ordinality":"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 pragma_storage_info('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":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"]}}]}],"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":"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":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"remap_tasks.t"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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 i IN (2, 5, 2045, 2048, 4094, 4096, 6143) 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":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":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":50,"query_location_length":36,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["i"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2045}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2048}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4094}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4096}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6143}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT min(rowid), count(*) FROM rowid_gap_lookup_db.leading;","json":{"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"]}}]},{"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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":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_lookup_db.middle WHERE rowid IN (245759, 245760) 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":89,"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":16,"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":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":245759}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":245760}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM test WHERE a=12","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":4,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"storage_versions66"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) = 0\nFROM duckdb_eviction_queues()\nWHERE dead_nodes \u003c 0\n OR dead_nodes \u003e total_insertions;","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":[]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}],"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":"duckdb_eviction_queues","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":56,"query_location_length":50,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":56,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":10,"column_names":["dead_nodes"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":77,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":10,"column_names":["dead_nodes"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":16,"column_names":["total_insertions"]}}]},"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), MIN(b), MAX(b), COUNT(a), COUNT(b) 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":[]},{"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"]}}]},{"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"]}}]},{"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":45,"query_location_length":1,"column_names":["b"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":53,"query_location_length":1,"column_names":["b"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"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":63,"query_location_length":1,"column_names":["a"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"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":73,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":81,"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 a 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT s.id FROM structs 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":4,"column_names":["s","id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"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 timestamp WHERE micro=TIMESTAMP '2020-01-01 00:00:01.88926' ORDER BY micro","json":{"error":false,"statements":[{"node":{"type":"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":5,"column_names":["micro"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":43,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":5,"column_names":["micro"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":37,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01 00:00:01.88926"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT d FROM unsigned WHERE d \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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":8,"schema_name":"","table_name":"unsigned","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["unsigned"]}},"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":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"from query($$select col.\"$$ || getvariable('col_name') || $$\"::$$ || getvariable('col_type') || ' from 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":103,"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":96,"function_name":"||","schema":"","filter":null,"order_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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"select col.\""}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":23,"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":43,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"col_name"}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\"::"}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":23,"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":81,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"col_type"}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" from tbl"}}}]}}]},"column_name_alias":[],"with_ordinality":"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 ints WHERE col \u003e 50::INTEGER::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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"ints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ints"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":32,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":3,"column_names":["col"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},"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","json":{"error":false,"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select s.fully_shredded from (select stats(col) 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":16,"column_names":["s","fully_shredded"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":29,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":37,"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":43,"query_location_length":3,"column_names":["col"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":55,"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":"FROM shredded_values","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":"","table_name":"shredded_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["shredded_values"]}},"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","json":{"error":false,"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT storage.wal_replay_entry_count FROM replay_metrics;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":30,"column_names":["storage","wal_replay_entry_count"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"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 * FROM tbl WHERE a = 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"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 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":[]}],"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":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":34,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"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 t WHERE 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t WHERE upper(b)='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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":35,"query_location_length":1,"column_names":["b"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Y"}}},"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 NULL OR 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":[]}],"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":22,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":34,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":1,"column_names":["a"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":47,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"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 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":[]}],"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 i\u003eALL(SELECT (i+i1.i-1)/2 FROM integers WHERE i IS NOT 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":94,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":60,"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":20,"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":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":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":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["i1","i"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":{"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":53,"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_LESSTHANOREQUALTO"}]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":73,"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\u003eALL(SELECT (i+i1.i-1)/2 FROM integers) 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":74,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_NOT","alias":"","query_location":7,"query_location_length":40,"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":20,"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":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":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":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":4,"column_names":["i1","i"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_LESSTHANOREQUALTO"}]}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":53,"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(1, 2) IN (SELECT * FROM (VALUES (NULL::INT, NULL::INT)) rhs(x, y)),\n row(1, 2) NOT IN (SELECT * FROM (VALUES (NULL::INT, NULL::INT)) rhs(x, y))","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":57,"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":"rhs","sample":null,"query_location":35,"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":48,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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"]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"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":103,"query_location_length":57,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"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":"SUBQUERY","alias":"rhs","sample":null,"query_location":118,"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":131,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":133,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":142,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":144,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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"]},"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":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":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"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([9, NULL::INT], 0) IN (\n\tSELECT * FROM (VALUES ([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":33,"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":43,"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":50,"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":59,"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":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":19,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 (0, NULL) \u003c ANY(SELECT 1, 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":31,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":[]},"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":8,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},"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 (2, 0) \u003e 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},"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 (1, 2) = ALL(SELECT 1, 2);","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"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, 1) \u003e= 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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, NULL::INT) \u003c\u003e ANY (SELECT * FROM (VALUES (1, 2), (2, 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":69,"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":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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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 = ALL(SELECT 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":20,"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":22,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"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 AS one WHERE 1 IN (SELECT 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"one","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":27,"query_location_length":10,"subquery_type":"ANY","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"comparison_type":"COMPARE_EQUAL"},"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\u003e ALL(SELECT i FROM integers WHERE i=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":["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":42,"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":"COMPARISON","type":"COMPARE_EQUAL","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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 (SELECT EXISTS(SELECT * FROM integers WHERE i\u003e2)) FROM integers;","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":49,"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":40,"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":"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","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":["i"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},"group_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":62,"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 l IN (SELECT i1.l FROM generate_series(1, 2, 1) tbl(s) LEFT JOIN (SELECT * FROM lists i1 WHERE i1.l=lists.l) i1 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":161,"query_location_length":1,"column_names":["l"]}}]}],"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","l"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":62,"query_location_length":77,"left":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":30,"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":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":["s"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"SUBQUERY","alias":"i1","sample":null,"query_location":72,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":80,"query_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":87,"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":102,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":4,"column_names":["i1","l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"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":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":122,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":122,"query_location_length":4,"column_names":["i1","l"]},"right":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":127,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":5,"column_names":["tbl","s"]}]}},"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":[]},"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":146,"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 *\nFROM x\nLEFT JOIN y ON x1 = y1 AND EXISTS (SELECT * FROM z WHERE z2 = x2)\nORDER BY x1, x2, y1, y2;","json":{"error":false,"statements":[{"node":{"type":"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":["x1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":2,"column_names":["x2"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":99,"query_location_length":2,"column_names":["y1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":2,"column_names":["y2"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":65,"left":{"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"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":1,"schema_name":"","table_name":"y","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["y"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":31,"query_location_length":50,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["x1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":2,"column_names":["y1"]}},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":43,"query_location_length":38,"subquery_type":"EXISTS","subquery":{"node":{"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":"","sample":null,"query_location":65,"query_location_length":1,"schema_name":"","table_name":"z","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["z"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":73,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":2,"column_names":["z2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":2,"column_names":["x2"]}},"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 (SELECT COVAR_POP(i1.i+i2.i, i1.i+i2.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":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":57,"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":31,"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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":4,"column_names":["i1","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":4,"column_names":["i2","i"]}}]}},{"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":36,"query_location_length":4,"column_names":["i1","i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":4,"column_names":["i2","i"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"i2","sample":null,"query_location":52,"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":70,"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 c1 from t1 anti join t2 on (t1.c1 \u003c= t2.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":2,"column_names":["c1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":18,"query_location_length":32,"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":"","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_LESSTHANOREQUALTO","alias":"","query_location":35,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":5,"column_names":["t1","c1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":5,"column_names":["t2","c1"]}},"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 EXISTS(SELECT EXISTS(SELECT * FROM integers))","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":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":21,"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":35,"query_location_length":1,"relation_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":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},"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 * FROM tbl JOIN LATERAL (SELECT x FROM generate_series(0,5,1) t(x) WHERE x\u003ei) t(b) ON (i\u003e=b) ORDER BY i, 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":109,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"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":"JOIN","alias":"","sample":null,"query_location":18,"query_location_length":81,"left":{"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"]}},"right":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":31,"query_location_length":53,"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":["x"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":46,"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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":["x"],"with_ordinality":"WITHOUT_ORDINALITY"},"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":["x"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"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":["b"]},"condition":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":94,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"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 * FROM integers, (SELECT SUM(i)) t(sum);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":37,"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":24,"query_location_length":15,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":36,"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},"named_param_map":[]},"column_name_alias":["sum"]},"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 + 1) 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":88,"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":55,"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":23,"subquery":{"node":{"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":49,"query_location_length":10,"column_names":["integers","i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["b"]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":3,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"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 * FROM integers a, integers b JOIN LATERAL (VALUES (a.i)) ss(x) ON (true) ORDER BY a.i, b.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":3,"column_names":["a","i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["b","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":71,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":14,"query_location_length":10,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":37,"query_location_length":43,"left":{"type":"BASE_TABLE","alias":"b","sample":null,"query_location":26,"query_location_length":10,"schema_name":"","table_name":"integers","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["integers"]}},"right":{"type":"SUBQUERY","alias":"ss","sample":null,"query_location":50,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["a","i"]}]]},"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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 unique2, x.*\nfrom tenk1 a, lateral (select * from int4_tbl b where f1 = a.unique1) 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":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":20,"query_location_length":71,"left":{"type":"BASE_TABLE","alias":"a","sample":null,"query_location":25,"query_location_length":7,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"right":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":42,"query_location_length":47,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":50,"query_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":57,"query_location_length":10,"schema_name":"","table_name":"int4_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int4_tbl"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":74,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":2,"column_names":["f1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":9,"column_names":["a","unique1"]}},"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 (values(1)) x(lb),\n lateral generate_series(lb,4) x4\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":9,"query_location_length":58,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"TABLE_FUNCTION","alias":"x4","sample":null,"query_location":35,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":2,"column_names":["lb"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"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 42) t(a) cross join lateral (select t.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":"JOIN","alias":"","sample":null,"query_location":31,"query_location_length":35,"left":{"type":"SUBQUERY","alias":"t","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","sample":null,"query_location":50,"query_location_length":16,"subquery":{"node":{"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":58,"query_location_length":3,"column_names":["t","a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"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) t(a) join lateral (select t.a + 1) t2(b) 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":31,"query_location_length":45,"left":{"type":"SUBQUERY","alias":"t","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"t2","sample":null,"query_location":44,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":52,"query_location_length":3,"column_names":["t","a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["b"]},"condition":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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\n array(select distinct i from t order by t.i desc) as a","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"a","query_location":9,"query_location_length":49,"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":"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}}]}]},"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":[]}}],"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":"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}}]}}],"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":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":3,"column_names":["t","i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"__array_internal_idx_1","query_location":49,"query_location_length":3,"column_names":["t","i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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 i1.i FROM integers i1, integers i2, integers i3, integers i4 WHERE i1.i=integers.i LIMIT 3\n) top\nFROM integers\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":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":"SUBQUERY","type":"SUBQUERY","alias":"top","query_location":10,"query_location_length":107,"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}}]}]},"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":[]}}],"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}}]}}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"offset":null,"limit_type":"ROW_COUNT"}],"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":55,"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},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":92,"query_location_length":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":4,"column_names":["i1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":97,"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":[]},"where_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":127,"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 DaysToManufacture, StandardCost, (SELECT [\"0\", \"1\", \"2\", \"3\", \"4\"] 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)\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":189,"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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":49,"query_location_length":3,"column_names":["0"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":3,"column_names":["1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":3,"column_names":["2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":64,"query_location_length":3,"column_names":["3"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":3,"column_names":["4"]}}]}],"from_table":{"type":"PIVOT","alias":"PivotTable","sample":null,"query_location":149,"query_location_length":61,"source":{"type":"SUBQUERY","alias":"SourceTable","sample":null,"query_location":80,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":17,"column_names":["DaysToManufacture"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"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":149,"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":153,"query_location_length":12,"column_names":["StandardCost"]}}]}],"unpivot_names":[],"pivots":[{"pivot_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":174,"query_location_length":17,"column_names":["DaysToManufacture"]}],"unpivot_names":[],"entries":[{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}],"star_expr":null,"alias":""},{"values":[{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}],"star_expr":null,"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":235,"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 row(1) IN (SELECT i FROM integers)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":17,"query_location_length":24,"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":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":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":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM integers s1 INNER JOIN integers s2 ON (SELECT 2*SUM(i)*s1.i FROM integers)=(SELECT SUM(i)*s2.i FROM integers) 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":133,"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":97,"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":52,"query_location_length":71,"left":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":52,"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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"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":["i"]}}]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":4,"column_names":["s1","i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"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"},"right":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":89,"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":97,"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":97,"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":101,"query_location_length":1,"column_names":["i"]}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":4,"column_names":["s2","i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":114,"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"}},"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 i, (SELECT COUNT(*) FROM (SELECT i1.i FROM integers GROUP BY GROUPING SETS(i1.i)) tbl) 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":125,"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":83,"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":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":32,"query_location_length":56,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":4,"column_names":["i1","i"]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":82,"query_location_length":4,"column_names":["i1","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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":104,"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+i1.i FROM integers) 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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":4,"column_names":["i1","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":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":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, i \u003e ANY(SELECT i FROM integers WHERE 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":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"]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":51,"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":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":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":49,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"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":10,"query_location_length":1,"column_names":["i"]},"comparison_type":"COMPARE_GREATERTHAN"}],"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 * FROM t2, t1, ( SELECT t2.c0 AS col_1, t1.c0 AS col_2) as subQuery0 INNER JOIN t0 ON ((subQuery0.col_2)) CROSS JOIN (SELECT t0.c0 AS col_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":9,"query_location_length":138,"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":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"right":{"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"]}},"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":"JOIN","alias":"","sample":null,"query_location":113,"query_location_length":34,"left":{"type":"JOIN","alias":"","sample":null,"query_location":76,"query_location_length":36,"left":{"type":"SUBQUERY","alias":"subQuery0","sample":null,"query_location":22,"query_location_length":40,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"col_1","query_location":31,"query_location_length":5,"column_names":["t2","c0"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"col_2","query_location":47,"query_location_length":5,"column_names":["t1","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":[]},"column_name_alias":[]},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"query_location_length":2,"schema_name":"","table_name":"t0","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t0"]}},"condition":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":15,"column_names":["subQuery0","col_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},"right":{"type":"SUBQUERY","alias":"","sample":null,"query_location":124,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"col_1","query_location":132,"query_location_length":5,"column_names":["t0","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":[]},"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},"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 l IN (SELECT i1.l FROM (SELECT * FROM lists i1 WHERE i1.l IS NOT DISTINCT FROM lists.l) i1 RIGHT JOIN generate_series(1, 2, 1) tbl(s) ON i1.l=ARRAY[tbl.s] OR (i1.l IS NULL AND tbl.s IS NULL)) 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":219,"query_location_length":1,"column_names":["l"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":12,"query_location_length":186,"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":98,"query_location_length":99,"left":{"type":"SUBQUERY","alias":"i1","sample":null,"query_location":30,"query_location_length":64,"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_NOT_DISTINCT_FROM","alias":"","query_location":60,"query_location_length":33,"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":86,"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":109,"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":125,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":["s"],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":144,"query_location_length":53,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":144,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":144,"query_location_length":4,"column_names":["i1","l"]},"right":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":149,"query_location_length":12,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":155,"query_location_length":5,"column_names":["tbl","s"]}]}},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":166,"query_location_length":30,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":171,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":166,"query_location_length":4,"column_names":["i1","l"]}]},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":189,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":183,"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":204,"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 EXISTS(SELECT i FROM integers WHERE i\u003eMIN(i1.i)) FROM integers i1;","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":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":43,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":49,"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":61,"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 t0.c2 FROM t0\nWHERE NOT EXISTS (\n SELECT 1 FROM (\n SELECT t0.c2 AS col0 FROM t0\n ) AS subQuery\n WHERE ((t0.c2) IS DISTINCT FROM (subQuery.col0))\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":5,"column_names":["t0","c2"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"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":27,"query_location_length":132,"children":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":31,"query_location_length":128,"subquery_type":"EXISTS","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"SUBQUERY","alias":"subQuery","sample":null,"query_location":56,"query_location_length":38,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"col0","query_location":69,"query_location_length":5,"column_names":["t0","c2"]}],"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":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":116,"query_location_length":40,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":117,"query_location_length":5,"column_names":["t0","c2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":142,"query_location_length":13,"column_names":["subQuery","col0"]}},"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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 *\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["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"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 ss1.d1 from\n tenk1 as t1\n inner join tenk1 as t2\n on t1.tenthous = t2.ten\n inner join\n int8_tbl as i8\n left join int4_tbl as i4\n inner join (select 64 as d1\n from tenk1 t3,\n lateral (select abs(t3.unique1) + random()) ss0(x)\n where t3.fivethous \u003c 0) as ss1\n on i4.f1 = ss1.d1\n on i8.q1 = i4.f1\n on t1.tenthous = ss1.d1\nwhere t1.unique1 \u003c i4.f1;","json":{"error":false,"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":["ss1","d1"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":86,"query_location_length":319,"left":{"type":"JOIN","alias":"","sample":null,"query_location":35,"query_location_length":48,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"right":{"type":"BASE_TABLE","alias":"t2","sample":null,"query_location":46,"query_location_length":11,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":63,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":11,"column_names":["t1","tenthous"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":6,"column_names":["t2","ten"]}},"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":120,"query_location_length":259,"left":{"type":"BASE_TABLE","alias":"i8","sample":null,"query_location":101,"query_location_length":14,"schema_name":"","table_name":"int8_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int8_tbl"]}},"right":{"type":"JOIN","alias":"","sample":null,"query_location":151,"query_location_length":207,"left":{"type":"BASE_TABLE","alias":"i4","sample":null,"query_location":130,"query_location_length":14,"schema_name":"","table_name":"int4_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int4_tbl"]}},"right":{"type":"SUBQUERY","alias":"ss1","sample":null,"query_location":162,"query_location_length":165,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d1","query_location":170,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":64}}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":197,"query_location_length":88,"left":{"type":"BASE_TABLE","alias":"t3","sample":null,"query_location":202,"query_location_length":8,"schema_name":"","table_name":"tenk1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tenk1"]}},"right":{"type":"SUBQUERY","alias":"ss0","sample":null,"query_location":243,"query_location_length":35,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":267,"query_location_length":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":true,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":251,"query_location_length":15,"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":255,"query_location_length":10,"column_names":["t3","unique1"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":269,"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":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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"]},"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":310,"query_location_length":16,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":310,"query_location_length":12,"column_names":["t3","fivethous"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":325,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_EQUAL","alias":"","query_location":344,"query_location_length":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":344,"query_location_length":5,"column_names":["i4","f1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":352,"query_location_length":6,"column_names":["ss1","d1"]}},"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":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":366,"query_location_length":13,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":366,"query_location_length":5,"column_names":["i8","q1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":374,"query_location_length":5,"column_names":["i4","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},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":385,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":385,"query_location_length":11,"column_names":["t1","tenthous"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":399,"query_location_length":6,"column_names":["ss1","d1"]}},"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":412,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":412,"query_location_length":10,"column_names":["t1","unique1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":425,"query_location_length":5,"column_names":["i4","f1"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select *, (select r from (select q1 as q2) x, lateral (select q2 as r) y) from int8_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":[]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":10,"query_location_length":63,"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":1,"column_names":["r"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":20,"query_location_length":52,"left":{"type":"SUBQUERY","alias":"x","sample":null,"query_location":25,"query_location_length":17,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"q2","query_location":33,"query_location_length":2,"column_names":["q1"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":"y","sample":null,"query_location":54,"query_location_length":16,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"r","query_location":62,"query_location_length":2,"column_names":["q2"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"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 x.* from\n int8_tbl x left join (select q1,coalesce(q2,0) q2 from int8_tbl) y on x.q2 = y.q1,\n lateral (select x.q1,y.q1,y.q2) v(xq1,yq1,yq2) 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":159,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":138,"left":{"type":"JOIN","alias":"","sample":null,"query_location":29,"query_location_length":70,"left":{"type":"BASE_TABLE","alias":"x","sample":null,"query_location":18,"query_location_length":10,"schema_name":"","table_name":"int8_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int8_tbl"]}},"right":{"type":"SUBQUERY","alias":"y","sample":null,"query_location":39,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":2,"column_names":["q1"]},{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"q2","query_location":50,"query_location_length":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":2,"column_names":["q2"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"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":[]},"column_name_alias":[]},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":88,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":4,"column_names":["x","q2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":4,"column_names":["y","q1"]}},"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":"v","sample":null,"query_location":111,"query_location_length":23,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":119,"query_location_length":4,"column_names":["x","q1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":4,"column_names":["y","q1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":4,"column_names":["y","q2"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":["xq1","yq1","yq2"]},"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 [42, 43, 44] union all select [45, NULL, 46]) t(a), (select unnest(t.a)) t2(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":"STAR","type":"STAR","alias":"","query_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":91,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":53,"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":"","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"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":53,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":45}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":46}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":74,"query_location_length":20,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"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":89,"query_location_length":3,"column_names":["t","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":[]},"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":[]}]}} +{"sql":"SELECT name, total FROM students JOIN LATERAL (SELECT SUM(grade) AS total FROM exams WHERE exams.sid=students.id) grades ON true ORDER BY total 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":138,"query_location_length":5,"column_names":["total"]}}]}],"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":["total"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":33,"query_location_length":95,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"query_location_length":8,"schema_name":"","table_name":"students","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["students"]}},"right":{"type":"SUBQUERY","alias":"grades","sample":null,"query_location":46,"query_location_length":67,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"total","query_location":54,"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":58,"query_location_length":5,"column_names":["grade"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":79,"query_location_length":5,"schema_name":"","table_name":"exams","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["exams"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":91,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"query_location_length":9,"column_names":["exams","sid"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":11,"column_names":["students","id"]}},"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":124,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 array(select * from unnest(['a', 'b']) as _t(u) order by if(u='a',100, 1)) as out;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"out","query_location":7,"query_location_length":74,"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}}]}]},"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":[]}}],"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}}]}}],"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":"CASE","type":"CASE_EXPR","alias":"","query_location":64,"query_location_length":16,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["u"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}}]}],"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":[]},{"class":"CASE","type":"CASE_EXPR","alias":"__array_internal_idx_1","query_location":64,"query_location_length":16,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":67,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":67,"query_location_length":1,"column_names":["u"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"_t","sample":null,"query_location":27,"query_location_length":27,"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":34,"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":35,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]}}]},"column_name_alias":["u"],"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":[]},"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 (SELECT l_linestat FROM orders) FROM lineitem","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":31,"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":10,"column_names":["l_linestat"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"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"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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 (x, y) IN (SELECT i, i + 1 FROM table2) from table1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":17,"query_location_length":29,"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":1,"column_names":["i"]},{"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":28,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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":[]},"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":"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":11,"query_location_length":1,"column_names":["y"]}}]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":6,"schema_name":"","table_name":"table1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table1"]}},"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 + 2 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"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=i FROM integers WHERE s2.i=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":104,"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":68,"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":42,"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":6,"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":1,"column_names":["i"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"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":87,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":87,"query_location_length":4,"column_names":["s2","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"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"},"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 IS NOT NULL EXCEPT SELECT i FROM integers WHERE i\u003c\u003ei1.i) AS j FROM integers i1 WHERE i 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":150,"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":88,"subquery_type":"SCALAR","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":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":"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":["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":68,"query_location_length":1,"column_names":["i"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"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":90,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"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":109,"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_IS_NOT_NULL","alias":"","query_location":129,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"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 i, (SELECT COUNT(*) FROM (SELECT i1.i FROM integers GROUP BY GROUPING SETS((i1.i), (), (i1.i), (i1.i, i1.i))) tbl) 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":153,"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":111,"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":[]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":32,"query_location_length":84,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":4,"column_names":["i1","i"]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":4,"column_names":["i1","i"]}],"group_sets":[[0],[],[0],[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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"i1","sample":null,"query_location":132,"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+i1.i FROM integers LIMIT 1) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":4,"column_names":["i1","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":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 i+i1.i FROM integers WHERE i=1) 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":81,"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":39,"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":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":["i"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["i1","i"]}}]}],"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_EQUAL","alias":"","query_location":45,"query_location_length":3,"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":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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 i, (WITH i2 AS (SELECT 42+i1.i AS j FROM integers) 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":107,"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":65,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":4,"column_names":["i1","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":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":65,"query_location_length":1,"column_names":["j"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"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":86,"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 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":110,"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":68,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}],"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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"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":68,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":75,"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":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 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":[]}],"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) IN (SELECT ColID + (col1 + 1) FROM tbl_ProductSales) FROM another_T GROUP BY (col1 + 1);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":21,"query_location_length":49,"subquery_type":"ANY","subquery":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["ColID"]}},{"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":38,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"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":"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":8,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":76,"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":"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":96,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (SELECT SUM(col2) OVER (PARTITION BY SUM(col2) ORDER BY MAX(col1 + ColID) ROWS UNBOUNDED PRECEDING) FROM tbl_ProductSales) FROM another_T t1 GROUP BY col1","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":122,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":15,"query_location_length":91,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"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":48,"query_location_length":4,"column_names":["col2"]}}]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"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":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":67,"query_location_length":4,"column_names":["col1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":74,"query_location_length":5,"column_names":["ColID"]}}]}}]}}],"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":19,"query_location_length":4,"column_names":["col2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":112,"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":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":135,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":157,"query_location_length":4,"column_names":["col1"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT a, SUM(a), (SELECT SUM(a)+SUM(t1.b) FROM test) FROM test t1 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":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":"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":["a"]}}]},{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":18,"query_location_length":35,"subquery_type":"SCALAR","subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":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":["a"]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":37,"query_location_length":4,"column_names":["t1","b"]}}]}}]}],"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":[]},"child":null,"comparison_type":"INVALID"}],"from_table":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":59,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":26,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]]},"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 or v IS NULL) 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":91,"query_location_length":1,"column_names":["v"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":16,"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":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":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":45,"query_location_length":19,"children":[{"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"]}},{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":57,"query_location_length":7,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"bla"}},"comparison_type":"COMPARE_EQUAL"}],"from_table":{"type":"BASE_TABLE","alias":"s1","sample":null,"query_location":71,"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 * from (select i as j from a group by i) 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":["i"]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM (FROM (SELECT 42 a), (SELECT 43 b)) JOIN (SELECT 44 c) ON (true) JOIN (SELECT 45 d) 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":79,"query_location_length":28,"left":{"type":"JOIN","alias":"","sample":null,"query_location":50,"query_location_length":28,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":14,"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":"JOIN","alias":"","sample":null,"query_location":15,"query_location_length":33,"left":{"type":"SUBQUERY","alias":"","sample":null,"query_location":20,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":28,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":35,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":43,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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},"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":55,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":63,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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":"SUBQUERY","alias":"","sample":null,"query_location":84,"query_location_length":13,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":92,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":102,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 * FROM create_external_resource('nostatus@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":42,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nostatus@local"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT deleter_function LIKE '%.q.qd_destroy' FROM create_external_resource('qd@local');","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":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":7,"query_location_length":16,"column_names":["deleter_function"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"%.q.qd_destroy"}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":51,"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":76,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"qd@local"}}}]},"column_name_alias":[],"with_ordinality":"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":"BASE_TABLE","alias":"","sample":null,"query_location":14,"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 constraint_name, unique_constraint_name FROM information_schema.referential_constraints;","json":{"error":false,"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_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":22,"column_names":["unique_constraint_name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"query_location_length":42,"schema_name":"information_schema","table_name":"referential_constraints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","referential_constraints"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT current_setting('current_dialect');","json":{"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":"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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"current_dialect"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 duckdb_optimizers() WHERE name='join_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"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":17,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"duckdb_optimizers","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"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":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"join_order"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM duckdb_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":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"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_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":[]}],"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":[]},"column_name_alias":[],"with_ordinality":"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, outcome\nFROM duckdb_logs_parsed('ExternalResource') WHERE resource_type = 'scalarcreate@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":9,"column_names":["operation"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":7,"column_names":["outcome"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"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":50,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ExternalResource"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"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":13,"column_names":["resource_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"scalarcreate@local"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT kind, destroy_function FROM duckdb_external_resource_types() WHERE name = 'scratch_bucket';","json":{"error":false,"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":["kind"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":13,"query_location_length":16,"column_names":["destroy_function"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":35,"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":[]},"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":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"scratch_bucket"}}},"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 '0 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":108,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 00:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-12-31 12:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0 MONTH"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":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 ordinal_position, column_name, data_type FROM information_schema.columns WHERE table_name='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":16,"column_names":["ordinal_position"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":25,"query_location_length":11,"column_names":["column_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":9,"column_names":["data_type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"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":86,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integers"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT table_schema, table_name, constraint_schema, constraint_name\nFROM information_schema.constraint_table_usage\nWHERE table_schema = 'scheme' AND table_name = 'emp'\nORDER BY constraint_name 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":177,"query_location_length":15,"column_names":["constraint_name"]}}]}],"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":17,"column_names":["constraint_schema"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":15,"column_names":["constraint_name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"query_location_length":41,"schema_name":"information_schema","table_name":"constraint_table_usage","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","constraint_table_usage"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":121,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":121,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":12,"column_names":["table_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"scheme"}}},{"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":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"emp"}}}]},"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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]) 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":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":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":"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":"t","sample":null,"query_location":61,"query_location_length":19,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]},"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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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 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":1,"column_names":["g"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"g","sample":null,"query_location":14,"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":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"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(3) t(i), range(i) t2(j) 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":53,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"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":34,"left":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"column_name_alias":["i"],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":29,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":1,"column_names":["i"]}}]},"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 * FROM (SELECT TIMESTAMPTZ '2000-01-01', TIMESTAMPTZ '2000-10-1', NULL) 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":137,"query_location_length":1,"column_names":["s"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":140,"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":118,"left":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"query_location_length":64,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-10-1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":[]},"column_name_alias":["s","e","increment"]},"right":{"type":"TABLE_FUNCTION","alias":"t2","sample":null,"query_location":99,"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":105,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":108,"query_location_length":1,"column_names":["e"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":111,"query_location_length":9,"column_names":["increment"]}}]},"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 d FROM generate_series(TIMESTAMP '1992-01-01 00:00:00', TIMESTAMP '1991-06-01 00:00:00', -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":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":30,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1991-06-01 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"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":97,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 MONTH"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":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'::TIMESTAMP, '290309-12-22 (BC) 00:00:00'::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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":21,"query_location_length":98,"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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":89,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC) 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":91,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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_text('test/sql/table_function/files/nonexistentfile.txt') 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":"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_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":24,"query_location_length":51,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test/sql/table_function/files/nonexistentfile.txt"}}}]},"column_name_alias":[],"with_ordinality":"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, uri, attached_db_type, handle FROM duckdb_external_resources() WHERE name = 'r2';","json":{"error":false,"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":3,"column_names":["uri"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":16,"column_names":["attached_db_type"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":6,"column_names":["handle"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":48,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"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":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"r2"}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"BIGINT"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT EXISTS(SELECT * FROM range(10))","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":31,"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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"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":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"column_name_alias":[],"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 * from generate_series(-9223372036854775807, -9223372036854775808, -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":63,"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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775807}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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":[]}]}} -{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"integers"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '2021-01-01'::timestamptz - interval '380 days'","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":19,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"380 days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('month', '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":58,"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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"month"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, era(ts), year(ts), month(ts), day(ts), dayofyear(ts) FROM (VALUES\n ('2024-06-15 12:00:00+00'::TIMESTAMPTZ), ('1970-01-01 00:00:00+00'), ('1900-01-01 12:00:00+00'),\n ('1896-06-15 12:00:00+00'), ('1897-06-15 12:00:00+00'), ('1898-06-15 12:00:00+00'),\n ('1911-06-15 12:00:00+00'), ('1912-06-15 12:00:00+00'), ('0001-01-01 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":7,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"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":25,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":36,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"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":45,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":60,"query_location_length":2,"column_names":["ts"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":69,"query_location_length":278,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":104,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01 00:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-01 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1896-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":207,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1897-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1898-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":265,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1911-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":293,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1912-06-15 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":321,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0001-01-01 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 date_trunc('decade', '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":59,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"decade"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(5784, 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5784}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UTC"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1445}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UTC"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(hash(ts::VARCHAR)) FROM generate_series('1880-01-01 12:00:00+00'::TIMESTAMPTZ, '2180-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":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":11,"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":18,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":2,"column_names":["ts"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":35,"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":75,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1880-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":114,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2180-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":116,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":129,"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":138,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":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 '2019-04-30 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-04-30 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('2024-03-15 12:00:00+00'::TIMESTAMPTZ, '2024-03-25 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-25 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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', '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00-04"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('isoyear', '2024-01-01 12:00:00-05'::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":60,"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":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"isoyear"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-01 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_MS 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":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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('1900-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-01 00:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483648}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2001-02-16 20:38:40"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::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":23,"query_location_length":13,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_localtime();","json":{"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_localtime","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select utc_offset, is_dst\nfrom pg_timezone_names() \nwhere name = 'America/Asuncion'","json":{"error":false,"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":["utc_offset"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":6,"column_names":["is_dst"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"query_location_length":19,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"pg_timezone_names","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":58,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"America/Asuncion"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ts, ts::TIMESTAMPTZ, date_part('timezone', ts::TIMESTAMPTZ) FROM (VALUES\n ('2024-01-15 12:00:00'::TIMESTAMP), ('2024-07-15 12:00:00'),\n ('1970-01-15 12:00:00'), ('1970-07-15 12: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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":13,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":2,"column_names":["ts"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"timezone"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":13,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":2,"column_names":["ts"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":72,"query_location_length":122,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":104,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-15 12:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-07-15 12:00:00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-15 12:00:00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":171,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-07-15 12: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 age('2025-03-09 12:00:00-05'::TIMESTAMPTZ, '2024-03-09 12:00:00-05'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2025-03-09 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-09 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('2024-03-09 12:00:00-05'::TIMESTAMPTZ, '2024-03-12 12:00:00-04'::TIMESTAMPTZ, INTERVAL 1 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-09 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-12 12:00:00-04"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT timezone('Asia/Kathmandu', '12:00:00+00'::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":49,"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":16,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Asia/Kathmandu"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 transitions('Asia/Kolkata');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"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":"transitions","schema":"","filter":null,"order_bys":{"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":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Asia/Kolkata"}}}]},"column_name_alias":[],"with_ordinality":"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":[]},"column_name_alias":[],"with_ordinality":"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 t1 LIMIT 1","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"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 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":[]}],"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 COUNT(DISTINCT 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":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":["h"]}}]}],"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 trigger_name, sql FROM duckdb_triggers() WHERE trigger_name = 'update_body_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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":54,"query_location_length":36,"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":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"update_body_trigger"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT trigger_name, table_name FROM duckdb_triggers() WHERE trigger_name = '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":12,"column_names":["trigger_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["table_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":26,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":12,"column_names":["trigger_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"same_name"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id, val 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":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":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 val FROM t_upsert 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":3,"column_names":["val"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"query_location_length":8,"schema_name":"","table_name":"t_upsert","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_upsert"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT id FROM t_cte_scope_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"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":15,"schema_name":"","table_name":"t_cte_scope_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_cte_scope_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_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":[]}],"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":[]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"triggerdb"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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},"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":[]}],"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":[]}],"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":[]}],"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":[]}],"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":"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);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":5,"schema_name":"","table_name":"audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["audit"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":33,"query_location_length":76,"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":5,"column_names":["old_v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":48,"query_location_length":60,"children":[{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":48,"query_location_length":28,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":57,"query_location_length":8,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":5,"column_names":["new_v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":70,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":80,"query_location_length":28,"children":[{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":89,"query_location_length":8,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":5,"column_names":["new_v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":40}}]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":102,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":102,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from person where current_alias = last_year_alias","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":27,"query_location_length":31,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":13,"column_names":["current_alias"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":15,"column_names":["last_year_alias"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9223372036854775807"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5' AS BIGNUM), CAST('-0.5' AS BIGNUM), CAST('.5' AS BIGNUM), CAST('-.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-0.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":21,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::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":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":13,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":9223372036854775808}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":43,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":18446744073709551615}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 offset 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"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":19,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":33,"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":48,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":16,"column_names":["use_large_bignum"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}}]},"column_name_alias":[],"with_ordinality":"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('hello' 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":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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","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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::bignum","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483647}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '-21474836460000000000958'::bignum;","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":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-21474836460000000000958"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.4999'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-0010.4999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.9'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-0010.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\t'0'::BIT \u003c '10101010'::BIT,\n\t'0'::BIT \u003e '10101010'::BIT,\n\t'0'::BIT \u003c= '10101010'::BIT,\n\t'0'::BIT \u003e= '10101010'::BIT,\n\t'0'::BIT \u003c '00'::BIT,\n\t'00'::BIT \u003e '0'::BIT,\n\t'01'::BIT \u003c '1'::BIT,\n\t'1'::BIT \u003e '01'::BIT;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":8,"query_location_length":26,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":37,"query_location_length":26,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":66,"query_location_length":27,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":96,"query_location_length":27,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":99,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":118,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":120,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":126,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":129,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":141,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":137,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":143,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":149,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":153,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":155,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":164,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":166,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":172,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":176,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":172,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":178,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":187,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":189,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":195,"query_location_length":20,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":198,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":200,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":210,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":206,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":212,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::BIT as TINYINT);","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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":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 try_cast('00001111'::BIT as TINYINT);","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00001111"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":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 ('0101011'::BIT)","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":8,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0101011"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":7,"query_location_length":20,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":3,"column_names":["col"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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 '0110'::BIT | '11000'::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":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":13,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0110"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"11000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \u003c\u003c 3 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":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":"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"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 get_bit('101010101010101010'::BIT, 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":37,"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":35,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"101010101010101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 set_bit('011'::BIT, -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":26,"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":20,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"011"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 bitstring('x1'::BIT, 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 '\\x20\\x00\\xFF'::BLOB::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x20\\x00\\xFF"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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('ü' 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":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ü"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":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 '5877642-06-25 (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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5877642-06-25 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 (1) 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-11'::date","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":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5881580-07-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 (365) day","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":18,"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":40,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":365}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-02-29'::DATE::VARCHAR == '1992-02-29'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-02-29"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-02-29"}}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\\09\\20'::DATE::VARCHAR == '1992-09-20'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992\\09\\20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-09-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 '1993-03-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1993-03-31"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-09-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1993-09-30"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-03-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-31"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-09-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-09-30"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-01-01'::DATE::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":9,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '291000-01-01'::DATE::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"291000-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('' 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":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2004-02-29"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 try_cast('infinity' 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":28,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 d, d::VARCHAR FROM bc_dates 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["d"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["d"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":8,"schema_name":"","table_name":"bc_dates","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["bc_dates"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '1992-01'::DATE","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 32768::DECIMAL(18,0)::SMALLINT","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":10,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":32768}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(18,3), 100::INTEGER::DECIMAL(3,0), (-100)::INTEGER::DECIMAL(3,0), 0::INTEGER::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::BIGINT::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":18,"query_location_length":14,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::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":17,"query_location_length":14,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.25::FLOAT::DECIMAL(3,2)","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":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":11,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":125}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::FLOAT::DECIMAL(4,0)","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":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":38,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":922337203685477580,"lower":14757395258967641292}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(37,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":15,"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":922337203685477580,"lower":14757395258967641292}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 * '10.0'::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":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.33, 10.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":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":133}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":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":[]}]}} -{"sql":"SELECT typeof(decimal_average(v)) FROM int16_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"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":9,"schema_name":"","table_name":"int16_dec","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["int16_dec"]}},"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(38,37)::DECIMAL(2,1), 1.0::DECIMAL(38,37)::DECIMAL(9,1), 1.0::DECIMAL(38,37)::DECIMAL(18,1), 1.0::DECIMAL(38,37)::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":26,"query_location_length":14,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":61,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":132,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":116,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":118,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":134,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(18,1)::DECIMAL(2,1), 1.0::DECIMAL(18,1)::DECIMAL(8,1), 1.0::DECIMAL(18,1)::DECIMAL(17,1), 1.0::DECIMAL(18,1)::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":25,"query_location_length":14,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":17}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":128,"query_location_length":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":113,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":115,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":130,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(12.34::DECIMAL(4,2), 3.5::DECIMAL(4,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":"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":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":36,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":2}},"is_null":false,"value":1234}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":35}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), 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":59,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":2}},"is_null":false,"value":1234}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":35}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 cast(9.5 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":25,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":95}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(4,0)","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":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1E3"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-9999999999'::DECIMAL","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1e-9999999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":15,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-5e-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-8'::DECIMAL(18,6)","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5.5e-8"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 5000000000000000000000000000000000000.0::DECIMAL(38,1) * 2::DECIMAL(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":72,"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":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":39,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":38,"scale":1}},"is_null":false,"value":{"upper":2710505431213761085,"lower":343699775700336640}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_left + add_right FROM decimal_stats_overflow","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":0,"function_name":"+","schema":"","filter":null,"order_bys":{"type":"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":8,"column_names":["add_left"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":9,"column_names":["add_right"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":22,"schema_name":"","table_name":"decimal_stats_overflow","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimal_stats_overflow"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(100 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":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":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 TRY_CAST(1000000 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":33,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":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 TRY_CAST('10000000000'::DOUBLE 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":48,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":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 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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":421}}}]},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":9,"scale":1}},"is_null":false,"value":-102398141}}}]},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":15,"scale":5}},"is_null":false,"value":104918515712345}}}]},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":23,"scale":5}},"is_null":false,"value":{"upper":555,"lower":1886451436380265465}}}}]},{"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,"value":{"type":{"id":"DOUBLE","type_info":null},"is_null":false,"value":-4.923840923840392e28}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":26,"query_location_length":9,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1234567890.1235 AS DECIMAL (13, 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":40,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":15,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":14,"scale":4}},"is_null":false,"value":12345678901235}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":15,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 decimals inner join decimals2 on (decimals.i = decimals2.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":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":30,"query_location_length":50,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"decimals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimals"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":41,"query_location_length":9,"schema_name":"","table_name":"decimals2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimals2"]}},"condition":{"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":10,"column_names":["decimals","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":11,"column_names":["decimals2","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 decimals WHERE d='0.1'::DECIMAL(3,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":"decimals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimals"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":29,"query_location_length":21,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},"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":28,"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":20,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":33,"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":55,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-99999999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"query_location_length":43,"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":99,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-99999999999999999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"query_location_length":63,"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":164,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-9999999999999999999999999999999999999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":166,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('1049578239572094512.32415'::DECIMAL(30,10), 0)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -1)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -2)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -3)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -4)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -5)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -6)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -7)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -8)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -9)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -10)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -11)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -12)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -13)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -14)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -15)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -16)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -18)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -19)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -20)::VARCHAR,\n\t ROUND('1049578239572094512.32415'::DECIMAL(30,10), -19842)::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":53,"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":40,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":129,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"query_location_length":54,"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":108,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":110,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":131,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":198,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":144,"query_location_length":54,"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":177,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":150,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":179,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":187,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":195,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":200,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":267,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":213,"query_location_length":54,"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":246,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":219,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":248,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":264,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-3}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":269,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":336,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":282,"query_location_length":54,"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":315,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":288,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":317,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":325,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":328,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":333,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-4}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":338,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":405,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":351,"query_location_length":54,"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":384,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":357,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":386,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":394,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":397,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":402,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-5}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":407,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":474,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":420,"query_location_length":54,"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":453,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":426,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":455,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":463,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":466,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":471,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-6}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":476,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":543,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":489,"query_location_length":54,"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":522,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":495,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":524,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":532,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":535,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":540,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-7}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":545,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":612,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":558,"query_location_length":54,"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":591,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":564,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":593,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":601,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":604,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":609,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-8}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":614,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":681,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":627,"query_location_length":54,"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":660,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":633,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":662,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":670,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":673,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":678,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-9}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":683,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":751,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":696,"query_location_length":55,"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":729,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":702,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":731,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":739,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":742,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":747,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-10}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":753,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":821,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":766,"query_location_length":55,"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":799,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":772,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":801,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":809,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":812,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":817,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-11}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":823,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":891,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":836,"query_location_length":55,"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":869,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":842,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":871,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":879,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":882,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":887,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-12}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":893,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":961,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":906,"query_location_length":55,"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":939,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":912,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":941,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":949,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":952,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":957,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-13}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":963,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1031,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":976,"query_location_length":55,"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":1009,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":982,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1011,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1019,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1022,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1027,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-14}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1033,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1101,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1046,"query_location_length":55,"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":1079,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1052,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1081,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1089,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1092,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1097,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-15}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1103,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1171,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1116,"query_location_length":55,"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":1149,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1122,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1151,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1159,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1162,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1167,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-16}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1173,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1241,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1186,"query_location_length":55,"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":1219,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1192,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1221,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1229,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1232,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1237,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-18}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1243,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1311,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1256,"query_location_length":55,"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":1289,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1262,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1291,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1299,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1302,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1307,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-19}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1313,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1381,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1326,"query_location_length":55,"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":1359,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1332,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1361,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1369,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1372,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1377,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-20}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1383,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1454,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":1396,"query_location_length":58,"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":1429,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1402,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1049578239572094512.32415"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1431,"query_location_length":14,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1439,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":30}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1442,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1447,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-19842}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1456,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), 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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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.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":21,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1.234499999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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='' FROM m","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":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"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},"named_param_map":[]}]}} -{"sql":"select ['happy','ok','ok']::mood[]","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":"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":8,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"happy"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ok"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ok"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":28,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(NULL::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":22,"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":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, robots.name from person inner join robots on (person.current_mood = robots.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":11,"column_names":["robots","name"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":44,"query_location_length":64,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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":55,"query_location_length":6,"schema_name":"","table_name":"robots","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["robots"]}},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":66,"query_location_length":41,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":19,"column_names":["person","current_mood"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":19,"column_names":["robots","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 person_pet_den WHERE (person_mood == pet_mood) IS 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":14,"schema_name":"","table_name":"person_pet_den","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["person_pet_den"]}},"where_clause":{"class":"OPERATOR","type":"OPERATOR_IS_NULL","alias":"","query_location":61,"query_location_length":7,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":36,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":11,"column_names":["person_mood"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":51,"query_location_length":8,"column_names":["pet_mood"]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"FROM person","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":"","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 TRY_CAST ('ok' as mood)","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":17,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ok"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":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 a from t1, t2 where t1.a = t2.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"]}],"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","b"]}},"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_tz = 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":[]}],"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_tz"]},"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, SUM(i) FROM floats GROUP BY f ORDER BY f;","json":{"error":false,"statements":[{"node":{"type":"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":["f"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["f"]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["f"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT f FROM floats ORDER BY f","json":{"error":false,"statements":[{"node":{"type":"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":1,"column_names":["f"]}}]}],"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, SUM(i) OVER (PARTITION BY f) FROM floats ORDER BY f","json":{"error":false,"statements":[{"node":{"type":"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":["f"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["f"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":28,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":1,"column_names":["f"]}],"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":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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 'GEOMETRYCOLLECTION Z (POINT Z (1 1 2), LINESTRING (0 0, 1 1))'::GEOMETRY;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":63,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"GEOMETRYCOLLECTION Z (POINT Z (1 1 2), LINESTRING (0 0, 1 1))"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 'MULTIPOLYGON(((0 0, 4 0, 4 4, 0 4, 0 0)), EMPTY, ((5 5, 7 5, 7 7, 5 7, 5 5)))'::GEOMETRY::VARCHAR;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":86,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":79,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MULTIPOLYGON(((0 0, 4 0, 4 4, 0 4, 0 0)), EMPTY, ((5 5, 7 5, 7 7, 5 7, 5 5)))"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(4326);","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(0 1)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":14,"catalog":"","schema":"","type_name":"GEOMETRY","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4326}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 be_lines_wkb 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":12,"schema_name":"","table_name":"be_lines_wkb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["be_lines_wkb"]}},"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+1 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":111,"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":69,"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":"","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":30,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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_EQUAL","alias":"","query_location":54,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"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":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":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":90,"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(i) 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","schema":"","filter":null,"order_bys":{"type":"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v","query_location":182,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":[]},"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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"]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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 (VALUES (42, 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":"SUBQUERY","alias":"","sample":null,"query_location":14,"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":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}]]},"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 create_external_resource('badattach@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":43,"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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"badattach@local"}}}]},"column_name_alias":[],"with_ordinality":"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 FROM create_external_resource('compute@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":6,"column_names":["result"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":19,"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":44,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"compute@local"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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 = 'query.cpu_time';","json":{"error":false,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":89,"query_location_length":30,"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":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"query.cpu_time"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * EXCLUDE (database_name, schema_oid, table_oid, database_oid, constraint_name) 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":79,"relation_name":"","exclude_list":["database_name","schema_oid","constraint_name","table_oid","database_oid"],"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":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":[]},"column_name_alias":[],"with_ordinality":"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_dependencies();","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"duckdb_dependencies","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"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 from duckdb_memory() where tag = '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"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":31,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":53,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":3,"column_names":["tag"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"IN_MEMORY_TABLE"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n typeof(value),\n typeof(typed_value),\n variant_typeof(typed_value)\nFROM duckdb_settings()\nWHERE name = 'standard_vector_size';","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":"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":18,"query_location_length":5,"column_names":["value"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":11,"column_names":["typed_value"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"query_location_length":27,"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":70,"query_location_length":11,"column_names":["typed_value"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":88,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":112,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":4,"column_names":["name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"standard_vector_size"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT database_name = current_database() OR database_name = 'temp'\nFROM duckdb_views ORDER BY view_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":95,"query_location_length":9,"column_names":["view_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":7,"query_location_length":60,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":7,"query_location_length":34,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":[]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":22,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":13,"column_names":["database_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"temp"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT extra_info['state']\nFROM duckdb_logs_parsed('ExternalResource') WHERE resource_type = 'mock@local' AND operation = 'status';","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":9,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":10,"column_names":["extra_info"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"state"}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":32,"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":51,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ExternalResource"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":77,"query_location_length":53,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":77,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":13,"column_names":["resource_type"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"mock@local"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":110,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":110,"query_location_length":9,"column_names":["operation"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":122,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"status"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT name, kind, create_function, status_function, destroy_function, resolve_function, origin FROM duckdb_external_resource_types();","json":{"error":false,"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":["kind"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":15,"column_names":["create_function"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":15,"column_names":["status_function"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":16,"column_names":["destroy_function"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":16,"column_names":["resolve_function"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":6,"column_names":["origin"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":101,"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":[]},"column_name_alias":[],"with_ordinality":"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(TIMESTAMPTZ '1992-01-01 00:00:00-08', TIMESTAMPTZ '2020-01-01 00:00:00-08', 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":[]}],"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":"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":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 00:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01 00:00:00-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":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 information_schema.schemata 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":27,"schema_name":"information_schema","table_name":"schemata","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","schemata"]}},"where_clause":{"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":11,"column_names":["schema_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"scheme"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT DISTINCT(table_catalog) = current_database()\nFROM information_schema.constraint_column_usage\nWHERE table_schema = 'scheme' AND table_name = 'emp'\nORDER BY column_name ASC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]},{"type":"ORDER_MODIFIER","orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":11,"column_names":["column_name"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":15,"query_location_length":36,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":13,"column_names":["table_catalog"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":[]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":57,"query_location_length":42,"schema_name":"information_schema","table_name":"constraint_column_usage","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","constraint_column_usage"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":106,"query_location_length":46,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":106,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":12,"column_names":["table_schema"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"scheme"}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":134,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":134,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"emp"}}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT constraint_name, constraint_type FROM information_schema.table_constraints 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":15,"column_names":["constraint_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":15,"column_names":["constraint_type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":45,"query_location_length":36,"schema_name":"information_schema","table_name":"table_constraints","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["information_schema","table_constraints"]}},"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([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":1,"column_names":["i"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"i","sample":null,"query_location":14,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select lst.id, x.unnest from lists lst, unnest(lst.l) as x 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":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["lst","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":8,"column_names":["x","unnest"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":24,"query_location_length":34,"left":{"type":"BASE_TABLE","alias":"lst","sample":null,"query_location":29,"query_location_length":9,"schema_name":"","table_name":"lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lists"]}},"right":{"type":"TABLE_FUNCTION","alias":"x","sample":null,"query_location":40,"query_location_length":18,"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":47,"query_location_length":5,"column_names":["lst","l"]}}]},"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":[]},"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"]}}]},"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 00:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01 00:00:01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":76,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]},"column_name_alias":[],"with_ordinality":"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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test/sql/table_function/files/*.txt"}}}]},"column_name_alias":[],"with_ordinality":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"s3://does-not-exist1144/date=2025-10-11/file.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 \"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"v1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM range(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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"column_name_alias":[],"with_ordinality":"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(0, -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":62,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775807}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775807}}}]},"column_name_alias":[],"with_ordinality":"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', 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":29,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"30 days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select age('2020-01-01'::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":30,"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":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1, 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":43,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UTC"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":[]},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2100-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":126,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":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 '2024-06-15 12:00:00+00'::TIMESTAMPTZ + INTERVAL 1 YEAR","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT y, count(*) FROM (SELECT year(ts) y FROM generate_series('2015-01-01 12:00:00+00'::TIMESTAMPTZ, '2035-01-01 12:00:00+00'::TIMESTAMPTZ, INTERVAL 1 DAY) t(ts) GROUP BY ALL) GROUP BY ALL 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":["y"]},{"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":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":24,"query_location_length":153,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":32,"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":37,"query_location_length":2,"column_names":["ts"]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":48,"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":88,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2015-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":127,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2035-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":129,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":142,"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":151,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]},"column_name_alias":["ts"],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"FORCE_AGGREGATES","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 ts, year(ts), month(ts), day(ts), era(ts), dayofyear(ts) FROM (VALUES\n ('2024-06-15 12:00:00+00'::TIMESTAMPTZ), ('0622-07-19 12:00:00+00'), ('0622-07-18 12:00:00+00'),\n ('1970-01-01 00:00:00+00'), ('2024-07-07 12:00:00+00'), ('2024-07-08 12:00:00+00'),\n ('1882-11-12 12:00:00+00'), ('2100-01-01 12:00:00+00'), ('1000-01-01 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"]}}]},{"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"]}}]},{"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":41,"query_location_length":7,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":60,"query_location_length":2,"column_names":["ts"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":69,"query_location_length":278,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":104,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0622-07-19 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0622-07-18 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01 00:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":207,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-07-07 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-07-08 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":265,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1882-11-12 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":293,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2100-01-01 12:00:00+00"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":321,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1000-01-01 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 make_timestamptz(1299, 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1299}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UTC"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('era', '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":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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"era"}}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-06-15 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-03-20 12: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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-20 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 1 YEAR","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-15 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), week(ts), isoyear(ts), dayofweek(ts) FROM (VALUES\n ('2024-01-01 12:00:00-05'::TIMESTAMPTZ), ('2023-01-01 12:00:00-05'), ('2021-01-01 12:00:00-05'),\n ('2020-12-31 12:00:00-05'), ('2019-12-30 12:00:00-05'), ('2016-01-03 12:00:00-05'),\n ('2016-01-04 12:00:00-05'), ('1000-06-15 12:00:00-04:56')) 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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":26,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":39,"query_location_length":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":44,"query_location_length":13,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":2,"column_names":["ts"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":63,"query_location_length":253,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":98,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-01 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":100,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-01-01 12:00:00-05"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-01-01 12:00:00-05"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 12:00:00-05"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":201,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019-12-30 12:00:00-05"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2016-01-03 12:00:00-05"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2016-01-04 12:00:00-05"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":287,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1000-06-15 12:00:00-04:56"}}]]},"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 t::TIMESTAMPTZ_NS from tsns;","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":16,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["t"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":14,"catalog":"","schema":"","type_name":"TIMESTAMPTZ_NS","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":4,"schema_name":"","table_name":"tsns","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tsns"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2000-01-01 00:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483648}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":[]},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2100-01-01 12:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":126,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":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 timezone('America/Phoenix', '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":57,"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":16,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"America/Phoenix"}}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":55,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:15:37.123456-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":57,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select localtime;","json":{"error":false,"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":["localtime"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '1981-09-27 01: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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1981-09-27 01:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '2011-12-29 23:59:59+13'::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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2011-12-29 23:59:59+13"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, ts + INTERVAL 1 MONTH, ts + INTERVAL 1 YEAR FROM (VALUES\n ('2024-01-31 12:00:00-05'::TIMESTAMPTZ), ('2024-02-29 12:00:00-05'),\n ('2023-03-31 12:00:00-04'), ('2024-05-31 12:00:00-04')) 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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"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":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]},{"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":34,"query_location_length":2,"column_names":["ts"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":60,"query_location_length":136,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-01-31 12:00:00-05"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-02-29 12:00:00-05"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-03-31 12:00:00-04"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-05-31 12:00:00-04"}}]]},"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 make_timestamptz(-4713, 11, 24, 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":50,"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":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-4713}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":24}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UTC"}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-03-10 03:30:00-04'::TIMESTAMPTZ::TIMETZ","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":8,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-03-10 03:30:00-04"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMPTZ","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(*),\n count(*) FILTER (WHERE dayname(day) \u003c\u003e 'Sunday'),\n count(DISTINCT month(day))\nFROM transitions('Australia/Sydney');","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":48,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":47,"query_location_length":24,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"query_location_length":12,"function_name":"dayname","schema":"","filter":null,"order_bys":{"type":"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":3,"column_names":["day"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Sunday"}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":81,"query_location_length":26,"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":96,"query_location_length":10,"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":102,"query_location_length":3,"column_names":["day"]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":113,"query_location_length":31,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"transitions","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":18,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Australia/Sydney"}}}]},"column_name_alias":[],"with_ordinality":"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(step), max(step), count(*) FILTER (WHERE step \u003c\u003e 3600)\nFROM (SELECT epoch(local - lag(local) OVER (PARTITION BY name, id ORDER BY ts)) AS step FROM converted)\nWHERE step 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":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":21,"query_location_length":4,"column_names":["step"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":32,"query_location_length":4,"column_names":["step"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":36,"function_name":"count_star","schema":"","filter":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":62,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":62,"query_location_length":4,"column_names":["step"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3600}}},"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":81,"query_location_length":98,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"step","query_location":89,"query_location_length":66,"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":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":95,"query_location_length":5,"column_names":["local"]}},{"name":"","expression":{"class":"WINDOW","type":"WINDOW_LAG","alias":"","query_location":103,"query_location_length":51,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":4,"column_names":["name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":2,"column_names":["id"]}],"orders":[{"type":"ORDER_DEFAULT","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":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":107,"query_location_length":5,"column_names":["local"]}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":169,"query_location_length":9,"schema_name":"","table_name":"converted","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["converted"]}},"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":191,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":186,"query_location_length":4,"column_names":["step"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT l FROM tbl ORDER BY l DESC NULLS FIRST LIMIT 5","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["l"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":["l"]}],"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 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":32,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 s FROM db.strings ORDER BY s NULLS FIRST LIMIT 1","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":34,"query_location_length":1,"column_names":["s"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":10,"schema_name":"db","table_name":"strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","strings"]}},"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.scattered_nulls_VARCHAR ORDER BY v NULLS FIRST LIMIT 1 OFFSET 4096","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4096}},"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":"scattered_nulls_VARCHAR","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["db","scattered_nulls_VARCHAR"]}},"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, i NULLS FIRST LIMIT 5;","json":{"error":false,"statements":[{"node":{"type":"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":["j"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["i"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM final\nORDER BY channel NULLS FIRST,\n i_brand_id NULLS FIRST,\n i_class_id NULLS FIRST,\n i_category_id NULLS FIRST\nLIMIT 100;","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":29,"query_location_length":7,"column_names":["channel"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":59,"query_location_length":10,"column_names":["i_brand_id"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":10,"column_names":["i_class_id"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":125,"query_location_length":13,"column_names":["i_category_id"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 used_blocks \u003e 1 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":15,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":11,"column_names":["used_blocks"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":28,"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":[]},"column_name_alias":[],"with_ordinality":"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 original_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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"original_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["original_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 t_drop","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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":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 = 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":["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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM nonexistanttable","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"nonexistanttable","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nonexistanttable"]}},"where_clause":null,"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 = 'upd_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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":58,"query_location_length":32,"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":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"upd_col_trigger"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT trigger_name, table_name FROM duckdb_triggers() WHERE table_name = '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":12,"column_names":["trigger_name"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":10,"column_names":["table_name"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":37,"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":[]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":61,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t1"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT n FROM t_counter;","json":{"error":false,"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":"t_counter","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_counter"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM other_schema.cross_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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":22,"schema_name":"other_schema","table_name":"cross_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["other_schema","cross_log"]}},"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_naming_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"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":15,"query_location_length":12,"schema_name":"","table_name":"t_naming_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_naming_log"]}},"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_noop_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":10,"schema_name":"","table_name":"t_noop_log","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_noop_log"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT __duckdb_old_col_0, id FROM t_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":18,"column_names":["__duckdb_old_col_0"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":2,"column_names":["id"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"query_location_length":6,"schema_name":"","table_name":"t_name","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_name"]}},"where_clause":null,"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":[]}],"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 audit_dup_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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"audit_dup_all","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["audit_dup_all"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT row_id, row_val FROM del_audit ORDER BY row_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":47,"query_location_length":6,"column_names":["row_id"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":6,"column_names":["row_id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":7,"column_names":["row_val"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"query_location_length":9,"schema_name":"","table_name":"del_audit","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["del_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 audit2;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"audit2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["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 t_chain2_child;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":14,"schema_name":"","table_name":"t_chain2_child","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_chain2_child"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM glog;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":4,"schema_name":"","table_name":"glog","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["glog"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT c FROM leak_cap;","json":{"error":false,"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":8,"schema_name":"","table_name":"leak_cap","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["leak_cap"]}},"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_expr2 RETURNING rowid + 1 AS rid_plus_one)\nSELECT rid_plus_one 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":"","sample":null,"query_location":18446744073709551615,"query_location_length":0,"schema_name":"","table_name":"rowid_expr2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["rowid_expr2"]}},"using_clauses":[],"returning_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"rid_plus_one","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":45,"query_location_length":5,"column_names":["rowid"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":12,"column_names":["rid_plus_one"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":97,"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 * from pets;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"pets","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pets"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368'::bignum::double = '-1.7976931348623157E+308'::double","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":365,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":327,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":319,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":312,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":321,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":329,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":364,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":338,"query_location_length":26,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1.7976931348623157E+308"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":366,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, a \u003e '2147483647'::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":24,"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":26,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2147483647"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"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 CAST('1.4' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.4"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)","json":{"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":10,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":9223372036854775808}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 10000000000000000000::BIGNUM + (-5)::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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":10000000000000000000}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}},{"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-5}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '-21474836460000000000958214748364600000000009582147483646000000000095821474836459999999999958'::bignum + '-1000'::bignum;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":95,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-21474836460000000000958214748364600000000009582147483646000000000095821474836459999999999958"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":120,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":122,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('.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":31,"query_location_length":9,"child":{"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '256'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"256"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":6,"catalog":"","schema":"","type_name":"bignum","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":14,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-0010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"."}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.0.0'::BIGNUM","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1000.0.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGNUM","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \u003e '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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"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_GREATERTHAN","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT try_cast(bitstring('1', 65) 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":38,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"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":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":65}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":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 try_cast('00001111'::BIT 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00001111"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":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 TRY_CAST('101' AS BIT)","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":16,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"101"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":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 '1011'::BIT | '0001'::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":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":13,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1011"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0001"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"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 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"010101"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('10101111111010100111010'::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":44,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":25,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101111111010100111010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT set_bit(b, 3, 0) 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":16,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":1,"column_names":["b"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":29,"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 v::BIT FROM valid;","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":["v"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":5,"schema_name":"","table_name":"valid","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["valid"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 'a'::BYTEA::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":10,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":5,"catalog":"","schema":"","type_name":"BYTEA","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::BYTEA","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":7,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":5,"catalog":"","schema":"","type_name":"BYTEA","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT R.b, SUM(R.g) FROM blobs as L, blobs2 AS R WHERE L.b=R.b GROUP BY R.b ORDER 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":86,"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"]},{"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":["R","g"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":21,"query_location_length":28,"left":{"type":"BASE_TABLE","alias":"L","sample":null,"query_location":26,"query_location_length":10,"schema_name":"","table_name":"blobs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["blobs"]}},"right":{"type":"BASE_TABLE","alias":"R","sample":null,"query_location":38,"query_location_length":11,"schema_name":"","table_name":"blobs2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["blobs2"]}},"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":56,"query_location_length":7,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":3,"column_names":["L","b"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":3,"column_names":["R","b"]}},"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["R","b"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '\\\\xx2'::BLOB","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\\\xx2"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-01-01 (BC)'::date::timestamp","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":11,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-01-01 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '1147483647 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-22 (BC)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1147483647 days 9223372036854775807 microseconds"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 - 1","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5881580-07-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 '294247-01-10'::date + interval '2147483647 days 9223372036854775807 microseconds'","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":59,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":50,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2147483647 days 9223372036854775807 microseconds"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1970-01-01'::DATE::VARCHAR == '1970-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-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 12:34:56' 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":44,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":30,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-01-01 12:34:56"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-05-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1993-05-32"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-11-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1993-11-31"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-05-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-05-32"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-11-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-11-31"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '10000000000-01-01'::DATE::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":26,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10000000000-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":27,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1111-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 try_cast('-infinity' 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":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-infinity"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":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 year(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":7,"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":12,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"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 i % 3 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"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 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","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":127}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":53,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":127}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":55,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":64,"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":80,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":82,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":108,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":27}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":95,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":103,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":110,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":136,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":121,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":33}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":138,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::BIGINT, -9223372036854775807::DECIMAL(19,0)::BIGINT, -7::DECIMAL(9,1)::BIGINT, 27::DECIMAL(18,1)::BIGINT, 33::DECIMAL(38,1)::BIGINT","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":8,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":127}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":69,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9223372036854775807}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":19}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":71,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":79,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":95,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":81,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":97,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":122,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":107,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":27}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":124,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":149,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":134,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":33}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":136,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":151,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(18,3), 100::SMALLINT::DECIMAL(3,0), (-100)::SMALLINT::DECIMAL(3,0), 0::SMALLINT::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":20,"query_location_length":15,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":50,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":82,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":94,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":109,"query_location_length":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":99,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":101,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":121,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::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":17,"query_location_length":14,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::BIGINT::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":18,"query_location_length":14,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(37,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":15,"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":922337203685477580,"lower":14757395258967641292}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":37}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(18,17)","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":17}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::DOUBLE::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":23,"query_location_length":14,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(NULL::DECIMAL),\n FIRST('0.1'::DECIMAL(4,1))::VARCHAR,\n FIRST('4938245.1'::DECIMAL(9,1))::VARCHAR,\n FIRST('45672564564938245.1'::DECIMAL(18,1))::VARCHAR,\n FIRST('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":20,"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":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":36,"query_location_length":26,"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":47,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":112,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":80,"query_location_length":32,"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":97,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4938245.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":114,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":173,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":130,"query_location_length":43,"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":157,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"45672564564938245.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":170,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":175,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":254,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":191,"query_location_length":63,"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":238,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4567645908450368043562342564564938245.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":240,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":248,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":251,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":256,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.54321543215432154321543215432154321'::DECIMAL(35,35) + 10000)::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":9,"child":{"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.54321543215432154321543215432154321"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":35}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":35}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.0'::DECIMAL(4,3) * '5.0'::DECIMAL(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":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":13,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-5.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":15,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_with_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":"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":16,"schema_name":"","table_name":"prices_with_null","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["prices_with_null"]}},"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 high_scale_int128;","json":{"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"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"query_location_length":17,"schema_name":"","table_name":"high_scale_int128","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["high_scale_int128"]}},"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(2,1);","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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":2}},"is_null":false,"value":1000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(38,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":25,"query_location_length":14,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(100000.00000::DECIMAL(15,5), 8.000::DECIMAL(12,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":67,"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":36,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":12,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":11,"scale":5}},"is_null":false,"value":10000000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":3}},"is_null":false,"value":8000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.0::DECIMAL(4,1), 3.0::DECIMAL(4,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":58,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":30}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 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":55,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":33,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":32,"scale":31}},"is_null":false,"value":{"upper":5421010862427,"lower":9632337040368467967}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '1e9'::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":12,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1e9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5.5e-11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-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":13,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5e-5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select (-50000000000000000.0::DECIMAL(18,1)-50000000000000000.0::DECIMAL(18,1));","json":{"error":false,"statements":[{"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":28,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":19,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":18,"scale":1}},"is_null":false,"value":500000000000000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":19,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":18,"scale":1}},"is_null":false,"value":500000000000000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT -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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":19,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":17,"scale":1}},"is_null":false,"value":-10000000000000000}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"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('100' 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":27,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1000000000::DECIMAL(10,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":51,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":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 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":34,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":11,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":10000000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('100000000000000000000'::DOUBLE 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":54,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000000000000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '::DECIMAL::VARCHAR, '9.'::DECIMAL::VARCHAR, '.1'::DECIMAL::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":16,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" 7 "}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"9."}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::DECIMAL(9,0)::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":18,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"123456789"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":12,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":16,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select '+1234.56789e-1'::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":23,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":16,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"+1234.56789e-1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 WHERE d \u003e '0.1'::DECIMAL(9,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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"decimals","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimals"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":29,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["d"]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT FLOOR('-999.9'::DECIMAL(4,1)), FLOOR('-99999999.9'::DECIMAL(9,1)), FLOOR('-99999999999999999.9'::DECIMAL(18,1)), FLOOR('-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":29,"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":21,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"query_location_length":34,"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":57,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-99999999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":74,"query_location_length":44,"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":102,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-99999999999999999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":115,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":120,"query_location_length":64,"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":168,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-9999999999999999999999999999999999999.9"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":170,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":178,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(ROUND(999.9::DECIMAL(4,1), -3)),\n ROUND(999.9::DECIMAL(4,1), -3),\n ROUND(499.9::DECIMAL(4,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":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":"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":25,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":1}},"is_null":false,"value":9999}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-3}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"query_location_length":30,"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":65,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":1}},"is_null":false,"value":9999}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-3}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":30,"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":104,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":5,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":4,"scale":1}},"is_null":false,"value":4999}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":114,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 (SELECT '1.0'::DECIMAL(2,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":28,"subquery_type":"SCALAR","subquery":{"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":15,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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 1.25::FLOAT::DECIMAL, 1.25::FLOAT::DECIMAL()","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":11,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":125}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":125}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":9,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 a where b in ('sad','woof', 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":1,"schema_name":"","table_name":"a","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["a"]}},"where_clause":{"class":"OPERATOR","type":"COMPARE_IN","alias":"","query_location":27,"query_location_length":20,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"sad"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"woof"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select {'a': 'happy'::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":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":20,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"happy"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"mood","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 albums where year_release::INT \u003e 2010","json":{"error":false,"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":6,"schema_name":"","table_name":"albums","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["albums"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":30,"query_location_length":24,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":12,"column_names":["year_release"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2010}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT person.current_mood\nFROM person\nUNION ALL\nSELECT pet.current_mood\nFROM pet","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":19,"column_names":["person","current_mood"]}],"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":16,"column_names":["pet","current_mood"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":78,"query_location_length":3,"schema_name":"","table_name":"pet","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pet"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]},"named_param_map":[]}]}} +{"sql":"SELECT regexp_matches(person_mood, '.*a.*') FROM person_pet_den","json":{"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_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":11,"column_names":["person_mood"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":".*a.*"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 person where current_mood = last_year_mood","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":27,"query_location_length":29,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":12,"column_names":["current_mood"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":14,"column_names":["last_year_mood"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select count(*) from tbl_temp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":8,"schema_name":"","table_name":"tbl_temp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_temp"]}},"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.date = 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":[]}],"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":14,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":7,"column_names":["t1","date"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"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 * FROM floats","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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 sum(d) from floats_doubles where d \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":["d"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"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":40,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["d"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 NULLS LAST LIMIT 4","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":30,"query_location_length":1,"column_names":["f"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},"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 UNNEST(['nan'::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":"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":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":20,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"nan"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":6,"catalog":"","schema":"","type_name":"double","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(1 2)'::GEOMETRY::VARCHAR;","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":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" POINT(1 2)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, g from t_all_types where id = 29;","json":{"error":false,"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":["g"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}},"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 lines_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":9,"schema_name":"","table_name":"lines_wkb","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["lines_wkb"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT vertex_extract(ST_GeomFromWKB(wkb), 'z') FROM ewkb_point_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":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":22,"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":37,"query_location_length":3,"column_names":["wkb"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"z"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"query_location_length":12,"schema_name":"","table_name":"ewkb_point_z","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ewkb_point_z"]}},"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":{"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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"ä POINT(0 1)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 order by id 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":30,"query_location_length":2,"column_names":["id"]}}]},{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT vertex_extract('POINT(1 2)'::GEOMETRY, 'X'), vertex_extract('POINT(1 2)'::GEOMETRY, '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":43,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(1 2)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"X"}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"query_location_length":43,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(1 2)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":91,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 (NULL::GEOMETRY).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":18,"children":[{"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 stats(geom.x) FROM pts_2d_only LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":11,"schema_name":"","table_name":"pts_2d_only","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pts_2d_only"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 1080863910568919040::HUGEINT * 4642275147320176030871715840::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":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":"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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1080863910568919040}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":66,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":28,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":251658240,"lower":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT 85070591730234615865843651857942052865::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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":4611686018427387904,"lower":1}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::HUGEINT * 10376293541461622783::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":61,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":20,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":10376293541461622783}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":20,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":10376293541461622783}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('-170141183460469231731687303715884105729'::DOUBLE 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":67,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":42,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-170141183460469231731687303715884105729"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 + 42::HUGEINT;","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":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 - 42::HUGEINT, -3::HUGEINT - 5::HUGEINT, 12::HUGEINT-(-12::HUGEINT);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]},{"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":36,"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":38,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]},{"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":64,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":66,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":75,"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":78,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 // 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"170141183460469231731687303715884105727"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 170141183460469231731687303715884105726 - (-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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551614}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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 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":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":7,"query_location_length":39,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551615}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 -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":84,"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":0}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":40,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":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 -170141183460469231731687303715884105728 % -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":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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":0}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":40,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":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 CONCAT('hello number ', 100::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":37,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello number "}}},{"name":"","expression":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":"\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":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":27}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 1::HUGEINT \u0026 3::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":23,"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":8,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::HUGEINT, '130'::HUGEINT, '924829852'::HUGEINT","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"7"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"130"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"924829852"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::HUGEINT, (-42)::SMALLINT::HUGEINT, (-42)::INTEGER::HUGEINT, (-42)::BIGINT::HUGEINT, (-42)::FLOAT::HUGEINT, (-42)::DOUBLE::HUGEINT;","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":12,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":47,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":96,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":98,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":119,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":112,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":114,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":121,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":143,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":135,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":137,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":145,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2147483648}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e5'::hugeint;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":302,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":295,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":304,"query_location_length":7,"catalog":"","schema":"","type_name":"hugeint","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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.05 WEEK';","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.05 WEEK"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.5 MICROSECONDS';","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.5 MICROSECONDS"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 days, interval 2 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":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":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 week, interval 3 weeks;","json":{"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_weeks","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"query_location_length":16,"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":"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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' MICROSECOND;","json":{"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":"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' MICROSECOND;","json":{"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":"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1.5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 MICROSECOND'::INTERVAL;","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5 MICROSECOND"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 MILLENIUM'::INTERVAL","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5 MILLENIUM"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":21,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1.5 CENTURY"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('3 doopiedoos' 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":36,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":14,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3 doopiedoos"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":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 INTERVAL '2Y 1 month 02:01:03.020016';","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":16,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2Y 1 month 02:01:03.020016"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '05:12:34.567890' as test_interval;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"test_interval","query_location":7,"query_location_length":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"05:12:34.567890"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' 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":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":16,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"90"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '';","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":16,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '100000000000000000days';","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":24,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000000000000000days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 mils 2 c 1 decades 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":41,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":32,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 mils 2 c 1 decades 3 quarter"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 agob'::INTERVAL;","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100 months agob"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '5' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '11' 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"11"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '5' SECOND","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 DAY' + '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":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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":20,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:15:37.123456-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 \u003e= TO_HOURS(-44) AND x \u003c= 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-05-11 4:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-05-11 4:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":96,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-05-11 4:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":179,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":209,"query_location_length":40,"children":[{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":209,"query_location_length":18,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":209,"query_location_length":1,"column_names":["x"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":214,"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":223,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-44}}}]}},{"class":"COMPARISON","type":"COMPARE_LESSTHANOREQUALTO","alias":"","query_location":232,"query_location_length":17,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":232,"query_location_length":1,"column_names":["x"]},"right":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":44}}}]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select interval '1 day' - interval '1 hour' = interval '23 hours';","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":"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 day"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 hour"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"23 hours"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 [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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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]","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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] \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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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] = [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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 NULL \u003c []","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":[]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \u003c\u003e []","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":[]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 = r FROM list_int_empty","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":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'] = ['duck', 'goose']","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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"right":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},"named_param_map":[]}]}} -{"sql":"SELECT ['duck'] \u003e ['duck', 'goose']","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"right":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},"named_param_map":[]}]}} -{"sql":"SELECT NULL \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":30,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":15,"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":21,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 NULL \u003c\u003e [{'x': 'duck', 'y': 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":31,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":16,"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":22,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l = r FROM list_of_struct","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":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]::INT[1], [43]::INT[1], NULL::INT[1], [44]::INT[1], NULL::INT[1], [45]::INT[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":90,"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":18,"query_location_length":8,"child":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":29,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":34,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":60,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":56,"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":57,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":44}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":62,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":74,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":76,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":84,"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":85,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":45}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":90,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \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":"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":"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 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":28,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l IS DISTINCT FROM r FROM list_int","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":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":"SELECT ['duck'] 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":38,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":38,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":49,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 l[3] FROM 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"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 l[0:1] FROM test;","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":["l"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}],"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 UNNEST(l)['a']['a1'] FROM b;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":21,"query_location_length":6,"children":[{"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"]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a1"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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.child_stats.min, s.child_stats.max, s.child_stats.has_null, s.has_null FROM (SELECT STATS([i]) 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":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"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":22,"column_names":["s","child_stats","has_null"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":10,"column_names":["s","has_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":85,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":93,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":99,"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":100,"query_location_length":1,"column_names":["i"]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":111,"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 [-100::SMALLINT, 50000::USMALLINT];","json":{"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_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":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":12,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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] 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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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]], 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":38,"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":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":15,"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":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":40,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 4]], [[5, 6], [7, 8]]]::int[2][2][2], 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":75,"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":50,"query_location_length":14,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":15,"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":16,"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":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"array","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":77,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 UNNEST(data) 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":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":14,"query_location_length":4,"column_names":["data"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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 nullif(unnest([1, 2]), 0) AS tag, count(*)\nFROM range(1)\nGROUP BY tag\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":86,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]},{"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["tag"]}],"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 tag\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":106,"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":93,"query_location_length":3,"column_names":["tag"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT r, a.value\nFROM t, UNNEST(a) AS a(value)\nORDER BY r, a.value","json":{"error":false,"statements":[{"node":{"type":"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":["r"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":7,"column_names":["a","value"]}}]}],"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":7,"column_names":["a","value"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":18,"query_location_length":29,"left":{"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"]}},"right":{"type":"TABLE_FUNCTION","alias":"a","sample":null,"query_location":26,"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":33,"query_location_length":1,"column_names":["a"]}}]},"column_name_alias":["value"],"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 u FROM lists, UNNEST(l) AS unnest(u) ORDER BY l, u;","json":{"error":false,"statements":[{"node":{"type":"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":["l"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["u"]}}]}],"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":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":34,"left":{"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"]}},"right":{"type":"TABLE_FUNCTION","alias":"unnest","sample":null,"query_location":21,"query_location_length":22,"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":28,"query_location_length":1,"column_names":["l"]}}]},"column_name_alias":["u"],"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 MAP(['a', 'b', 'c'], [1, 2, NULL])::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":"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":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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], ['name'] ) 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":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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["i"]}}]}},{"name":"","expression":{"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"name"}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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 MAP(['x', 'y', '1', '2', '3', '4'], i) FROM align_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":38,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"query_location_length":9,"schema_name":"","table_name":"align_tbl","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["align_tbl"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select MAP(a, b) FROM ( VALUES\n\t(NULL, ['b', 'c']),\n\t(NULL::INT[], NULL),\n\t(NULL::INT[], NULL::VARCHAR[]),\n\t(NULL::INT[], ['a', 'b', 'c']),\n\t(NULL, ['longer string than inlined', 'smol']),\n\t(NULL, NULL),\n\t([1,2,3], NULL),\n\t([1,2,3], ['z', 'y', 'x']),\n\t([1,2,3], NULL::VARCHAR[]),\n) 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":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":"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":14,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":22,"query_location_length":259,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":58,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":60,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":80,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":93,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":"VARCHAR","children":[]}]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":113,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":122,"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":123,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":148,"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":149,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"longer string than inlined"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":179,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"smol"}}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":191,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":206,"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":207,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":211,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":224,"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":225,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":229,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":233,"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":234,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"z"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":239,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"y"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":244,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":253,"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":254,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":256,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":258,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":266,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":262,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":268,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":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 array_value(1, 2, 3)::INT[4]","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":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":29,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":4}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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]::INT[3])::INT;","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":5,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":15,"query_location_length":8,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":17,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 (array_value(NULL, 'abc')), (array_value(NULL, 'defg')), (NULL)) ORDER BY 1 DESC;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"","sample":null,"query_location":14,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"query_location_length":24,"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":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":63,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"defg"}}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]]},"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 test_array JOIN test_array AS t2 ON t2.c1 = test_array.c1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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 list(array_value({'foo': [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":32,"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":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":"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":"foo","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"foo","query_location":32,"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":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 arrays","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":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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT array_value(a, 42), typeof(array_value(a, 42)) FROM t4;","json":{"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_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":19,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":34,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":46,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":59,"query_location_length":2,"schema_name":"","table_name":"t4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t4"]}},"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 INT[2][2]) FROM (VALUES ([[1,2],[3,4]]), ([[5,6],[7,8]])) 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":24,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["x"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":21,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":true}],"from_table":{"type":"SUBQUERY","alias":"t","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":"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":46,"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":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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"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":64,"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":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":70,"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":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"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,NULL,3], [1,2]]' as INTEGER[3][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":54,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[NULL, [1,NULL,3], [1,2]]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":47,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":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 UNNEST(doubles_dynamic) FROM doubles_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":23,"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":15,"column_names":["doubles_dynamic"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"query_location_length":13,"schema_name":"","table_name":"doubles_table","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["doubles_table"]}},"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], [3, 4]]::BIGINT[]","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":10,"child":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":7,"query_location_length":21,"children":[{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), 'quantile', [0.25, 0.5, 0.75]) FROM range(1, 11) 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":49,"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"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"quantile"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":39,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":75}}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":62,"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":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]},"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(list_value(-i)), max(list_value(i+2)) 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":19,"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":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":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":23,"query_location_length":1,"column_names":["i"]}}]}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":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":43,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":54,"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":60,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 (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":15,"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":"list_value","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), 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":"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":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":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 [{ parent: { child: { t:'abc' } }, n: 42 }][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":48,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":50,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":8,"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":"parent","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"parent","query_location":18,"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":"child","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"child","query_location":27,"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":"t","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"t","query_location":31,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}}}]}}]}},{"name":"n","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"n","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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::HUGEINT), 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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(a, 1) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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":"SELECT flatten(str) FROM struct_data_two_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":12,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":3,"column_names":["str"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"query_location_length":21,"schema_name":"","table_name":"struct_data_two_lists","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["struct_data_two_lists"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT (LIST_VALUE(42))[1]","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":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":19,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 d[0:0] FROM ducks","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":["d"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"query_location_length":5,"schema_name":"","table_name":"ducks","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ducks"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT hello[NULL:NULL+NULL] 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":16,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":5,"column_names":["hello"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}]}],"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":"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[(-2147483646-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":20,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483646}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}]}],"from_table":{"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"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select a[:stop: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":12,"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":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":4,"column_names":["stop"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["step"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"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 a[-9223372036854775808:9223372036854775807: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":47,"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":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9223372036854775807}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":50,"query_location_length":4,"column_names":["step"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"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:3];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":11,"query_location_length":5,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,6,7,8,9,10,11,12,13,14,15,16,17])[1:17:20];","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":52,"query_location_length":9,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":8,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":14}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":17}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":17}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 a[start:stop:step] FROM null_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":17,"children":[{"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":5,"column_names":["start"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":4,"column_names":["stop"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":4,"column_names":["step"]}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"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 UNNEST(l1) u1, UNNEST(l2) u2 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":"FUNCTION","type":"FUNCTION","alias":"u1","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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"u2","query_location":22,"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":29,"query_location_length":2,"column_names":["l2"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":36,"query_location_length":132,"left":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":41,"query_location_length":57,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l1","query_location":49,"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":54,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t1","sample":null,"query_location":65,"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":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":103,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l2","query_location":111,"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":116,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":127,"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":136,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":141,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":146,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":151,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 LIST(42) 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":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":12,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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 SUM(ue) FROM (SELECT UNNEST(le) ue FROM (SELECT g, LIST(e) le from list_data GROUP BY g ORDER BY g) xx) 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":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":["ue"]}}]}],"from_table":{"type":"SUBQUERY","alias":"xy","sample":null,"query_location":20,"query_location_length":91,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"ue","query_location":28,"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":35,"query_location_length":2,"column_names":["le"]}}]}],"from_table":{"type":"SUBQUERY","alias":"xx","sample":null,"query_location":47,"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":105,"query_location_length":1,"column_names":["g"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":55,"query_location_length":1,"column_names":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"le","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":["e"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":94,"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":[]},"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() 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":8,"function_name":"unnest","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"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 UNNEST(a) ua FROM (VALUES (LIST_VALUE(1, 2, 3, 4)), (LIST_VALUE()), (LIST_VALUE(NULL::INTEGER)), (LIST_VALUE(42))) lv(a)","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"ua","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":["a"]}}]}],"from_table":{"type":"SUBQUERY","alias":"lv","sample":null,"query_location":25,"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":"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":34,"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":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"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":[]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":91,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":87,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":105,"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":116,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"SELECT MAP(list_value(1, NULL, 3), list_value(6, 5, 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":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":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 MAP(k, v) FROM null_values_list;","json":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["k"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":16,"schema_name":"","table_name":"null_values_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_values_list"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from hugeint_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":"hugeint_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeint_key"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from decimal_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":"decimal_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimal_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[(1,2), (3,4)], ARRAY[(5,6), (7,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":58,"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":19,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"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":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":38,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}]}},{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"","query_location":45,"query_location_length":19,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"SELECT MAP_FROM_ENTRIES(ARRAY[([{'a':5, 'b':7}, {'a':5, 'b':7}], 2), ([{'a':5, 'b':7}, {'a':5, 'b':8}], 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":101,"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":83,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":37,"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":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":32,"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":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":37,"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":70,"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":71,"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":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"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":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 MAP(list_value(), list_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":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":11,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([3,4,5], ['a', 'b', 'c']), map([1], ['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":58,"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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":32,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}}]}},{"name":"","expression":{"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":59,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(x, y, z) from tbl 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":19,"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":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["z"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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_NOTEQUAL","alias":"","query_location":42,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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"]}}]},{"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}},{"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":[]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"DESC"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NULLS LAST"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 MIN(s), MAX(s) FROM structs","json":{"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"]}}]},{"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":27,"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 (SELECT {'a': 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":17,"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":"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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 e, STRUCT_EXTRACT(STRUCT_PACK(xx := e//2), 'xx') as s FROM struct_data WHERE e \u003e 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":["e"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":10,"query_location_length":45,"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":25,"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":"xx","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"xx","query_location":43,"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":43,"query_location_length":1,"column_names":["e"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xx"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":66,"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":84,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":1,"column_names":["e"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT STRUCT_EXTRACT(e) 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":17,"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":["e"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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}) FROM t_struct_constant;","json":{"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_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":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":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"query_location_length":17,"schema_name":"","table_name":"t_struct_constant","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_struct_constant"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select struct_values((10, '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":28,"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":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":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]}]}} -{"sql":"SELECT\n NULL IS DISTINCT FROM NULL,\n NULL IS NOT DISTINCT FROM NULL,\n NULL IS DISTINCT FROM 42,\n NULL IS NOT DISTINCT FROM 42,\n 42 IS DISTINCT FROM NULL,\n 42 IS NOT DISTINCT FROM NULL,\n 42 IS DISTINCT FROM 42,\n 42 IS NOT DISTINCT FROM 42,\n 42 IS DISTINCT FROM 43,\n 42 IS NOT DISTINCT FROM 43","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":11,"query_location_length":26,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":43,"query_location_length":30,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":79,"query_location_length":24,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":109,"query_location_length":28,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":143,"query_location_length":24,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":173,"query_location_length":28,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":197,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":207,"query_location_length":22,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":207,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":227,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":235,"query_location_length":26,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":235,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"class":"COMPARISON","type":"COMPARE_DISTINCT_FROM","alias":"","query_location":267,"query_location_length":22,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":267,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":287,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":295,"query_location_length":26,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":295,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":319,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} -{"sql":"SELECT cast(a AS BIGINT) 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":17,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":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 i::UTINYINT 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT i::INTEGER 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":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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"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 i::DECIMAL(38,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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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::UTINYINT, 10000::SMALLINT]);","json":{"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":"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 hugeints 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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":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":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS BIGINT) 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":52,"query_location_length":1,"column_names":["i"]}}]}],"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":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"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(9,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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"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 USMALLINT)::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":64,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":9,"child":{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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::VARCHAR 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"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},"named_param_map":[]}]}} -{"sql":"SELECT TRY_CAST(i AS DECIMAL(38,29))::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":69,"query_location_length":1,"column_names":["i"]}}]}],"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":7,"query_location_length":29,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"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 TRY_CAST(i AS UBIGINT)::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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"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(3,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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":38,"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 1.25::FLOAT::NUMERIC, 1.25::FLOAT::NUMERIC()","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":11,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":125}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":40,"query_location_length":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":125}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":9,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 UBIGINT) 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":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":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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(9,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":55,"query_location_length":1,"column_names":["i"]}}]}],"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":8,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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 typeof(1::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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i::INTEGER 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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(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":55,"query_location_length":1,"column_names":["i"]}}]}],"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":8,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"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 TRY_CAST(i AS TINYINT) 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":true}],"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::FLOAT 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":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":7,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":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":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,0))::UHUGEINT 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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(i AS INTEGER) 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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,0)::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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":38}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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 TINYINT) 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":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":22,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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(3,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":59,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":11,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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::UINTEGER 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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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 s::UTINYINT 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":10,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":24,"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 DECIMAL(18,16))::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":71,"query_location_length":1,"column_names":["i"]}}]}],"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":7,"query_location_length":29,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":52,"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 cast (null as u array);","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":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":1,"catalog":"","schema":"","type_name":"u","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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({})","json":{"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":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":11,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"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":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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': struct_pack(), 'b': 1}, [struct_pack(), struct_pack()], typeof({'a': 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":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":"FUNCTION","type":"FUNCTION","alias":"a","query_location":13,"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":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":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":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":[]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"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":76,"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":"FUNCTION","type":"FUNCTION","alias":"a","query_location":82,"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":[]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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).a FROM b","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":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["c"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":18,"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 remap_struct({'i': 1, 'j': 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":72,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":15,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"v1","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"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":68,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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(*), COUNT(j), SUM(j)\nFROM (\n\tSELECT UNNEST(remap_struct(s, NULL::ROW(j INTEGER)[], {'list': ROW('list', {'j': 'i'})}, NULL), recursive := True) FROM large_list\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":[]},{"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":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":31,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":39,"query_location_length":135,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":56,"query_location_length":80,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":14,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"j","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"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":"list","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"list","query_location":105,"query_location_length":23,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"list"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":117,"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":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":123,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":151,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":162,"query_location_length":10,"schema_name":"","table_name":"large_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["large_list"]}},"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(*), COUNT(j), SUM(j)\nFROM (\n\tSELECT UNNEST(remap_struct(s, NULL::ROW(j INTEGER)[], {'list': ROW('array', {'j': 'i'})}, NULL), recursive := True) FROM large_list\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":[]},{"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":["j"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":31,"query_location_length":1,"column_names":["j"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":39,"query_location_length":136,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":108,"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":56,"query_location_length":81,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":1,"column_names":["s"]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":14,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"j","query_location":84,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"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":"list","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"list","query_location":105,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":118,"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":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":124,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":152,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":163,"query_location_length":10,"schema_name":"","table_name":"large_list","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["large_list"]}},"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, CASE WHEN i%2=0 THEN {'i': [1,2,3]} ELSE {'i': NULL} 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":56,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":"i","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"i","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":51,"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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":57,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":72,"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":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]},"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': NULL, 'j': 'hello'}::ROW(i BIGINT, j 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":26,"child":{"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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":24,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"j","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::ROW(i BIGINT, j VARCHAR) FROM structs","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":26,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["s"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":16,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"j","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"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 {'x': 1} \u003c= {'x': 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 {'x': 1} \u003e= {'x': 2}","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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l \u003e= r FROM struct_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":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 NULL = {'x': '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":20,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"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":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":20,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'}","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":20,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"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":[{"name":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":20,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 \u003c\u003e {'x': 'duck', 'y': 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":29,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":21,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l \u003c= r FROM struct_str_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":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 {'x': 1, 'y': {'a': 'duck', 'b': 1.5}} \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":46,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 {'x': 1, 'y': {'a': 'duck', 'b': 1.5}} \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":46,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 {'x': 1, 'y': ['duck', 'somateria']} \u003c {'x': 1, 'y': ['duck', 'somateria']}","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":75,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":60,"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":61,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\u003e {'x': 1, 'y': ['duck', 'somateria']}","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":76,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":61,"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":62,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 list_in_struct","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":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({'a': 2, 'b': NULL}, s) 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":37,"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":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":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 struct_contains(ROW(1, 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":32,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_contains(ROW(c0, c1, c2, c3), 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":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":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":27,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":2,"column_names":["c2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":2,"column_names":["c3"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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 struct_contains(ROW(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":50,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 s 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":"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":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 NULL 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":35,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":29,"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":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_int","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":"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 {'x': 1, 'y': ['duck', 'somateria']} IS NOT 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_NOT_DISTINCT_FROM","alias":"","query_location":7,"query_location_length":94,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"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":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":79,"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":80,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":88,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},"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 \u003c 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":6,"column_names":["rhs","id"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":51,"query_location_length":47,"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_LESSTHAN","alias":"","query_location":77,"query_location_length":21,"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":89,"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 * FROM a RIGHT JOIN b ON a.id\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":27,"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_GREATERTHAN","alias":"","query_location":32,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"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":"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 struct_position(ROW(1, 2, 3), 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":34,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":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 struct_position(ROW(NULL, 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":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_position(ROW([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":41,"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":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":27,"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":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i.a, i.c FROM test_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":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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT * FROM a ORDER BY (b).i;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":25,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":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 row()::STRUCT, struct_pack() = row();","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":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":6,"catalog":"","schema":"","type_name":"STRUCT","children":[]}}},"try_cast":false},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":22,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":[]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":[]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(t.c) FROM (SELECT row(1, 'a') AS c UNION ALL SELECT row(2, 'b')) t 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"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":["t","c"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":24,"query_location_length":54,"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":"c","query_location":32,"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":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":66,"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":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select 1 from VALUES ((NULL, 1, NULL), (5, 6, 7)) t(a, b) where a\u003c\u003eb;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"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":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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}]]},"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_NOTEQUAL","alias":"","query_location":66,"query_location_length":4,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":66,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"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 column_name, column_type FROM (DESCRIBE SELECT unnest([{'a': 12, 'b': {'bb': {'bbb': 12}}}], recursive := true, max_depth := 3, 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":125,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":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":61,"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":62,"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":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":68,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":77,"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":"bb","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"bb","query_location":84,"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":"bbb","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"bbb","query_location":92,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}}]}}]}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":113,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"max_depth","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"max_depth","query_location":132,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"keep_parent_names","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"keep_parent_names","query_location":156,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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': {'c': 88, 'd': 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":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":"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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":29,"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":"c","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"c","query_location":35,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":88}}},{"name":"d","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"d","query_location":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 UNNEST({'a': 44, 'b': 88}), UNNEST([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":"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":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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":44}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":29,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":88}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 UNNEST(s), -s.b AS id FROM tbl_structs UNION ALL SELECT s.a, s.b, s.b FROM tbl_structs ORDER BY id;","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":103,"query_location_length":2,"column_names":["id"]}}]}],"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":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":["s"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"id","query_location":18,"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":19,"query_location_length":3,"column_names":["s","b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"query_location_length":11,"schema_name":"","table_name":"tbl_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_structs"]}},"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":63,"query_location_length":3,"column_names":["s","a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":3,"column_names":["s","b"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":3,"column_names":["s","b"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"query_location_length":11,"schema_name":"","table_name":"tbl_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_structs"]}},"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, data_type\nFROM information_schema.columns\nWHERE table_name = 't_defaults'\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":119,"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":14,"column_names":["column_default"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":36,"query_location_length":9,"column_names":["data_type"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":51,"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":84,"query_location_length":25,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":84,"query_location_length":10,"column_names":["table_name"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"t_defaults"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '11'::TIME","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, DATE_PART(['millisecond', 'microsecond', 'epoch'], tns)\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":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":55,"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":22,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"millisecond"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"microsecond"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"epoch"}}}]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":63,"query_location_length":3,"column_names":["tns"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":73,"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 '1969-12-31 23:59:59.000000001'::TIMESTAMP_NS::TIME_NS t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"t","query_location":52,"query_location_length":9,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1969-12-31 23:59:59.000000001"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"TIME_NS","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '2021-08-20'::TIME;","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":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-08-20"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '01:00:00'::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":17,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '23:59:59.999999' + interval (1) month","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"23:59:59.999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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:70.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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14:42:70.500"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":26,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"11:11:"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":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 DATE '1992-01-01'::TIMESTAMP_S","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":13,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-01-01 01:03:20.45432'::TIMESTAMP::VARCHAR","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":9,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1000-01-01 01:03:20.45432"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT ARBITRARY(tstz), FIRST(tstz), LAST(tstz)\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":15,"function_name":"arbitrary","schema":"","filter":null,"order_bys":{"type":"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":["tstz"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":24,"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":30,"query_location_length":4,"column_names":["tstz"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"query_location_length":10,"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":42,"query_location_length":4,"column_names":["tstz"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":53,"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 isinf(ts), isinf(tstz), isinf(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":9,"function_name":"isinf","schema":"","filter":null,"order_bys":{"type":"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":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"query_location_length":11,"function_name":"isinf","schema":"","filter":null,"order_bys":{"type":"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":["tstz"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"query_location_length":9,"function_name":"isinf","schema":"","filter":null,"order_bys":{"type":"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":2,"column_names":["dt"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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 timestamp '1970-01-01 00:00Z';","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":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01 00:00Z"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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/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":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":["t"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["t"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"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 TIMESTAMP '100000-01-01 00:00:01.5'::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":7,"query_location_length":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000-01-01 00:00:01.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '90000-01-19 03:14:07.999999'::TIMESTAMP_US::TIMESTAMP_NS","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":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":36,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":29,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"90000-01-19 03:14:07.999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_US","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(*), sec from timestamp group by sec order by sec;","json":{"error":false,"statements":[{"node":{"type":"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":3,"column_names":["sec"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":3,"column_names":["sec"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":3,"column_names":["sec"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select '2008-01-01 00:00:11.1'::TIMESTAMP_MS = '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":74,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2008-01-01 00:00:11.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2008-01-01 00:00:11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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-21 (BC) 12:59:59.999999'::timestamp","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":35,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"290309-12-21 (BC) 12:59:59.999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) hour","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10 04:00:54.775806"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2021-05-25 04:55:03.382494 UTC"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1111-11-"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10 04:00:54.775806"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 timestamptz '2020-12-31 21:25:58.745232-0215';","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":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232-0215"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(CHARACTER VARYING 'text');","json":{"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":"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":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"text"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":17,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 - 10::UHUGEINT + 10::UHUGEINT","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"340282366920938463463374607431768211455"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 % 20::UHUGEINT, 90::UHUGEINT % 20::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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":25,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":39,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":90}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":54,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::UHUGEINT \u003c\u003e '5'::UHUGEINT, '5'::UHUGEINT \u003c\u003e '18446744073709551621'::UHUGEINT","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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":27,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":39,"query_location_length":49,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"18446744073709551621"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, '0'::UHUGEINT;","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"340282366920938463463374607431768211455"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::UHUGEINT::INTEGER;","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":17,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483647}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1329227995784915872903807060280344576"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":70,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":[]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1267650600228229401496703205376"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},"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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1080863910568919040}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":251658240}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551615}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":10376293541461622783}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":10376293541461622783}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":62,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(u.num) 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":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":11,"query_location_length":5,"column_names":["u","num"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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 u.i32, u.str, 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","i32"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":5,"column_names":["u","str"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":5,"column_names":["u","f32"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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(f1 VARCHAR, t DOUBLE, f2 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":62,"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":27,"query_location_length":41,"child":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":39,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"f1","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"t","query_location":49,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]},{"class":"TYPE","type":"TYPE","alias":"f2","query_location":60,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.a FROM tbl1 WHERE u.a 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","a"]}],"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","a"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT union_extract(u, 'c') 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT union_tag('foo'::UNION(num INT, str 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":45,"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":22,"query_location_length":29,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":34,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":43,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(a), a FROM tbl ORDER BY a 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":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"]}}]},{"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 enum_first(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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_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":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"]}}]}}]}],"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 union_tag(union_value(str := 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":"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":17,"query_location_length":24,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"str","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"str","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 (200)::UTINYINT - (201)::USMALLINT;","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":12,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":201}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(100::USMALLINT)","json":{"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":"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":14,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::USMALLINT;","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"255"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::USMALLINT * 100::DECIMAL(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":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":10,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT '65536'::USMALLINT","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":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"65536"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":16,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::UTINYINT","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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9223372036854775807}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::USMALLINT","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":11,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::USMALLINT","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":11,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::USMALLINT::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":12,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":200}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::UINTEGER::BIGINT","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":11,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.32)::DECIMAL::USMALLINT","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":11,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":8,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":7,"scale":2}},"is_null":false,"value":6553532}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.32)::REAL::UBIGINT","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":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":22,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":13,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":12,"scale":2}},"is_null":false,"value":429496729632}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('\\x00\\x11\\x223DUfw\\x88\\x99\\xAA\\xBB\\xCC\\xDD\\xEE\\xFF\\x00'::BLOB as uuid) as test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"test","query_location":7,"query_location_length":79,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":55,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x00\\x11\\x223DUfw\\x88\\x99\\xAA\\xBB\\xCC\\xDD\\xEE\\xFF\\x00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":4,"catalog":"","schema":"","type_name":"uuid","children":[]}}},"try_cast":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 '00000000-0000-0000-0000-000000000000'::UUID::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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00000000-0000-0000-0000-000000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":4,"catalog":"","schema":"","type_name":"UUID","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.123456789'::DECIMAL(10,9)::VARIANT::DECIMAL(10,8)","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":15,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":35,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.123456789"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":13,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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(null),\n\t\t('test'),\n\t\t(null)\n\t) t(a)\n)\nselect\n\ta::UNION(a INTEGER, b BOOLEAN, c VARCHAR)::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":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":32,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":119,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":40,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":38,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":100,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]},{"class":"TYPE","type":"TYPE","alias":"c","query_location":111,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":121,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":134,"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 (v).a, variant_keys(v)\nFROM (\n\tSELECT j::VARIANT AS v\n\tFROM (VALUES ('{\"a\":1,\"a\":2}'::JSON), ('{\"a\":3,\"b\":4,\"a\":5}'::JSON)) t(j)\n);","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":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":1,"column_names":["v"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":10,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":27,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":35,"query_location_length":102,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":46,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["j"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":67,"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":91,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":15,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":1,\"a\":2}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":93,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":122,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"a\":3,\"b\":4,\"a\":5}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":124,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}]]},"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":[]},"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 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 a::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"NULL"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":39,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"b\": [1,2,true, \"hello\"], \"a\": NULL}"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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":136,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":135,"query_location_length":1,"column_names":["a"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":138,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":151,"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 try_cast({'a': true, 'b': 'foo'}::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":74,"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":"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":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":33,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":52,"query_location_length":28,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":72,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]}]}}},"try_cast":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 s.shredding_state, s.fully_shredded.type, s.has_null, s.fully_shredded.stats.has_null\nFROM (SELECT stats(c::VARIANT) s FROM nn 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":44,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":106,"query_location_length":17,"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":113,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":1,"column_names":["c"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":115,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":131,"query_location_length":2,"schema_name":"","table_name":"nn","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["nn"]}},"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 variant '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 []::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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 [{'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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 {'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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":40,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":109,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, v FROM single_update WHERE i BETWEEN 5000 AND 5008 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":"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"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"query_location_length":13,"schema_name":"","table_name":"single_update","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["single_update"]}},"where_clause":{"class":"BETWEEN","type":"COMPARE_BETWEEN","alias":"","query_location":39,"query_location_length":21,"input":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"query_location_length":1,"column_names":["i"]},"lower":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5000}},"upper":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5008}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM scatter_test WHERE b != -1.0 AND b = a * 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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"scatter_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scatter_test"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":40,"query_location_length":25,"children":[{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":40,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":40,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":-10}}},{"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":1,"column_names":["b"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":58,"query_location_length":1,"column_names":["a"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT COUNT(*) FROM test_stress_update_issue_19688","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":30,"schema_name":"","table_name":"test_stress_update_issue_19688","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["test_stress_update_issue_19688"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select id, name from student where id=122881;","json":{"error":false,"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":["name"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":7,"schema_name":"","table_name":"student","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["student"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":35,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":122881}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT count(*) FROM t5 WHERE v = id * 10 OR v = id * 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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":2,"schema_name":"","table_name":"t5","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t5"]}},"where_clause":{"class":"CONJUNCTION","type":"CONJUNCTION_OR","alias":"","query_location":30,"query_location_length":27,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":30,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":30,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"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":34,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":45,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":45,"query_location_length":1,"column_names":["v"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":49,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"select * from t_comp;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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_comp","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_comp"]}},"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 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":"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":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 tbl 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":27,"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":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 variant_comparator('-0.0'::DOUBLE::VARIANT) = variant_comparator('0.0'::DOUBLE::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":88,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":43,"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":40,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-0.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"query_location_length":42,"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":85,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":77,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":79,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":87,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 ('0'::BIT::VARIANT),\n ('10101010'::BIT::VARIANT),\n ('00'::BIT::VARIANT),\n ('01'::BIT::VARIANT),\n ('1'::BIT::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":180,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":23,"query_location_length":142,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":44,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":39,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":76,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":78,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":128,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":123,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":125,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":130,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":153,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":148,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":145,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":150,"query_location_length":3,"catalog":"","schema":"","type_name":"BIT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":155,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":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":"FROM test_vector_types({a: 1, b: 2}::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":40,"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":35,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},"column_name_alias":[],"with_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 i, i % 5 AS p\n\tFROM range(1000) tbl(i)\n), w AS (\n\tSELECT i, p, row_number() OVER (PARTITION BY p ORDER BY i DESC) AS rn\n\tFROM t\n), g AS (\n\tSELECT p, max(i) AS max_i\n\tFROM t\n\tGROUP BY p\n)\nSELECT count(*)\nFROM w\nJOIN g USING (p)\nWHERE rn = 1 AND i = max_i","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":"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":"FUNCTION","type":"FUNCTION","alias":"p","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":40,"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":46,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1000}}}]},"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":"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":77,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["p"]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"rn","query_location":83,"query_location_length":50,"function_name":"row_number","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"query_location_length":1,"column_names":["p"]}],"orders":[{"type":"DESCENDING","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":[]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"g","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":166,"query_location_length":1,"column_names":["p"]},{"class":"FUNCTION","type":"FUNCTION","alias":"max_i","query_location":169,"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":173,"query_location_length":1,"column_names":["i"]}}]}],"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":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":1,"column_names":["p"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":214,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":230,"query_location_length":16,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":228,"query_location_length":1,"schema_name":"","table_name":"w","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["w"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":235,"query_location_length":1,"schema_name":"","table_name":"g","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["g"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["p"],"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":253,"query_location_length":20,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":253,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":253,"query_location_length":2,"column_names":["rn"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":258,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":264,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":264,"query_location_length":1,"column_names":["i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":268,"query_location_length":5,"column_names":["max_i"]}}]},"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, NULL::INTEGER)) 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":[]}],"from_table":{"type":"SUBQUERY","alias":"src","sample":null,"query_location":87,"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":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":103,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":105,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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","off"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT\n\tSUM(v) OVER (PARTITION BY a, a, b) AS w_aab,\n\tSUM(v) OVER (PARTITION BY a, a, a) AS w_aaa\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":116,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"w_aab","query_location":8,"query_location_length":34,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]},{"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"]}],"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"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"w_aaa","query_location":54,"query_location_length":34,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":80,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":83,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"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":58,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":103,"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 empno, sum(salary*2) 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":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":14,"query_location_length":56,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":18,"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":18,"query_location_length":6,"column_names":["salary"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"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":"with source as (\n\tselect \n\t\ti, \n\t\t(i + 1) * 3 % 5 as permuted,\n\t\tif(permuted = 4, NULL, permuted) as missing\n\tfrom (\n\t\tfrom range(5) tbl(i)\n\t\tunion all \n\t\tselect NULL::INTEGER as i\n\t) t(i)\n)\nselect\n\ti,\n\tpermuted,\n\tfill(missing order by permuted asc nulls last) over (order by i) as filled\nfrom source\nqualify filled is distinct from 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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},{"class":"CASE","type":"CASE_EXPR","alias":"missing","query_location":65,"query_location_length":32,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":68,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":8,"column_names":["permuted"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"then_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"else_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"query_location_length":8,"column_names":["permuted"]}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":115,"query_location_length":68,"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":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":"tbl","sample":null,"query_location":124,"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":130,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"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":"CAST","type":"OPERATOR_CAST","alias":"i","query_location":166,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":162,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":168,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":199,"query_location_length":1,"column_names":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":203,"query_location_length":8,"column_names":["permuted"]},{"class":"WINDOW","type":"WINDOW_FILL","alias":"filled","query_location":214,"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":276,"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":236,"query_location_length":8,"column_names":["permuted"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":219,"query_location_length":7,"column_names":["missing"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":294,"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_DISTINCT_FROM","alias":"","query_location":309,"query_location_length":32,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":309,"query_location_length":6,"column_names":["filled"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":333,"query_location_length":8,"column_names":["permuted"]}}},"named_param_map":[]}]}} -{"sql":"SELECT\n id,\n user_id,\n order_id,\n NTH_VALUE (order_id, 2 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_NTH_VALUE","alias":"last_order_id","query_location":38,"query_location_length":142,"function_name":"nth_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"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":121,"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":165,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":49,"query_location_length":8,"column_names":["order_id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":203,"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 c1, lead(\"offset\" := 2, col := c1) over (order by c0 rows between 2 preceding and 4 preceding) as b\nfrom (values\n\t(1, 2),\n\t(2, 3),\n\t(3, 4),\n\t(4, 5)\n) a(c0, 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":2,"column_names":["c1"]},{"class":"WINDOW","type":"WINDOW_LEAD","alias":"b","query_location":11,"query_location_length":90,"function_name":"lead","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":2,"column_names":["c0"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_PRECEDING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},"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":"offset","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"offset","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"col","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"col","query_location":38,"query_location_length":2,"column_names":["c1"]}}]}],"from_table":{"type":"SUBQUERY","alias":"a","sample":null,"query_location":112,"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":122,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":134,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":140,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":143,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":149,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":152,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}]]},"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":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT FIRST(LIST_EXTRACT(l, 2)) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}],"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, r//3, mode(r//3) over (order by r rows between 1 preceding and 1 following) \nFROM modes \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":["r"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":10,"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":10,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":16,"query_location_length":69,"function_name":"mode","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":["r"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":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":21,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":92,"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":"SELECT i\n\t, s\n\t, COUNT(DISTINCT s) OVER( ORDER BY i ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING) 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":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":12,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":17,"query_location_length":76,"function_name":"count","schema":"","catalog":"","partitions":[],"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":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"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":32,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":104,"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 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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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, 1 + empno %3 as offset,\n\tnth_value(empno, 1 + empno %3) 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":210,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":213,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"FUNCTION","type":"FUNCTION","alias":"offset","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":27,"query_location_length":5,"column_names":["empno"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]},{"class":"WINDOW","type":"WINDOW_NTH_VALUE","alias":"fv","query_location":48,"query_location_length":134,"function_name":"nth_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"query_location_length":7,"column_names":["depname"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"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":58,"query_location_length":5,"column_names":["empno"]}},{"name":"","expression":{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"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":69,"query_location_length":5,"column_names":["empno"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":191,"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(1,2,3) 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":137,"query_location_length":8,"column_names":["TeamName"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":147,"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":60,"function_name":"ntile","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":8,"column_names":["TeamName"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"from_table":{"type":"BASE_TABLE","alias":"s","sample":null,"query_location":115,"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 r % 3, r, n, median(n) over (partition by r % 3 order by r)\nFROM (SELECT r, CASE r % 2 WHEN 0 THEN r ELSE NULL END AS n FROM quantiles) nulls\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":158,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":161,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":14,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":1,"column_names":["n"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":20,"query_location_length":46,"function_name":"median","schema":"","catalog":"","partitions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":49,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"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":["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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":1,"column_names":["n"]}}]}],"from_table":{"type":"SUBQUERY","alias":"nulls","sample":null,"query_location":72,"query_location_length":70,"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":["r"]},{"class":"CASE","type":"CASE_EXPR","alias":"n","query_location":83,"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":88,"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":88,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":106,"query_location_length":1,"column_names":["r"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":132,"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 r, quantile_cont(i, 0.5) OVER (ORDER BY r ROWS BETWEEN 2 PRECEDING AND 1 FOLLOWING) q\nFROM (VALUES\n\t(0, 0),\n\t(1, 1),\n\t(2, 2),\n\t(3, 3),\n\t(4, 0),\n\t(5, 1)\n\t) tbl(r, i)\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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":184,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"q","query_location":10,"query_location_length":80,"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":47,"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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":24,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":98,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":129,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":144,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":153,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["r","i"]},"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\t(i * 29) % 11 AS outside,\n\trow_number(ORDER BY (i // 2) DESC) OVER w,\n\tntile(4 ORDER BY (i // 2) DESC) OVER w,\nFROM range(10) tbl(i)\nWINDOW w AS (\n\tORDER BY (i * 29) % 11\n)\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":195,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":"outside","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":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":14,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]},{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":40,"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":170,"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":171,"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":171,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}}],"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"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":61,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}],"has_ignore_nulls":false,"arguments":[]},{"class":"WINDOW","type":"WINDOW_NTILE","alias":"","query_location":84,"query_location_length":38,"function_name":"ntile","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":170,"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":171,"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":171,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":175,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}}],"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":"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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":107,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":90,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":129,"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":135,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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, LAG(i, 1, 50) 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_LAG","alias":"i1","query_location":10,"query_location_length":20,"function_name":"lag","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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":50}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":42,"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":48,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 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":[]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]},{"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":40,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 IDS as (\n select * as idx from generate_series(1,4)\n),DATA as (\n select *, (case when idx != 3 then idx * 1.0 else NULL end) as value from IDS\n)\nSELECT \n last(value ORDER BY idx IGNORE NULLS) OVER (ORDER BY idx ROWS BETWEEN UNBOUNDED PRECEDING AND 0 FOLLOWING)\nFROM DATA","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"IDS","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":"idx","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":"TABLE_FUNCTION","alias":"","sample":null,"query_location":39,"query_location_length":20,"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":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}},{"key":"DATA","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":83,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]},{"class":"CASE","type":"CASE_EXPR","alias":"value","query_location":87,"query_location_length":47,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","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":["idx"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":111,"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":111,"query_location_length":3,"column_names":["idx"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":117,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}}]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":126,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":150,"query_location_length":3,"schema_name":"","table_name":"IDS","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["IDS"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}}}]},"select_list":[{"class":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":165,"query_location_length":106,"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":218,"query_location_length":3,"column_names":["idx"]}}],"start":"UNBOUNDED_PRECEDING","end":"EXPR_FOLLOWING_ROWS","start_expr":null,"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":259,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"offset_expr":null,"default_expr":null,"ignore_nulls":true,"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":185,"query_location_length":3,"column_names":["idx"]}}],"has_ignore_nulls":true,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":170,"query_location_length":5,"column_names":["value"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":277,"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 DISTINCT tinyint_min(x) OVER (), max_plus_one(x) OVER () FROM test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"DISTINCT_MODIFIER","distinct_on_targets":[]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":16,"query_location_length":22,"function_name":"tinyint_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":28,"query_location_length":1,"column_names":["x"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":40,"query_location_length":23,"function_name":"max_plus_one","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":53,"query_location_length":1,"column_names":["x"]}}]}],"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":[]}]}} -{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 x, g FROM (SELECT x, g, SUM(x) OVER (PARTITION BY g ORDER BY x ROWS UNBOUNDED PRECEDING) AS zzz67 FROM (SELECT * FROM dbplyr_052 ORDER BY x) dbplyr_053) dbplyr_054 WHERE (zzz67 \u003e 3.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":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["g"]}],"from_table":{"type":"SUBQUERY","alias":"dbplyr_054","sample":null,"query_location":17,"query_location_length":142,"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":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":1,"column_names":["g"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"zzz67","query_location":31,"query_location_length":64,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":57,"query_location_length":1,"column_names":["g"]}],"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":["x"]}}],"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":35,"query_location_length":1,"column_names":["x"]}}]}],"from_table":{"type":"SUBQUERY","alias":"dbplyr_053","sample":null,"query_location":110,"query_location_length":37,"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":145,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":118,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"query_location_length":10,"schema_name":"","table_name":"dbplyr_052","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["dbplyr_052"]}},"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_GREATERTHAN","alias":"","query_location":178,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":178,"query_location_length":5,"column_names":["zzz67"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":186,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":30}}},"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, MEDIAN(DISTINCT s) OVER( ORDER BY i, s NULLS LAST ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING) AS c\nFROM nested\nORDER BY i, s 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":135,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"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":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":17,"query_location_length":91,"function_name":"median","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":["i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["s"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"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":33,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":119,"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 \n\tl_extendedprice, \n\tl_partkey, \n\tl_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":144,"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":155,"query_location_length":10,"column_names":["l_orderkey"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":167,"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":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":90,"query_location_length":9,"column_names":["l_partkey"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":101,"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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":125,"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 NO OTHERS \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":"NO_OTHER","distinct":false,"arg_orders":[],"has_ignore_nulls":false,"arguments":[]}],"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 NULLS FIRST ROWS BETWEEN 1 PRECEDING AND 1 FOLLOWING\n ) FROM t1 ORDER BY 1 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":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":85,"function_name":"sum","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","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":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":98,"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 max(c) OVER win,\n min(c) OVER win,\n count(a) 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":258,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":273,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":288,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":7,"query_location_length":15,"function_name":"max","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":1,"column_names":["c"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":37,"query_location_length":15,"function_name":"min","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["c"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":67,"query_location_length":17,"function_name":"count","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":123,"query_location_length":1,"column_names":["c"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"query_location_length":1,"column_names":["b"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":153,"query_location_length":1,"column_names":["a"]}}],"start":"EXPR_PRECEDING_ROWS","end":"UNBOUNDED_FOLLOWING","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":188,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":73,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":90,"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"]}}]},{"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"]}}]}}]},{"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":[]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1999}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":496,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1999}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":531,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 dense_rank() OVER (PARTITION BY four ORDER BY ten) FROM tenk1 WHERE unique2 \u003c 10 ORDER BY four, ten","json":{"error":false,"statements":[{"node":{"type":"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":4,"column_names":["four"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":3,"column_names":["ten"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_RANK_DENSE","alias":"","query_location":7,"query_location_length":50,"function_name":"dense_rank","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":4,"column_names":["four"]}],"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":["ten"]}}],"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":63,"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_LESSTHAN","alias":"","query_location":75,"query_location_length":12,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":7,"column_names":["unique2"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} -{"sql":"SELECT lag(ten, four, 0, 0) OVER (PARTITION BY four ORDER BY ten) lt FROM tenk1 order by four, ten, lt","json":{"error":false,"statements":[{"node":{"type":"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":["four"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":95,"query_location_length":3,"column_names":["ten"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":100,"query_location_length":2,"column_names":["lt"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_LAG","alias":"lt","query_location":7,"query_location_length":58,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":4,"column_names":["four"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":3,"column_names":["ten"]}}],"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":3,"column_names":["ten"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":4,"column_names":["four"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":74,"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 g, id from t1 where id \u003c 10 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":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_LESSTHAN","alias":"","query_location":27,"query_location_length":7,"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":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT COUNT(*) FROM t WHERE g::VARCHAR = 'POINT (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":[]}],"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":26,"left":{"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":["g"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":13,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT (0 1)"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ('POINT(1 2)'::GEOMETRY).z, ('POINT(1 2)'::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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(1 2)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"z"}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"POINT(1 2)"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"GEOMETRY","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 stats(geom.y) FROM pts LIMIT 1;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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","y"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":26,"query_location_length":3,"schema_name":"","table_name":"pts","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["pts"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select id, st_geomfromwkb(('\\x' || regexp_replace(g, '(.{2})', '\\1\\\\x', 'g')[:-3])::BLOB) FROM values\n(1, '0101000000000000000000f03f0000000000000040'),\n(2, '01e9030000000000000000f03f00000000000000400000000000000840'),\n(3, '01d1070000000000000000f03f00000000000000400000000000001040'),\n(4, '01b90b0000000000000000f03f000000000000004000000000000008400000000000001040'),\n(5, '010200000002000000000000000000f03f000000000000004000000000000008400000000000001040'),\n(6, '01ea03000002000000000000000000f03f00000000000000400000000000000840000000000000104000000000000014400000000000001840'),\n(7, '01d207000002000000000000000000f03f00000000000000400000000000001040000000000000104000000000000014400000000000001c40'),\n(8, '01ba0b000002000000000000000000f03f0000000000000040000000000000084000000000000010400000000000001040000000000000144000000000000018400000000000001c40'),\n(9, '01030000000100000004000000000000000000f03f00000000000000400000000000000840000000000000104000000000000014400000000000001840000000000000f03f0000000000000040'),\n(10,'01eb0300000100000004000000000000000000f03f00000000000000400000000000000840000000000000084000000000000010400000000000001440000000000000144000000000000018400000000000001c40000000000000f03f00000000000000400000000000000840'),\n(11,'01d30700000100000004000000000000000000f03f00000000000000400000000000001040000000000000084000000000000010400000000000001840000000000000144000000000000018400000000000002040000000000000f03f00000000000000400000000000001040'),\n(12,'01bb0b00000100000004000000000000000000f03f0000000000000040000000000000084000000000000010400000000000000840000000000000104000000000000014400000000000001840000000000000144000000000000018400000000000001c400000000000002040000000000000f03f000000000000004000000000000008400000000000001040'),\n(13,'0104000000030000000101000000000000000000f03f0000000000000040010100000000000000000008400000000000001040010100000000000000000014400000000000001840'),\n(14,'01ec0300000300000001e9030000000000000000f03f0000000000000040000000000000084001e903000000000000000008400000000000001040000000000000144001e9030000000000000000144000000000000018400000000000001c40'),\n(15,'01d40700000300000001d1070000000000000000f03f0000000000000040000000000000104001d107000000000000000008400000000000001040000000000000184001d1070000000000000000144000000000000018400000000000002040'),\n(16,'01bc0b00000300000001b90b0000000000000000f03f00000000000000400000000000000840000000000000104001b90b0000000000000000084000000000000010400000000000001440000000000000184001b90b0000000000000000144000000000000018400000000000001c400000000000002040'),\n(17,'010500000002000000010200000002000000000000000000f03f000000000000004000000000000008400000000000001040010200000002000000000000000000144000000000000018400000000000001c400000000000002040'),\n(18,'01ed0300000200000001ea03000002000000000000000000f03f0000000000000040000000000000084000000000000008400000000000001040000000000000144001ea03000002000000000000000000144000000000000018400000000000001c400000000000001c4000000000000020400000000000002240'),\n(19,'01d50700000200000001d207000002000000000000000000f03f0000000000000040000000000000104000000000000008400000000000001040000000000000184001d2070000020000000000000000001440000000000000184000000000000020400000000000001c4000000000000020400000000000002440'),\n(20,'01bd0b00000200000001ba0b000002000000000000000000f03f000000000000004000000000000008400000000000001040000000000000084000000000000010400000000000001440000000000000184001ba0b000002000000000000000000144000000000000018400000000000001c4000000000000020400000000000001c40000000000000204000000000000022400000000000002440'),\n(21,'01060000000200000001030000000100000004000000000000000000f03f00000000000000400000000000000840000000000000104000000000000014400000000000001840000000000000f03f0000000000000040010300000001000000040000000000000000001c40000000000000204000000000000022400000000000002440000000000000264000000000000028400000000000001c400000000000002040'),\n(22,'01ee0300000200000001eb0300000100000004000000000000000000f03f00000000000000400000000000000840000000000000084000000000000010400000000000001440000000000000144000000000000018400000000000001c40000000000000f03f0000000000000040000000000000084001eb03000001000000040000000000000000001c4000000000000020400000000000002240000000000000224000000000000024400000000000002640000000000000264000000000000028400000000000002a400000000000001c4000000000000020400000000000002240'),\n(23,'01d60700000200000001d30700000100000004000000000000000000f03f00000000000000400000000000001040000000000000084000000000000010400000000000001840000000000000144000000000000018400000000000002040000000000000f03f0000000000000040000000000000104001d307000001000000040000000000000000001c4000000000000020400000000000002440000000000000224000000000000024400000000000002840000000000000264000000000000028400000000000002c400000000000001c4000000000000020400000000000002440'),\n(24,'01be0b00000200000001bb0b00000100000004000000000000000000f03f0000000000000040000000000000084000000000000010400000000000000840000000000000104000000000000014400000000000001840000000000000144000000000000018400000000000001c400000000000002040000000000000f03f00000000000000400000000000000840000000000000104001bb0b000001000000040000000000000000001c400000000000002040000000000000224000000000000024400000000000002240000000000000244000000000000026400000000000002840000000000000264000000000000028400000000000002a400000000000002c400000000000001c40000000000000204000000000000022400000000000002440'),\n(25,'0107000000020000000101000000000000000000f03f00000000000000400102000000020000000000000000000840000000000000104000000000000014400000000000001840'),\n(26,'01ef0300000200000001e9030000000000000000f03f0000000000000040000000000000084001ea03000002000000000000000000084000000000000010400000000000001440000000000000144000000000000018400000000000001c40'),\n(27,'01d70700000200000001d1070000000000000000f03f0000000000000040000000000000104001d207000002000000000000000000084000000000000010400000000000001840000000000000144000000000000018400000000000002040'),\n(28,'01bf0b00000200000001b90b0000000000000000f03f00000000000000400000000000000840000000000000104001ba0b0000020000000000000000000840000000000000104000000000000014400000000000001840000000000000144000000000000018400000000000001c400000000000002040')\n\tas t(id, 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":6263,"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":78,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":82,"query_location_length":6,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\x"}}},{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_SLICE","alias":"","query_location":76,"query_location_length":5,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"query_location_length":41,"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":["g"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"(.{2})"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":63,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\\1\\\\x"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"g"}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":78,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-3}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":84,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":95,"query_location_length":6158,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":103,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":44,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0101000000000000000000f03f0000000000000040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":154,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":157,"query_location_length":60,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01e9030000000000000000f03f00000000000000400000000000000840"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":221,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":224,"query_location_length":60,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01d1070000000000000000f03f00000000000000400000000000001040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":288,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":291,"query_location_length":76,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01b90b0000000000000000f03f000000000000004000000000000008400000000000001040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":371,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":374,"query_location_length":84,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"010200000002000000000000000000f03f000000000000004000000000000008400000000000001040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":462,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":465,"query_location_length":116,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01ea03000002000000000000000000f03f00000000000000400000000000000840000000000000104000000000000014400000000000001840"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":585,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":588,"query_location_length":116,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01d207000002000000000000000000f03f00000000000000400000000000001040000000000000104000000000000014400000000000001c40"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":708,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":711,"query_location_length":148,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01ba0b000002000000000000000000f03f0000000000000040000000000000084000000000000010400000000000001040000000000000144000000000000018400000000000001c40"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":863,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":866,"query_location_length":156,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01030000000100000004000000000000000000f03f00000000000000400000000000000840000000000000104000000000000014400000000000001840000000000000f03f0000000000000040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1026,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1029,"query_location_length":220,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01eb0300000100000004000000000000000000f03f00000000000000400000000000000840000000000000084000000000000010400000000000001440000000000000144000000000000018400000000000001c40000000000000f03f00000000000000400000000000000840"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1253,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1256,"query_location_length":220,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01d30700000100000004000000000000000000f03f00000000000000400000000000001040000000000000084000000000000010400000000000001840000000000000144000000000000018400000000000002040000000000000f03f00000000000000400000000000001040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1480,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1483,"query_location_length":284,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01bb0b00000100000004000000000000000000f03f0000000000000040000000000000084000000000000010400000000000000840000000000000104000000000000014400000000000001840000000000000144000000000000018400000000000001c400000000000002040000000000000f03f000000000000004000000000000008400000000000001040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1771,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":13}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1774,"query_location_length":146,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0104000000030000000101000000000000000000f03f0000000000000040010100000000000000000008400000000000001040010100000000000000000014400000000000001840"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1924,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":14}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1927,"query_location_length":194,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01ec0300000300000001e9030000000000000000f03f0000000000000040000000000000084001e903000000000000000008400000000000001040000000000000144001e9030000000000000000144000000000000018400000000000001c40"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2125,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":15}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2128,"query_location_length":194,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01d40700000300000001d1070000000000000000f03f0000000000000040000000000000104001d107000000000000000008400000000000001040000000000000184001d1070000000000000000144000000000000018400000000000002040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2326,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2329,"query_location_length":242,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01bc0b00000300000001b90b0000000000000000f03f00000000000000400000000000000840000000000000104001b90b0000000000000000084000000000000010400000000000001440000000000000184001b90b0000000000000000144000000000000018400000000000001c400000000000002040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2575,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":17}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2578,"query_location_length":184,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"010500000002000000010200000002000000000000000000f03f000000000000004000000000000008400000000000001040010200000002000000000000000000144000000000000018400000000000001c400000000000002040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2766,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":2769,"query_location_length":248,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01ed0300000200000001ea03000002000000000000000000f03f0000000000000040000000000000084000000000000008400000000000001040000000000000144001ea03000002000000000000000000144000000000000018400000000000001c400000000000001c4000000000000020400000000000002240"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3021,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":19}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3024,"query_location_length":248,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01d50700000200000001d207000002000000000000000000f03f0000000000000040000000000000104000000000000008400000000000001040000000000000184001d2070000020000000000000000001440000000000000184000000000000020400000000000001c4000000000000020400000000000002440"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3276,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3279,"query_location_length":312,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01bd0b00000200000001ba0b000002000000000000000000f03f000000000000004000000000000008400000000000001040000000000000084000000000000010400000000000001440000000000000184001ba0b000002000000000000000000144000000000000018400000000000001c4000000000000020400000000000001c40000000000000204000000000000022400000000000002440"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3595,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":21}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3598,"query_location_length":328,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01060000000200000001030000000100000004000000000000000000f03f00000000000000400000000000000840000000000000104000000000000014400000000000001840000000000000f03f0000000000000040010300000001000000040000000000000000001c40000000000000204000000000000022400000000000002440000000000000264000000000000028400000000000001c400000000000002040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3930,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":22}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":3933,"query_location_length":456,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01ee0300000200000001eb0300000100000004000000000000000000f03f00000000000000400000000000000840000000000000084000000000000010400000000000001440000000000000144000000000000018400000000000001c40000000000000f03f0000000000000040000000000000084001eb03000001000000040000000000000000001c4000000000000020400000000000002240000000000000224000000000000024400000000000002640000000000000264000000000000028400000000000002a400000000000001c4000000000000020400000000000002240"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":4393,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":23}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":4396,"query_location_length":456,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01d60700000200000001d30700000100000004000000000000000000f03f00000000000000400000000000001040000000000000084000000000000010400000000000001840000000000000144000000000000018400000000000002040000000000000f03f0000000000000040000000000000104001d307000001000000040000000000000000001c4000000000000020400000000000002440000000000000224000000000000024400000000000002840000000000000264000000000000028400000000000002c400000000000001c4000000000000020400000000000002440"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":4856,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":24}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":4859,"query_location_length":584,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01be0b00000200000001bb0b00000100000004000000000000000000f03f0000000000000040000000000000084000000000000010400000000000000840000000000000104000000000000014400000000000001840000000000000144000000000000018400000000000001c400000000000002040000000000000f03f00000000000000400000000000000840000000000000104001bb0b000001000000040000000000000000001c400000000000002040000000000000224000000000000024400000000000002240000000000000244000000000000026400000000000002840000000000000264000000000000028400000000000002a400000000000002c400000000000001c40000000000000204000000000000022400000000000002440"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":5447,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":25}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":5450,"query_location_length":144,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0107000000020000000101000000000000000000f03f00000000000000400102000000020000000000000000000840000000000000104000000000000014400000000000001840"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":5598,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":26}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":5601,"query_location_length":192,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01ef0300000200000001e9030000000000000000f03f0000000000000040000000000000084001ea03000002000000000000000000084000000000000010400000000000001440000000000000144000000000000018400000000000001c40"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":5797,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":27}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":5800,"query_location_length":192,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01d70700000200000001d1070000000000000000f03f0000000000000040000000000000104001d207000002000000000000000000084000000000000010400000000000001840000000000000144000000000000018400000000000002040"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":5996,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":28}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":5999,"query_location_length":240,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"01bf0b00000200000001b90b0000000000000000f03f00000000000000400000000000000840000000000000104001ba0b0000020000000000000000000840000000000000104000000000000014400000000000001840000000000000144000000000000018400000000000001c400000000000002040"}}]]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]},"column_name_alias":["id","g"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 4642275147320176030871715840::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":58,"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":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":28,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":251658240,"lower":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":9,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":251658240}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 19807040628566084398385987584::HUGEINT*8589934592::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":58,"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":36,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":29,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":1073741824,"lower":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":10,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":8589934592}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(170141183460469231731687303715884105727) FROM range(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":44,"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":39,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551615}}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":57,"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":63,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"column_name_alias":[],"with_ordinality":"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('170141183460469231731687303715884105728'::DOUBLE 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":70,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":57,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"170141183460469231731687303715884105728"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":69,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":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 '100000000000000000000'::HUGEINT + '100000000000000000000'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000000000000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000000000000000000"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 - '170141183460469231731687303715884105727'::HUGEINT;","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-170141183460469231731687303715884105728"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":102,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"170141183460469231731687303715884105727"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":90}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":20}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::HUGEINT;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}},{"name":"","expression":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-170141183460469231731687303715884105727"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":56,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551615}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 -170141183460469231731687303715884105728 * 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":40,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":0}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551615}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 -170141183460469231731687303715884105728 % 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":40,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":-9223372036854775808,"lower":0}}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":39,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":9223372036854775807,"lower":18446744073709551615}}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \u003c\u003c 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":"\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":9,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":27}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":27}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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::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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::HUGEINT, '-130'::HUGEINT, '-924829852'::HUGEINT","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":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-7"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-130"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":51,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-924829852"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":53,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":21,"query_location_length":9,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":46,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":37,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":39,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":48,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":97,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":88,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":84,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":90,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":99,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":121,"query_location_length":7,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":112,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":114,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":123,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":144,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":135,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":131,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":137,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":146,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::HUGEINT::INTEGER, -2147483647::HUGEINT::INTEGER;","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":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483647}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":57,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":10,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2147483647}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e5'::hugeint;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":302,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":295,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":304,"query_location_length":7,"catalog":"","schema":"","type_name":"hugeint","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 h1.h) FROM hugeints h1 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":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"cte_map":{"map":[]},"select_list":[{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":7,"query_location_length":13,"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":4,"column_names":["h1","h"]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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":"h1","sample":null,"query_location":26,"query_location_length":11,"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 interval '0.00005 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.00005 MILLENNIUM"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.0000000005 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0.0000000005 DAY"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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('5 days'::INTERVAL DAY TO 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":39,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":21,"query_location_length":24,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5 days"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":22,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 minutes, interval 2 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":18,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 century, interval 3 centuries;","json":{"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_centuries","schema":"","filter":null,"order_bys":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"query_location_length":20,"function_name":"to_centuries","schema":"","filter":null,"order_bys":{"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' 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":21,"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":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' 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":22,"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":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1.5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 SECOND'::INTERVAL;","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1.5 SECOND"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 MILLISECOND'::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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1.5 MILLISECOND"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" "}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":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 INTERVAL '2 yr 1 mon 1 min 3 sec 20 msec 16 usec';","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":40,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2 yr 1 mon 1 min 3 sec 20 msec 16 usec"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT ('35:10:00'::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":8,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"35:10:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"INTERVAL","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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' 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":20,"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":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"90"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"years"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '100000000000000000000msecs';","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":16,"query_location_length":28,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"100000000000000000000msecs"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '2147483647 months 2147483647 days 9223372036854775msecs';","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":66,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":57,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2147483647 months 2147483647 days 9223372036854775msecs"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"0"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"6"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1992-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"DATE","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '5' SECOND","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"10:00:00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":25,"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":34,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"5"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '22 HOUR';","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:15:37.123456-08"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":38,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"22 HOUR"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 = INTERVAL '1' MONTH","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":38,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"30"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},"right":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 month' + interval '4 days' = interval '-26 days';","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":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":7,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-1 month"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4 days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":49,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":10,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"-26 days"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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%2=0 then [i] else [-i] end from range(5) tbl(i)","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":38,"case_checks":[{"when_expr":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":17,"query_location_length":5,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":17,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["i"]}}]}}],"else_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":37,"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":38,"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":39,"query_location_length":1,"column_names":["i"]}}]}}]}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":51,"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":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"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 NULL = [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":10,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 NULL \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":10,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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] \u003e= [1, 2]","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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 [] \u003c= [1, 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":12,"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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 [] \u003e= [1, 2]","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":12,"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":[]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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_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_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 NULL = ['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":15,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":15,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 ['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":15,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":15,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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}, {'x': 'goose', '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":74,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":64,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goose"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 [{'x': 'duck', 'y': 1}] \u003e= [{'x': 'duck', 'y': 1}, {'x': 'goose', 'y': 2}]","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":74,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":58,"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":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":64,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goose"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":78,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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_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_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]);","json":{"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 '' = concat(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":23,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":""}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":12,"query_location_length":18,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 * FROM v3 v, v3 w WHERE v.a \u003c\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":"v3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v3"]}},"right":{"type":"BASE_TABLE","alias":"w","sample":null,"query_location":20,"query_location_length":4,"schema_name":"","table_name":"v3","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["v3"]}},"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":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 NOT DISTINCT FROM [1, 2]","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":31,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l IS NOT DISTINCT FROM r FROM list_int_empty","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":24,"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":30,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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 [{'x': 'duck', 'y': 1}] IS NOT DISTINCT FROM [{'x': 'duck', 'y': 1}, {'x': 'goose', 'y': 2}]","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":92,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":52,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":53,"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":59,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":82,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"goose"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 string_split(string_agg(NULL, ','), ',')[100] from range(10);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":47,"query_location_length":5,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":40,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":20,"query_location_length":21,"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":31,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":","}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":58,"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":64,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"column_name_alias":[],"with_ordinality":"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_extract(l, 1) 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":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":["l"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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 UNNEST(l) 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":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"]}}]}],"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 STATS([interval 1 year, interval 2 year])","json":{"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":"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":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":14,"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":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::USMALLINT, 10000.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":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":11,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":7,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":6,"scale":1}},"is_null":false,"value":100005}}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 a WHERE b[1][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":"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":9,"left":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":26,"query_location_length":3,"children":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":23,"query_location_length":3,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":22,"query_location_length":1,"column_names":["b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id, b[0:0] 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":34,"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_SLICE","alias":"","query_location":12,"query_location_length":5,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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 UNNEST([[1, 2, 3], [4, 5]], recursive := true) AS a, UNNEST([1, 2, 3]) AS 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":92,"query_location_length":1,"column_names":["a"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"a","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":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":15,"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":16,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":48,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":60,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":67,"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":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 unnest([[1, 2], [3, 4]]::int[][], 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":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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":32,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}]}}},"try_cast":false}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":52,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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 id, UNNEST(i), UNNEST(j) FROM (VALUES (1, [{'a': [1, 2], 'b': NULL}, {'a': NULL, 'b': 'hello'}], [[1, 2, 3], [4, 5]]), (2, NULL, [[11, 12], NULL]), (3, [{'a': [NULL, 4, 5], 'b': 'test the best unnest fest'}, NULL, {'a': [6, 7, NULL, 9], 'b': 'abcd'}], [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"]}}]},{"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"]}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":37,"query_location_length":230,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":53,"function_name":"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":50,"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":"FUNCTION","type":"FUNCTION","alias":"a","query_location":56,"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":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":69,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":82,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":93,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":104,"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":105,"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":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":112,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":116,"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":117,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":130,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":136,"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":137,"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":138,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":142,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":147,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":156,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":159,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":160,"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":166,"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":167,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":176,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":185,"query_location_length":27,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test the best unnest fest"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":215,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":221,"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":"a","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"a","query_location":227,"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":228,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":231,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":234,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":240,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}}]}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":249,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abcd"}}}]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":259,"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":260,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}]]},"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(string_split(tags, '\u003e')) AS tag, count(*)\nFROM grouped_unnest_strings\nGROUP BY unnest(string_split(tags, '\u003e'))\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":134,"query_location_length":3,"column_names":["tag"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"tag","query_location":7,"query_location_length":31,"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":23,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":27,"query_location_length":4,"column_names":["tags"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\u003e"}}}]}}]},{"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"query_location_length":22,"schema_name":"","table_name":"grouped_unnest_strings","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["grouped_unnest_strings"]}},"where_clause":null,"group_expressions":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":93,"query_location_length":31,"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":100,"query_location_length":23,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":4,"column_names":["tags"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"\u003e"}}}]}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT coalesce(unnest([1, 2]), 0) AS tag, count(*)\nFROM range(1)\nGROUP BY tag\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":88,"query_location_length":3,"column_names":["tag"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"OPERATOR_COALESCE","alias":"tag","query_location":7,"query_location_length":27,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]},{"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":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"","sample":null,"query_location":57,"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":63,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"where_clause":null,"group_expressions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"query_location_length":3,"column_names":["tag"]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t AS (\n\tSELECT 1 AS r, ARRAY[1, 2, 3] AS a\n\tUNION SELECT 2 AS r, ARRAY[4] AS a\n\tUNION SELECT 3 AS r, NULL AS a)\nSELECT r, a, UNNEST(a) AS n\nFROM t\nORDER BY r, 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":161,"query_location_length":1,"column_names":["r"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":164,"query_location_length":1,"column_names":["n"]}}]}],"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":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"a","query_location":28,"query_location_length":14,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"OPERATOR","type":"ARRAY_CONSTRUCTOR","alias":"a","query_location":70,"query_location_length":8,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":106,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":1,"column_names":["r"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"query_location_length":1,"column_names":["a"]},{"class":"FUNCTION","type":"FUNCTION","alias":"n","query_location":130,"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":137,"query_location_length":1,"column_names":["a"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":150,"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 UNNEST(NULL::INT[]) 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":29,"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":25,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":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 b FROM (SELECT ARRAY[1,2,3] AS x), UNNEST(x) t(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":["b"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":9,"query_location_length":47,"left":{"type":"SUBQUERY","alias":"","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":"x","query_location":22,"query_location_length":12,"children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"right":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":42,"query_location_length":14,"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":49,"query_location_length":1,"column_names":["x"]}}]},"column_name_alias":["b"],"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 TRY_CAST(MAP(['a'], ['x']) AS MAP(VARCHAR, 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":52,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":16,"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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":28,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"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":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":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 MAP(keys, values) FROM MAP_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":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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":11,"query_location_length":4,"column_names":["keys"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":6,"column_names":["values"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"query_location_length":9,"schema_name":"","table_name":"MAP_input","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["MAP_input"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select map(NULL, [1,2,3]) 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":26,"query_location_length":7,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":17,"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":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 * FROM UNNEST(array_value(1, 2, 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":28,"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":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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]},"column_name_alias":[],"with_ordinality":"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, 2, 3], [4, 5, 6, 7]]::INT[3][2]","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":11,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":8,"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":9,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":34,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":2}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(l AS INT[3]) FROM unreferenced_bad_child 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":7,"query_location_length":21,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["l"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"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":63,"query_location_length":5,"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT * FROM t1 JOIN t2 USING (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":"STAR","type":"STAR","alias":"","query_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":17,"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":["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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"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"]}}]}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"[NULL, [1], [abc]]"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":1}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":3}}]}}},"try_cast":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 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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":23,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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":[]},"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":39,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"string_agg"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"|"}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]},"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"]}}]},{"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"]}}]}],"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":"SELECT UNNEST((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":23,"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":14,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_ELEMENT(LIST_VALUE(42), 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":"list_element","schema":"","filter":null,"order_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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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), 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":"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":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":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 LIST_EXTRACT(LIST_VALUE(42::UHUGEINT), 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":41,"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":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":33,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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(a, 2) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":"SELECT list_reduce(str1, lambda a, b: a) FROM many_structs_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":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":4,"column_names":["str1"]}},{"name":"","expression":{"class":"LAMBDA","type":"LAMBDA","alias":"","query_location":25,"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"]}}]},"expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":38,"query_location_length":1,"column_names":["a"]},"syntax_type":"LAMBDA_KEYWORD"}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"query_location_length":17,"schema_name":"","table_name":"many_structs_data","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["many_structs_data"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT LIST_VALUE(42)[1]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":21,"query_location_length":3,"children":[{"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":18,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 s[1:2] 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]}],"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[off:NULL+off] 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":14,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["n"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":3,"column_names":["off"]},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":18,"query_location_length":3,"column_names":["off"]}}]}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":23,"query_location_length":21,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":28,"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":35,"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 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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483646}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":11,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-2147483647}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":43,"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 a[start:-: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":14,"children":[{"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":5,"column_names":["start"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"LIST","type_info":{"type":"LIST_TYPE_INFO","alias":"","extension_info":null,"child_type":{"id":"INTEGER","type_info":null}}},"is_null":false,"value":{"children":[]}}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":17,"query_location_length":4,"column_names":["step"]}]}],"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 ([1,2,3,4,5])[-9223372036854775808 + 1:9223372036854775807 - 1:-1];","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":53,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},{"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":21,"query_location_length":20,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":-9223372036854775808}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":19,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":9223372036854775807}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-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,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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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])[-4:-1: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":9,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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])[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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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), l2 FROM (SELECT LIST(a) l1 FROM (VALUES (1), (2), (3)) AS t1 (a)) t1, \t(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":"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"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":2,"column_names":["l2"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":22,"query_location_length":133,"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"]}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":90,"query_location_length":62,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"l2","query_location":98,"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":103,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t2","sample":null,"query_location":114,"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":123,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":128,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":133,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":138,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 UNNEST(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":"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 SUM(UNNEST(le)) FROM ( SELECT g, LIST(e) le from list_data GROUP BY g ORDER BY g) xx","json":{"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":"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":["le"]}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"xx","sample":null,"query_location":28,"query_location_length":61,"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":1,"column_names":["g"]}}]}],"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":"le","query_location":40,"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":45,"query_location_length":1,"column_names":["e"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":56,"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":[{"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":[]},"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 FROM (SELECT g, LIST(e) l FROM list_data GROUP BY g) u1 where UNNEST(l) \u003e 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":["g"]}],"from_table":{"type":"SUBQUERY","alias":"u1","sample":null,"query_location":14,"query_location_length":47,"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":["g"]},{"class":"FUNCTION","type":"FUNCTION","alias":"l","query_location":25,"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":30,"query_location_length":1,"column_names":["e"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":40,"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":[{"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":[]},"column_name_alias":[]},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":71,"query_location_length":14,"left":{"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":["l"]}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT UNNEST(a) ua FROM (VALUES (LIST_VALUE()), (LIST_VALUE(1, 2, 3, 4)), (LIST_VALUE(NULL)), (LIST_VALUE(42))) lv(a);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"ua","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":["a"]}}]}],"from_table":{"type":"SUBQUERY","alias":"lv","sample":null,"query_location":25,"query_location_length":87,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_location":18446744073709551615,"query_location_length":0,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"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":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":[]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":64,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":70,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":76,"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":87,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":96,"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":107,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"SELECT MAP(list_value(1, 2, 3, 4, 1), list_value(10, 9, 8, 7, 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":58,"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":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":22,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":49,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":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":24,"query_location_length":4,"column_names":["list"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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 col[123] from hugeint_key;","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":5,"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":123}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":11,"schema_name":"","table_name":"hugeint_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["hugeint_key"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select col['12.3'::DECIMAL] from decimal_key;","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":17,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":3,"column_names":["col"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":17,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12.3"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"query_location_length":11,"schema_name":"","table_name":"decimal_key","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["decimal_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(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":"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":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 MAP_FROM_ENTRIES(ARRAY[([{'a':5, 'b':7}, {'a':5, 'b':8}], 2), ([{'a':5, 'b':7}, {'a':5, 'b':8}], 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":101,"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":83,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":37,"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":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":32,"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":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":48,"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":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":69,"query_location_length":37,"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":70,"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":71,"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":76,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":87,"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":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":99,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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":5,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([3,4,5], ['a', 'b', 'c']), 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":54,"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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":32,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":53,"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":[]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":57,"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":[]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(x, y, z) from tbl where rowid == 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":"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":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":1,"column_names":["y"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":1,"column_names":["z"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":32,"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":42,"query_location_length":10,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":42,"query_location_length":5,"column_names":["rowid"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT map_contains_entry(map([1,2,3],[4,5,6]), 2, 5) 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":46,"function_name":"map_contains_entry","schema":"","filter":null,"order_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 map_entries(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":18,"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":5,"function_name":"map","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(['a', 'b', 'c', 'd'], [5,1,8,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":46,"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":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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 MAP_KEYS(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":32,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":16,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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[0] from (select MAP(LIST_VALUE(1, 2, 3, 4,5),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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":17,"query_location_length":70,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":25,"query_location_length":56,"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":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":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":46,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":54,"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":65,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":75,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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,1) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":58,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":8}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":85,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select m 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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["m"]}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":14,"query_location_length":118,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":22,"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":26,"query_location_length":4,"column_names":["lsta"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":4,"column_names":["lstb"]}}]}],"from_table":{"type":"SUBQUERY","alias":"lst_tbl","sample":null,"query_location":47,"query_location_length":73,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"lsta","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":["a"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"lstb","query_location":72,"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":77,"query_location_length":1,"column_names":["b"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":93,"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":104,"query_location_length":15,"children":[{"class":"COMPARISON","type":"COMPARE_LESSTHAN","alias":"","query_location":104,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":104,"query_location_length":1,"column_names":["a"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"class":"COMPARISON","type":"COMPARE_GREATERTHAN","alias":"","query_location":114,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":114,"query_location_length":1,"column_names":["b"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":118,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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(NULL::MAP(INT, 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":41,"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":"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 m[[10,11]] from (select MAP(lst,lst) as m from (SELECT LIST([i,i+1]) as lst FROM range(10000) tbl(i)) 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":9,"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":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":10,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":13,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}]}],"from_table":{"type":"SUBQUERY","alias":"T","sample":null,"query_location":23,"query_location_length":97,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":31,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":3,"column_names":["lst"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":39,"query_location_length":3,"column_names":["lst"]}}]}],"from_table":{"type":"SUBQUERY","alias":"lst_tbl","sample":null,"query_location":54,"query_location_length":54,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"lst","query_location":62,"query_location_length":13,"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":67,"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":68,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":70,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":72,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":88,"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":94,"query_location_length":5,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10000}}}]},"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 map([3, 2, 1],\n[\n\t[\n\t\t[4],\n\t\t[4]\n\t],\n\t[\n\t\t[4,3]\n\t],\n\t[\n\t\t[3,3,3],\n\t\t[2],\n\t\t[NULL, 3, 2]\n\t]\n])[1]","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":100,"query_location_length":3,"children":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":93,"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":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":12,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":15,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"query_location_length":77,"function_name":"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":25,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":45,"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":67,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":69,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":82,"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":83,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":92,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 map_values(MAP(['a', 'b', 'c', 'd', 'e'], [NULL, 0, 1, NULL, 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":65,"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":53,"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":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":23,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"c"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"d"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"e"}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"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":50,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 map_keys(m) = input, map_values(m) = input from (\n\tselect\n\t\tmap(input, input) m,\n\t\tinput\n\tfrom input() t(input)\n) m;","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":11,"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":16,"query_location_length":1,"column_names":["m"]}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":5,"column_names":["input"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":28,"query_location_length":21,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"query_location_length":13,"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":39,"query_location_length":1,"column_names":["m"]}}]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":44,"query_location_length":5,"column_names":["input"]}}],"from_table":{"type":"SUBQUERY","alias":"m","sample":null,"query_location":55,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"m","query_location":67,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":71,"query_location_length":5,"column_names":["input"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":78,"query_location_length":5,"column_names":["input"]}}]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":90,"query_location_length":5,"column_names":["input"]}],"from_table":{"type":"TABLE_FUNCTION","alias":"t","sample":null,"query_location":102,"query_location_length":16,"function":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":18446744073709551615,"query_location_length":0,"function_name":"input","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"column_name_alias":["input"],"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 TYPEOF(MAP_EXTRACT(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":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":14,"query_location_length":41,"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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":19,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":26,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":17,"catalog":"","schema":"","type_name":"MAP","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":4,"catalog":"","schema":"","type_name":"TEXT","children":[]},{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 min(i), max(i), first(i) from struct_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"]}}]},{"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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":23,"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":29,"query_location_length":1,"column_names":["i"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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 * FROM t2 where id\u003e=4 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":38,"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":2,"schema_name":"","table_name":"t2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t2"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":23,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":23,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT e, STRUCT_EXTRACT(STRUCT_PACK(xx := e, yy := g), 'xx') as s FROM struct_data WHERE e 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":["e"]},{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":10,"query_location_length":51,"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":25,"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":43,"query_location_length":1,"column_names":["e"]}},{"name":"yy","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"yy","query_location":52,"query_location_length":1,"column_names":["g"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"xx"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":72,"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":{"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":["e"]}]},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT STRUCT_EXTRACT(e, 'e') 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":22,"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":["e"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"e"}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":35,"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(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":"struct_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":19,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 struct_values(col) FROM filtered_struct_values WHERE idx % 2 != 0 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":82,"query_location_length":3,"column_names":["idx"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":18,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":21,"query_location_length":3,"column_names":["col"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":31,"query_location_length":22,"schema_name":"","table_name":"filtered_struct_values","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["filtered_struct_values"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_NOTEQUAL","alias":"","query_location":60,"query_location_length":12,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":60,"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":60,"query_location_length":3,"column_names":["idx"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":11,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":true}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":1}},"is_null":false,"value":105}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::UINTEGER FROM hugeints 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":53,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false}],"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":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":39,"query_location_length":4,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT i::BIGINT 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"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(3,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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"HUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":49,"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 UTINYINT)::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":63,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":9,"child":{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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 i::BOOL 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":38,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":4,"catalog":"","schema":"","type_name":"BOOL","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":20,"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(i AS DECIMAL(18,9))::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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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 TRY_CAST(i AS UINTEGER)::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":65,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":10,"child":{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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(s AS SMALLINT) 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":true}],"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 * FROM numerics","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"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 TRY_CAST(i AS UINTEGER) 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":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":23,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"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(3,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":55,"query_location_length":1,"column_names":["i"]}}]}],"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":8,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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 typeof(1::UBIGINT + 1::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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 SMALLINT) 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":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":23,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":true}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":36,"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(3,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":55,"query_location_length":1,"column_names":["i"]}}]}],"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":8,"query_location_length":14,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"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::BIGINT FROM uhugeints","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":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"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(i AS UBIGINT) 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":true}],"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 TRY_CAST(i AS DECIMAL(9,0))::UHUGEINT 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":69,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":10,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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::INTEGER 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"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(18,0)::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":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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":18}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":39,"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::TINYINT 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":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":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":1,"column_names":["i"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":23,"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 TRY_CAST(s AS USMALLINT) 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":24,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":16,"query_location_length":1,"column_names":["s"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":true}],"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 i::USMALLINT 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":44,"query_location_length":1,"column_names":["i"]}}]}],"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":25,"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::VARCHAR 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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"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 TRY_CAST(i AS DECIMAL(9,7))::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":69,"query_location_length":1,"column_names":["i"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":34,"query_location_length":10,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":7}}]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":50,"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 cast (null as what.u array);","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":13,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":"what","type_name":"u","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(), 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":5,"function_name":"row","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},{"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":[]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, t2.i, t1.s FROM t t1 JOIN t t2 USING (s) WHERE t1.s IS NOT NULL AND t1.i \u003c t2.i 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":102,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":105,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":4,"column_names":["t2","i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":19,"query_location_length":4,"column_names":["t1","s"]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":34,"query_location_length":19,"left":{"type":"BASE_TABLE","alias":"t1","sample":null,"query_location":29,"query_location_length":4,"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":39,"query_location_length":4,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"condition":null,"join_type":"INNER","ref_type":"REGULAR","using_columns":["s"],"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":60,"query_location_length":32,"children":[{"class":"OPERATOR","type":"OPERATOR_IS_NOT_NULL","alias":"","query_location":65,"query_location_length":11,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":4,"column_names":["t1","s"]}]},{"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":4,"column_names":["t1","i"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":88,"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 ((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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":14,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"v2","query_location":59,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"j"}}},{"name":"v2","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v2","query_location":83,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 remap_struct(\n\t[\n\t\t{\n\t\t\t'i': 1,\n\t\t\t'j': {\n\t\t\t\t'x': 42,\n\t\t\t\t'z': 100\n\t\t\t}\n\t\t}\n\t], -- data\n\tNULL::STRUCT(\n\t\tv1 INT,\n\t\tv2 STRUCT(\n\t\t\tx INT,\n\t\t\ty INT,\n\t\t\tz INT\n\t\t),\n\t\tv3 VARCHAR\n\t)[], -- target type\n\t{\n\t\t'list': ROW(\n\t\t\t'list', {\n\t\t\t\t'v1': 'i',\n\t\t\t\t'v2': ROW(\n\t\t\t\t\t'j', {\n\t\t\t\t\t\t'x': 'x',\n\t\t\t\t\t\t'z': 'z'\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t}\n\t\t)\n\t}, -- remapping data -\u003e target_type\n\t{\n\t\t'list': {\n\t\t\t'v2': {\n\t\t\t\t'y': NULL::INT\n\t\t\t},\n\t\t\t'v3': NULL::VARCHAR\n\t\t}\n\t}\n); -- defaults","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":440,"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":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":26,"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":"i","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"i","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"j","query_location":47,"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":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":58,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"z","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"z","query_location":71,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}}]}}]}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":84,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":97,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":103,"query_location_length":80,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"v1","query_location":116,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"v2","query_location":126,"query_location_length":40,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"x","query_location":139,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"y","query_location":149,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"z","query_location":159,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]},{"class":"TYPE","type":"TYPE","alias":"v3","query_location":173,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":203,"query_location_length":127,"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":215,"query_location_length":112,"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":223,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"list"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":231,"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":"v1","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"v1","query_location":243,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}},{"name":"v2","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"v2","query_location":258,"query_location_length":60,"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":268,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"j"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":273,"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":286,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}},{"name":"z","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"z","query_location":302,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"z"}}}]}}]}}]}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":366,"query_location_length":79,"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":378,"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":"v2","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"v2","query_location":389,"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":"y","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"y","query_location":404,"query_location_length":5,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":400,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":406,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}}]}},{"name":"v3","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"v3","query_location":429,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":425,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":431,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(\n\t{'people': [ {'first_name': 'Alice', 'age': 43}, {'first_name': 'Bob', 'age': 35} ]},\n\tNULL::STRUCT(people STRUCT(age INTEGER, given_name VARCHAR)[]),\n\t{ 'people': ROW('people', { 'list': ROW('array', { '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":275,"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":84,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"people","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"people","query_location":33,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":35,"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":50,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Alice"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":66,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":43}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":71,"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":"first_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"first_name","query_location":86,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"Bob"}}},{"name":"age","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"age","query_location":100,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":35}}}]}}]}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":113,"query_location_length":58,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":109,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":115,"query_location_length":56,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"people","query_location":18446744073709551615,"query_location_length":0,"catalog":"","schema":"","type_name":"list","children":[{"class":"TYPE","type":"TYPE","alias":"","query_location":129,"query_location_length":39,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"age","query_location":140,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"given_name","query_location":160,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":174,"query_location_length":99,"function_name":"struct_pack","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"people","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"people","query_location":186,"query_location_length":85,"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":190,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"people"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":200,"query_location_length":70,"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":210,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":214,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"array"}}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":223,"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":232,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"age"}}},{"name":"given_name","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"given_name","query_location":253,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"first_name"}}}]}}]}}]}}]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":276,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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, CASE WHEN i%2=0 THEN {'i': [1,2,3]} ELSE NULL 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":49,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":"i","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"i","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}}]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":51,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":65,"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":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]},"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': 1, 'j': 2}::ROW(i BIGINT, j 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":26,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"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":13,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":31,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"j","query_location":41,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(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":11,"query_location_length":43,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":41,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":19,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"j","query_location":29,"query_location_length":24,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"a","query_location":35,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_LESSTHAN","alias":"","query_location":7,"query_location_length":15,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 \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":15,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l \u003c\u003e r FROM struct_int","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":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'} = {'x': '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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 {'x': '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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 \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":28,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 {'x': 'duck', 'y': 1} \u003c\u003e {'x': 'duck', 'y': 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":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":51,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 l \u003c r FROM struct_str_int","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":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":"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 \u003c= {'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_LESSTHANOREQUALTO","alias":"","query_location":7,"query_location_length":46,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":29,"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":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":48,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_GREATERTHANOREQUALTO","alias":"","query_location":7,"query_location_length":46,"left":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":15,"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":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","query_location":29,"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":35,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":48,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":15}}}]}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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_LESSTHAN","alias":"","query_location":7,"query_location_length":63,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},"named_param_map":[]}]}} +{"sql":"SELECT {'x': 1, 'y': ['duck', 'somateria']} \u003c\u003e {'x': 2, 'y': ['goose']}","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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},"named_param_map":[]}]}} +{"sql":"SELECT l \u003c r FROM list_in_struct","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":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_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({'a': 1}, {'b': NULL}, NULL::STRUCT(k INT), struct_pack( x := 'foobar'));;","json":{"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":"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":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":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":31,"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":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":48,"query_location_length":15,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":13,"catalog":"","schema":"","type_name":"STRUCT","children":[{"class":"TYPE","type":"TYPE","alias":"k","query_location":59,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"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":"x","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":83,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foobar"}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, 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":32,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 struct_contains(ROW(c0, c1, c2), 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":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":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":27,"query_location_length":2,"column_names":["c0"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["c1"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":35,"query_location_length":2,"column_names":["c2"]}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":40,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"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 struct_contains(ROW(MAP([1], [2])), 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":50,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":27,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}]}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 x, y, ARRAY_CONCAT(x, y) 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":["x"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"query_location_length":1,"column_names":["y"]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":13,"query_location_length":18,"function_name":"array_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":26,"query_location_length":1,"column_names":["x"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":1,"column_names":["y"]}}]}],"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 {'x': 'duck'} 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":35,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":38,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 l IS NOT DISTINCT FROM r FROM struct_str_int","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":24,"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":30,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":37,"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 {'x': 1, 'y': ['duck', 'somateria']} IS NOT DISTINCT FROM {'x': 2, 'y': ['goose']}","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":82,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":65,"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":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"y","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"y","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":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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},"named_param_map":[]}]}} +{"sql":"select unnest(map_entries(histogram(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":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":"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":26,"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":36,"query_location_length":1,"column_names":["i"]}}]}}]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":46,"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 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":53,"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_LESSTHAN","alias":"","query_location":11,"query_location_length":13,"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":19,"query_location_length":5,"column_names":["value"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":30,"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\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":24,"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_GREATERTHAN","alias":"","query_location":31,"query_location_length":9,"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":36,"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(1.0, 2.0, 3.0, 4.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":43,"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":23,"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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":20}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":30}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":42,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":40}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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_position(ROW(NULL, 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":35,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 struct_position(ROW(ROW(1, 2), ROW(3, 4)), ROW(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":53,"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":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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":38,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}}]}}]}},{"name":"","expression":{"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":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 i.a FROM test_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":3,"column_names":["i","a"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (SELECT tbl2.a['i'] + tbl.b['j'] FROM (VALUES ({'i': 1, 'j': 2})) tbl(b)) FROM (VALUES ({'i': 1, 'j': 2})) tbl2(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":73,"subquery_type":"SCALAR","subquery":{"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":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":21,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":6,"column_names":["tbl2","a"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"i"}}]}},{"name":"","expression":{"class":"OPERATOR","type":"ARRAY_EXTRACT","alias":"","query_location":34,"query_location_length":5,"children":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":29,"query_location_length":5,"column_names":["tbl","b"]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"j"}}]}}]}],"from_table":{"type":"SUBQUERY","alias":"tbl","sample":null,"query_location":45,"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":54,"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":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"where_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":"tbl2","sample":null,"query_location":86,"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":95,"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":101,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"j","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"j","query_location":109,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 typeof(row()), 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":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":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":[]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":22,"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":29,"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":[]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'), row(2, '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":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":14,"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":15,"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":19,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}}]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":28,"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":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 1 from VALUES ([NULL, 6], [5, 6]) t(a, b) where a IS DISTINCT FROM b;","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":14,"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":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":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":33,"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":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}}}]}]]},"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":56,"query_location_length":20,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":75,"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 column_name, column_type FROM (DESCRIBE SELECT unnest([{'a': 12, 'b': {'bb': {'bbb': 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":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":"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":91,"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":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":62,"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":"a","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"a","query_location":68,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}},{"name":"b","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"b","query_location":77,"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":"bb","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"bb","query_location":84,"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":"bbb","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"bbb","query_location":92,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":12}}}]}}]}}]}}]}},{"name":"recursive","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"recursive","query_location":113,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}}},{"name":"keep_parent_names","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"keep_parent_names","query_location":140,"query_location_length":4,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":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},"show_type":"DESCRIBE","catalog_name":"","schema_name":""},"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})","json":{"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":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":20,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}}},{"name":"b","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"b","query_location":29,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":88}}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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([[{'a': 42, 'b': {'x': 99}}, {'a': NULL, 'b': {'x': NULL}}]], max_depth:=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":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":99}}}]}}]}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},{"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}}]}}]}}]}},{"name":"max_depth","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"max_depth","query_location":87,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 UNNEST(s) FROM tbl_structs ORDER BY 1 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":43,"query_location_length":16,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"collation":"NOCASE"}}]}],"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":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":22,"query_location_length":11,"schema_name":"","table_name":"tbl_structs","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl_structs"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select 'abc'::pg_catalog.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":17,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"abc"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":15,"catalog":"","schema":"pg_catalog","type_name":"text","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":" \t"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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, DATE_PART('{part}', tns) p\nFROM times\nWHERE p \u003c\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":3,"column_names":["tns"]},{"class":"FUNCTION","type":"FUNCTION","alias":"p","query_location":12,"query_location_length":24,"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":22,"query_location_length":8,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{part}"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":3,"column_names":["tns"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":44,"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":56,"query_location_length":6,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":56,"query_location_length":1,"column_names":["p"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":61,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (TIMESTAMP_NS '1969-12-31 23:59:59.999999999'::TIME_NS)::VARCHAR t;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"t","query_location":62,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":52,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":8,"query_location_length":44,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1969-12-31 23:59:59.999999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":8,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_NS","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"TIME_NS","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT '16:15:03.123456'::TIME::TIMETZ;","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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":24,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"16:15:03.123456"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\tc0, \n\tc0::TIME AS t,\n\tc0::TIME::TIMETZ AS tz,\nFROM single;","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":2,"column_names":["c0"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"t","query_location":17,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":15,"query_location_length":2,"column_names":["c0"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"tz","query_location":39,"query_location_length":8,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":33,"query_location_length":6,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["c0"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":6,"catalog":"","schema":"","type_name":"TIMETZ","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":60,"query_location_length":6,"schema_name":"","table_name":"single","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["single"]}},"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) hour","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"23:59:59.999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":32,"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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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:70: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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"14:70:04.500"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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:' 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":23,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"11:"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":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 try_cast('23:59:59.999999' 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":35,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":17,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"23:59:59.999999"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":37,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":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 '1900-01-01 03:08:47'::TIMESTAMP::TIMESTAMP_MS;","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":14,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":21,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1900-01-01 03:08:47"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_MS","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(ts), APPROX_COUNT_DISTINCT(tstz), APPROX_COUNT_DISTINCT(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":25,"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":2,"column_names":["ts"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"query_location_length":27,"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":56,"query_location_length":4,"column_names":["tstz"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":63,"query_location_length":25,"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":85,"query_location_length":2,"column_names":["dt"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"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 dt + '12:34:56'::TIME FROM specials","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":["dt"]}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12:34:56"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":24,"query_location_length":4,"catalog":"","schema":"","type_name":"TIME","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":34,"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 timestamp '2017-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":31,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2017-07-23 13:10:11"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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+t FROM timestamp","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":["t"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":9,"query_location_length":1,"column_names":["t"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":16,"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 TIMESTAMP '2008-01-01 00:00:01.5'::VARCHAR","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":9,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2008-01-01 00:00:01.5"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::TIMESTAMP, milli::TIMESTAMP,sec::TIMESTAMP 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":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["nano"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":24,"query_location_length":5,"column_names":["milli"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":44,"query_location_length":11,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":3,"column_names":["sec"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":61,"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 nano from timestamp order by nano;","json":{"error":false,"statements":[{"node":{"type":"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":4,"column_names":["nano"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":7,"query_location_length":4,"column_names":["nano"]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":17,"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.1'::TIMESTAMP_US = '2008-01-01 00:00:11.1'::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":76,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":30,"query_location_length":14,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2008-01-01 00:00:11.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":12,"catalog":"","schema":"","type_name":"TIMESTAMP_US","children":[]}}},"try_cast":false},"right":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":70,"query_location_length":13,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":23,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2008-01-01 00:00:11.1"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":72,"query_location_length":11,"catalog":"","schema":"","type_name":"TIMESTAMP_S","children":[]}}},"try_cast":false}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 '1970-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":22,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1970-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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) microsecond","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10 04:00:54.775806"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":50,"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":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"BIGINT","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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(microseconds FROM sec), EXTRACT(microseconds FROM msec), EXTRACT(microseconds FROM micros), EXTRACT(microseconds FROM nanos) FROM ts_precision","json":{"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_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":33,"query_location_length":3,"column_names":["sec"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":65,"query_location_length":4,"column_names":["msec"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":72,"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":80,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":98,"query_location_length":6,"column_names":["micros"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":107,"query_location_length":32,"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":115,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"MICROSECONDS"}}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":133,"query_location_length":5,"column_names":["nanos"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":145,"query_location_length":12,"schema_name":"","table_name":"ts_precision","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["ts_precision"]}},"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1111-"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"294247-01-10 04:00:54.775807"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":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 timestamptz '2020-12-31 21:25:58.745232+0215';","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":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2020-12-31 21:25:58.745232+0215"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":7,"query_location_length":11,"catalog":"","schema":"","type_name":"timestamptz","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-01-01 00:00:00+00"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":24,"catalog":"","schema":"","type_name":"TIMESTAMP WITH TIME ZONE","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"340282366920938463463374607431768211455"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"340282366920938463463374607431768211455"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":104,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":27,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 // 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":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":48,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"340282366920938463463374607431768211455"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":62,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 '340282366920938463463374607431768211456'::UHUGEINT;","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":41,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"340282366920938463463374607431768211456"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":50,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT 100000000000::UHUGEINT::INTEGER;","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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":100000000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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.4e38'::UHUGEINT","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"3.4e38"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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\u003e '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":[]}],"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_NOTEQUAL","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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1267650600228229401496703205376"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":251658240}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":251658240,"lower":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":59,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":1080863910568919040,"lower":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":251658240,"lower":0}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":88,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"BIGINT","type_info":null},"is_null":false,"value":4611686018427387904}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":1,"lower":18446744073709551615}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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), max(u) FROM tbl1 GROUP BY union_tag(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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"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":25,"query_location_length":1,"column_names":["u"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":33,"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":47,"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":57,"query_location_length":1,"column_names":["u"]}}]}],"group_sets":[[0]],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT u::int FROM tbl1;","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":["u"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":19,"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(u), union_tag(u::UNION(i SMALLINT, b INT)), u::UNION(i SMALLINT, b INT) FROM tbl4 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":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"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":21,"query_location_length":38,"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":32,"query_location_length":26,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":1,"column_names":["u"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":24,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":42,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":54,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}}]},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":62,"query_location_length":26,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":61,"query_location_length":1,"column_names":["u"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":64,"query_location_length":24,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"i","query_location":72,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":84,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":94,"query_location_length":4,"schema_name":"","table_name":"tbl4","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["tbl4"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT union_extract(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":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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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 union_extract(u, 'b') 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":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"b"}}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT id FROM tbl1 WHERE a = union_value(str :='foo')","json":{"error":false,"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":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":26,"query_location_length":28,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":26,"query_location_length":1,"column_names":["a"]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":30,"query_location_length":24,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"str","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"str","query_location":48,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"foo"}}}]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"WITH t(id, l, r) AS (\n\tVALUES\n\t\t(0,\n\t\t\t[union_value(num := 1)::UNION(num INT, str VARCHAR), union_value(num := 2)::UNION(num INT, str VARCHAR)]::UNION(num INT, str VARCHAR)[],\n\t\t\t[union_value(num := 1)::UNION(num INT, str VARCHAR), union_value(num := 2)::UNION(num INT, str VARCHAR)]::UNION(num INT, str VARCHAR)[]),\n\t\t(1,\n\t\t\t[union_value(str := 'x')::UNION(num INT, str VARCHAR)]::UNION(num INT, str VARCHAR)[],\n\t\t\t[union_value(str := 'x')::UNION(num INT, str VARCHAR)]::UNION(num INT, str VARCHAR)[])\n)\nSELECT id, l = r, l IS NOT DISTINCT FROM r 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":564,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[{"key":"t","value":{"aliases":["id","l","r"],"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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":143,"query_location_length":31,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":39,"query_location_length":104,"function_name":"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":61,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":40,"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":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":63,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":73,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":82,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":113,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":92,"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":111,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":115,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":125,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":134,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":145,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":155,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":164,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":283,"query_location_length":31,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":179,"query_location_length":104,"function_name":"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":201,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":180,"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":199,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":203,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":213,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":222,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":253,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":232,"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":251,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":255,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":265,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":274,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":285,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":295,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":304,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":320,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":380,"query_location_length":31,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":326,"query_location_length":54,"function_name":"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":350,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":327,"query_location_length":23,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"str","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"str","query_location":346,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":352,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":362,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":371,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":382,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":392,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":401,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":470,"query_location_length":31,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":416,"query_location_length":54,"function_name":"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":440,"query_location_length":29,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":417,"query_location_length":23,"function_name":"union_value","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[{"name":"str","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"str","query_location":436,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"x"}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":442,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":452,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":461,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":472,"query_location_length":27,"catalog":"","schema":"","type_name":"UNION","children":[{"class":"TYPE","type":"TYPE","alias":"num","query_location":482,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]},{"class":"TYPE","type":"TYPE","alias":"str","query_location":491,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}]}}},"try_cast":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":512,"query_location_length":2,"column_names":["id"]},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":516,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":516,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":520,"query_location_length":1,"column_names":["r"]}},{"class":"COMPARISON","type":"COMPARE_NOT_DISTINCT_FROM","alias":"","query_location":523,"query_location_length":24,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":523,"query_location_length":1,"column_names":["l"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":546,"query_location_length":1,"column_names":["r"]}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":553,"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 u 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":["u"]}],"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 u from tbl3 where u = 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":["u"]}],"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":{"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":1,"column_names":["u"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (18446744073709551615)::UBIGINT * (3)::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":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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":29,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":20,"value":{"type":{"id":"HUGEINT","type_info":null},"is_null":false,"value":{"upper":0,"lower":18446744073709551615}}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":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":42,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":46,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::USMALLINT","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100000000}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":18,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":31,"query_location_length":11,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":28,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":33,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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;","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":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"255"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::USMALLINT)::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":23,"query_location_length":14,"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":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":12,"catalog":"","schema":"","type_name":"DECIMAL","children":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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'::UBIGINT, '130'::UBIGINT, '18446744073709551615'::UBIGINT","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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":7,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"7"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":26,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":21,"query_location_length":5,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"130"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":28,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":59,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":22,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"18446744073709551615"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":61,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::UINTEGER, 42::SMALLINT::UINTEGER, 42::INTEGER::UINTEGER, 42::BIGINT::UINTEGER, 42::FLOAT::UINTEGER, 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":18,"query_location_length":10,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":20,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":42,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":32,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":34,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":44,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":65,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":56,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":58,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":67,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":87,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":79,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":77,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":89,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":108,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":7,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":5,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":110,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":130,"query_location_length":10,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":122,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":120,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":124,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::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":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":19,"query_location_length":10,"child":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"TINYINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::BIGINT::UBIGINT","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":12,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":14,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":7,"catalog":"","schema":"","type_name":"UBIGINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::UTINYINT::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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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)::UINTEGER::SMALLINT","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":11,"query_location_length":10,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":8,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":8,"catalog":"","schema":"","type_name":"UINTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":23,"query_location_length":8,"catalog":"","schema":"","type_name":"SMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (260.32)::DECIMAL::UTINYINT","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,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":5,"scale":2}},"is_null":false,"value":26032}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":17,"query_location_length":7,"catalog":"","schema":"","type_name":"DECIMAL","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":26,"query_location_length":8,"catalog":"","schema":"","type_name":"UTINYINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT (65536.32)::REAL::USMALLINT","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":8,"query_location_length":8,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":7,"scale":2}},"is_null":false,"value":6553632}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":19,"query_location_length":4,"catalog":"","schema":"","type_name":"FLOAT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":25,"query_location_length":9,"catalog":"","schema":"","type_name":"USMALLINT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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::BLOB as uuid) as test;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CAST","type":"OPERATOR_CAST","alias":"test","query_location":7,"query_location_length":28,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":20,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":16,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":22,"query_location_length":4,"catalog":"","schema":"","type_name":"BLOB","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":4,"catalog":"","schema":"","type_name":"uuid","children":[]}}},"try_cast":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 try_cast(try_cast('12345678-1234-5678-1234-567812345678'::UUID AS UHUGEINT) as uuid);","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":84,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":16,"query_location_length":66,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":25,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"12345678-1234-5678-1234-567812345678"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":4,"catalog":"","schema":"","type_name":"UUID","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":8,"catalog":"","schema":"","type_name":"UHUGEINT","children":[]}}},"try_cast":true},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":86,"query_location_length":4,"catalog":"","schema":"","type_name":"uuid","children":[]}}},"try_cast":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 '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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2019/03/21"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":21,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":41,"query_location_length":9,"catalog":"","schema":"","type_name":"TIMESTAMP","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":42}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":33,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]},{"class":"TYPE","type":"TYPE","alias":"c","query_location":44,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"BOOLEAN","type_info":null},"is_null":false,"value":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":89,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]},{"class":"TYPE","type":"TYPE","alias":"c","query_location":100,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":110,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}},{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"test"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"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":[]},{"class":"TYPE","type":"TYPE","alias":"b","query_location":147,"query_location_length":7,"catalog":"","schema":"","type_name":"BOOLEAN","children":[]},{"class":"TYPE","type":"TYPE","alias":"c","query_location":158,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":168,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":180,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"outer"}}}]},{"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":49,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false}],"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{\"outer\":{\"a\":1,\"b\":2,\"a\":3}}"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":100,"query_location_length":4,"catalog":"","schema":"","type_name":"JSON","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":106,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"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"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],"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 try_cast('hello world'::variant as int) + 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":"CAST","type":"OPERATOR_CAST","alias":"","query_location":7,"query_location_length":39,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello world"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":31,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":42,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":true}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 s.shredding_state, s.fully_shredded.type, s.fully_shredded.stats.min, s.fully_shredded.stats.max,\n s.fully_shredded.stats.has_null\nFROM (SELECT stats(n::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":26,"column_names":["s","fully_shredded","stats","min"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":77,"query_location_length":26,"column_names":["s","fully_shredded","stats","max"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":112,"query_location_length":31,"column_names":["s","fully_shredded","stats","has_null"]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":149,"query_location_length":43,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[{"type":"LIMIT_MODIFIER","limit":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":190,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"offset":null,"limit_type":"ROW_COUNT"}],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"s","query_location":157,"query_location_length":17,"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":164,"query_location_length":9,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":163,"query_location_length":1,"column_names":["n"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":166,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"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},"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 obj WHERE (o::VARIANT).a::BIGINT = 9999;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":3,"schema_name":"","table_name":"obj","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["obj"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":29,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":45,"query_location_length":8,"child":{"class":"OPERATOR","type":"STRUCT_EXTRACT","alias":"","query_location":18446744073709551615,"query_location_length":0,"children":[{"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":["o"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":35,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":43,"query_location_length":2,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"a"}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":47,"query_location_length":6,"catalog":"","schema":"","type_name":"BIGINT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":9999}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT [1]::VARIANT 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":33,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":12,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 IS DISTINCT FROM []","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":31,"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":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":11,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"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":[]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 [{'x': 'duck', 'y': 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":77,"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":27,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":32,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":61,"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":62,"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":68,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 NULL::VARIANT 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":48,"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,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":13,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":42,"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":48,"query_location_length":6,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_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 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":52,"left":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":28,"query_location_length":9,"child":{"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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"y","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"y","query_location":26,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":30,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 {'x': 1, 'y': ['duck', 'somateria']}::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":71,"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"duck"}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":30,"query_location_length":11,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"somateria"}}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":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 single_update WHERE v = '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":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":13,"schema_name":"","table_name":"single_update","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["single_update"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":41,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":1,"column_names":["v"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":45,"query_location_length":7,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"hello"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM scatter_test WHERE c = '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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":12,"schema_name":"","table_name":"scatter_test","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["scatter_test"]}},"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":1,"column_names":["c"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"UPDATED"}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM t1","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":"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 name FROM student WHERE id = 245780","json":{"error":false,"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":7,"schema_name":"","table_name":"student","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["student"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":31,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":31,"query_location_length":2,"column_names":["id"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":6,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":245780}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT count(*) FROM t_self;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":8,"function_name":"count_star","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":21,"query_location_length":6,"schema_name":"","table_name":"t_self","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_self"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select * from t_offset;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"STAR","type":"STAR","alias":"","query_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":"t_offset","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t_offset"]}},"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 FROM tbl 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"]},{"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"]}],"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":5,"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":34,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"FROM foo;","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":"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 $x, $greeting","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"PARAMETER","type":"VALUE_PARAMETER","alias":"","query_location":7,"query_location_length":2,"identifier":"x"},{"class":"PARAMETER","type":"VALUE_PARAMETER","alias":"","query_location":11,"query_location_length":9,"identifier":"greeting"}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_location_length":0},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[{"key":"greeting","value":2},{"key":"x","value":1}]}]}} +{"sql":"SELECT v::INT FROM (VALUES (-123), (5), (-1), (100), (0)) t(v)\nORDER BY v::INT::VARIANT DESC","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[{"type":"ORDER_MODIFIER","orders":[{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":78,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":73,"query_location_length":5,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":72,"query_location_length":1,"column_names":["v"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":75,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":80,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}],"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":["v"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":10,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":19,"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":28,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-123}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":36,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":47,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":100}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 variant_comparator(1::INTEGER::VARIANT) = variant_comparator(1.0::DOUBLE::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":82,"left":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":7,"query_location_length":39,"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":36,"query_location_length":9,"child":{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":29,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":38,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]},"right":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":49,"query_location_length":40,"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":79,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":71,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":10}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":73,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":81,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}}]}}],"from_table":{"type":"EMPTY","alias":"","sample":null,"query_location":18446744073709551615,"query_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 variants(v) AS (VALUES\n (1::INTEGER::VARIANT),\n (255::INTEGER::VARIANT),\n (256::INTEGER::VARIANT)\n)\nSELECT\n finalize(min(v) EXPORT_STATE)::VARCHAR,\n finalize(max(v) EXPORT_STATE)::VARCHAR\nFROM variants","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"variants","value":{"aliases":["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":"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":33,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":36,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":45,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":72,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":63,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":255}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":65,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":74,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":false}],[{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":101,"query_location_length":9,"child":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":92,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":3,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":256}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":94,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":103,"query_location_length":7,"catalog":"","schema":"","type_name":"VARIANT","children":[]}}},"try_cast":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":154,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":125,"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":134,"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":138,"query_location_length":1,"column_names":["v"]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":156,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":198,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":169,"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":178,"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":182,"query_location_length":1,"column_names":["v"]}}]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":200,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":213,"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 depname, COVAR_POP(salary, empno) OVER (PARTITION BY depname ORDER BY salary, empno) c 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":118,"query_location_length":7,"column_names":["depname"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":127,"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":7,"column_names":["depname"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":16,"query_location_length":75,"function_name":"covar_pop","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"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":77,"query_location_length":6,"column_names":["salary"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":85,"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":26,"query_location_length":6,"column_names":["salary"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":5,"column_names":["empno"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":99,"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 COUNT(*) OVER (\n ORDER BY id ROWS BETWEEN off PRECEDING AND CURRENT ROW\n)\nFROM (VALUES (1, NULL::INTEGER)) 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":[]}],"from_table":{"type":"SUBQUERY","alias":"src","sample":null,"query_location":87,"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":96,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":103,"query_location_length":9,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":99,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":105,"query_location_length":7,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":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","off"]},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT\n\tSUM(v) OVER (PARTITION BY a, a) AS w_aa,\n\tSUM(v) OVER (PARTITION BY a, b) AS w_ab\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":108,"query_location_length":1,"column_names":["b"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"w_aa","query_location":8,"query_location_length":31,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":34,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":37,"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"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"w_ab","query_location":50,"query_location_length":31,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":76,"query_location_length":1,"column_names":["a"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"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":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":95,"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, bitstring_agg(id, 1, 3) 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":129,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":99,"function_name":"bitstring_agg","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":54,"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":66,"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":82,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":25,"query_location_length":2,"column_names":["id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":29,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":117,"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 null_chunk as (\n\tselect \n\t\t1 as p, \n\t\ts,\n\t\tNULL::DOUBLE as v,\n\tfrom range(2050) tbl(s)\n\tunion all\n\tselect\n\t\t2 as p, \n\t\ts,\n\t\ts::DOUBLE as v,\n\tfrom range(16) tbl(s)\n)\nselect \n\tp, \n\ts, \n\tfill(v order by -s) over(partition by p order by s) as f,\nfrom null_chunk","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[{"key":"null_chunk","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":"p","query_location":32,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":43,"query_location_length":1,"column_names":["s"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":52,"query_location_length":8,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":48,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":54,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":73,"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":79,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2050}}}]},"column_name_alias":["s"],"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":"p","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":124,"query_location_length":1,"column_names":["s"]},{"class":"CAST","type":"OPERATOR_CAST","alias":"v","query_location":130,"query_location_length":8,"child":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":129,"query_location_length":1,"column_names":["s"]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":132,"query_location_length":6,"catalog":"","schema":"","type_name":"DOUBLE","children":[]}}},"try_cast":false}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":151,"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":157,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":16}}}]},"column_name_alias":["s"],"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":179,"query_location_length":1,"column_names":["p"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":184,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_FILL","alias":"f","query_location":189,"query_location_length":51,"function_name":"fill","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":227,"query_location_length":1,"column_names":["p"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":238,"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":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":205,"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":206,"query_location_length":1,"column_names":["s"]}}]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":194,"query_location_length":1,"column_names":["v"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":252,"query_location_length":10,"schema_name":"","table_name":"null_chunk","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["null_chunk"]}},"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 LAG(order_id, 1, -1 IGNORE NULLS) over (\n PARTITION BY user_id\n ORDER BY id\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_LAG","alias":"last_order_id","query_location":38,"query_location_length":85,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"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":117,"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":42,"query_location_length":8,"column_names":["order_id"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":52,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":55,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":146,"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 LIST(salary ORDER BY enroll_date, salary) OVER (PARTITION BY depname) FROM empsalary\nORDER BY ALL 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":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":"","query_location":7,"query_location_length":69,"function_name":"list","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":68,"query_location_length":7,"column_names":["depname"]}],"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":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":28,"query_location_length":11,"column_names":["enroll_date"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":41,"query_location_length":6,"column_names":["salary"]}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":6,"column_names":["salary"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":82,"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\tc1,\n c3,\n c2,\n LAG(c3, c2 ORDER BY c1, BITSTRING'010101010') OVER (PARTITION BY c1 ORDER BY c3)\nFROM issue17266\nORDER BY 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":150,"query_location_length":2,"column_names":["c1"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":8,"query_location_length":2,"column_names":["c1"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":20,"query_location_length":2,"column_names":["c3"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":32,"query_location_length":2,"column_names":["c2"]},{"class":"WINDOW","type":"WINDOW_LAG","alias":"","query_location":44,"query_location_length":80,"function_name":"lag","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":109,"query_location_length":2,"column_names":["c1"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":121,"query_location_length":2,"column_names":["c3"]}}],"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":64,"query_location_length":2,"column_names":["c1"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":68,"query_location_length":20,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18446744073709551615,"query_location_length":0,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"010101010"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":68,"query_location_length":9,"catalog":"","schema":"","type_name":"BITSTRING","children":[]}}},"try_cast":false}}],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":48,"query_location_length":2,"column_names":["c3"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":52,"query_location_length":2,"column_names":["c2"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":130,"query_location_length":10,"schema_name":"","table_name":"issue17266","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["issue17266"]}},"where_clause":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT r, n, mad(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 mads) 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":165,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":65,"function_name":"mad","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":1,"column_names":["r"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":66,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":17,"query_location_length":1,"column_names":["n"]}}]}],"from_table":{"type":"SUBQUERY","alias":"nulls","sample":null,"query_location":84,"query_location_length":65,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":92,"query_location_length":1,"column_names":["r"]},{"class":"CASE","type":"CASE_EXPR","alias":"n","query_location":95,"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":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":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"then_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":118,"query_location_length":1,"column_names":["r"]}}],"else_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":144,"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":[]},"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,avg(x) OVER (PARTITION BY y) AS plain_window\n\t,avg(x) FILTER (WHERE x = 1) OVER (PARTITION BY y) AS x_filtered_window\n\t,avg(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":236,"query_location_length":1,"column_names":["y"]}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":239,"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":28,"function_name":"avg","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"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":25,"query_location_length":1,"column_names":["x"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"x_filtered_window","query_location":68,"query_location_length":49,"function_name":"avg","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":115,"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":89,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":89,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":93,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":72,"query_location_length":1,"column_names":["x"]}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"z_filtered_window","query_location":141,"query_location_length":49,"function_name":"avg","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":188,"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":162,"query_location_length":5,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":162,"query_location_length":1,"column_names":["z"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":166,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":145,"query_location_length":1,"column_names":["x"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":217,"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 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":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":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":51,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":-1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":87,"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, NULL) 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":178,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":181,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":126,"function_name":"nth_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":69,"query_location_length":7,"column_names":["depname"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":86,"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":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":159,"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(1) 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"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 r, quantile(r, 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":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":75,"function_name":"quantile","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":["r"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":57,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":73,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":19,"query_location_length":1,"column_names":["r"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":22,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":91,"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, NULL, 1, 2),\n\t(1, 1, 1, 2),\n\t(2, 2, 1, 2),\n\t(3, 3, 1, 2),\n\t(4, 4, 1, 2),\n\t(5, 5, 1, 2)\n)\nSELECT r, QUANTILE_DISC(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":245,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":41,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":44,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":50,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":56,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":68,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":71,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":74,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":80,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":83,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":86,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":89,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":98,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":101,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":104,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":110,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":113,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":131,"query_location_length":1,"column_names":["r"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":134,"query_location_length":94,"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":185,"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":200,"query_location_length":1,"column_names":["p"]},"end_expr":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":216,"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":148,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":151,"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":152,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":25}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":158,"query_location_length":3,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":2,"scale":1}},"is_null":false,"value":5}}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":163,"query_location_length":4,"value":{"type":{"id":"DECIMAL","type_info":{"type":"DECIMAL_TYPE_INFO","alias":"","extension_info":null,"width":3,"scale":2}},"is_null":false,"value":75}}}]}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT \n\ti,\n\t(i * 29) % 11 AS outside,\n\trank(ORDER BY (i // 2) DESC) OVER w,\n\tpercent_rank(ORDER BY (i // 2) DESC) OVER w,\nFROM range(10) tbl(i)\nWINDOW w AS (\n\tORDER BY (i * 29) % 11\n)\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":194,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"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":"outside","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":"FUNCTION","type":"FUNCTION","alias":"","query_location":14,"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":14,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":18,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":24,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]},{"class":"WINDOW","type":"WINDOW_RANK","alias":"","query_location":40,"query_location_length":35,"function_name":"rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":169,"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":170,"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":170,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}}],"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":55,"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":55,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":60,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}],"has_ignore_nulls":false,"arguments":[]},{"class":"WINDOW","type":"WINDOW_PERCENT_RANK","alias":"","query_location":78,"query_location_length":43,"function_name":"percent_rank","schema":"","catalog":"","partitions":[],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":169,"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":170,"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":170,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":174,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":29}}}]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":180,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":11}}}]}}],"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":101,"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":101,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":106,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}}],"has_ignore_nulls":false,"arguments":[]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":128,"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":134,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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, LAG(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_LAG","alias":"i1","query_location":10,"query_location_length":16,"function_name":"lag","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":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":17,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":38,"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":44,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}}]},"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 nth_value(i, 2) over (ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) \nfrom range(5) tbl(i)","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":71,"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":17,"query_location_length":1,"column_names":["i"]}},{"name":"","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":20,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]}],"from_table":{"type":"TABLE_FUNCTION","alias":"tbl","sample":null,"query_location":85,"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":91,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]},"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, SUM(i) OVER(ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) 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":1,"column_names":["i"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":10,"query_location_length":61,"function_name":"sum","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":14,"query_location_length":1,"column_names":["i"]}}]}],"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":null,"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"SELECT s,\n\tlast(s IGNORE NULLS) over(ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)\nFROM (VALUES ('A'), (NULL), ('B'), (NULL)) t(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":"WINDOW","type":"WINDOW_LAST_VALUE","alias":"","query_location":11,"query_location_length":75,"function_name":"last_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":16,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":92,"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":101,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"A"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":108,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"B"}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":123,"query_location_length":4,"value":{"type":{"id":"NULL","type_info":null},"is_null":true}}]]},"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 row_number() over ()\n, count(distinct upper_ch1_ch2) over()::int as num_bigrams\n, sum(count_ch1_ch2) over () as bigram_count_all\n, count_ch1_ch2 / bigram_count_all as actual_bigram_frequency\n, ch1.actual_frequency * ch2.actual_frequency as expected_bigram_frequency\nfrom read_csv('{DATA_DIR}/csv/issue_13525/stat_bigrams.csv') as stat_bigrams\ninner join read_csv('{DATA_DIR}/csv/issue_13525/stat_stat_chars.csv') as ch1\non stat_bigrams.ascii_upper_ch1 = ch1.ascii_upper_ch\ninner join read_csv('{DATA_DIR}/csv/issue_13525/stat_stat_chars.csv') as ch2\non stat_bigrams.ascii_upper_ch2 = ch2.ascii_upper_ch;","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_ROW_NUMBER","alias":"","query_location":12,"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":[]},{"class":"CAST","type":"OPERATOR_CAST","alias":"num_bigrams","query_location":81,"query_location_length":5,"child":{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":45,"query_location_length":36,"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":true,"arg_orders":[],"has_ignore_nulls":false,"arguments":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":13,"column_names":["upper_ch1_ch2"]}}]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":83,"query_location_length":3,"catalog":"","schema":"","type_name":"INTEGER","children":[]}}},"try_cast":false},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"bigram_count_all","query_location":115,"query_location_length":26,"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":119,"query_location_length":13,"column_names":["count_ch1_ch2"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"actual_bigram_frequency","query_location":185,"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":185,"query_location_length":13,"column_names":["count_ch1_ch2"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":16,"column_names":["bigram_count_all"]}}]},{"class":"FUNCTION","type":"FUNCTION","alias":"expected_bigram_frequency","query_location":265,"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":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":265,"query_location_length":20,"column_names":["ch1","actual_frequency"]}},{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":288,"query_location_length":20,"column_names":["ch2","actual_frequency"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":566,"query_location_length":139,"left":{"type":"JOIN","alias":"","sample":null,"query_location":425,"query_location_length":140,"left":{"type":"TABLE_FUNCTION","alias":"stat_bigrams","sample":null,"query_location":350,"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":359,"query_location_length":45,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/issue_13525/stat_bigrams.csv"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"right":{"type":"TABLE_FUNCTION","alias":"ch1","sample":null,"query_location":437,"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":446,"query_location_length":48,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/issue_13525/stat_stat_chars.csv"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":515,"query_location_length":50,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":515,"query_location_length":28,"column_names":["stat_bigrams","ascii_upper_ch1"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":547,"query_location_length":18,"column_names":["ch1","ascii_upper_ch"]}},"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":"ch2","sample":null,"query_location":578,"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":587,"query_location_length":48,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"{DATA_DIR}/csv/issue_13525/stat_stat_chars.csv"}}}]},"column_name_alias":[],"with_ordinality":"WITHOUT_ORDINALITY"},"condition":{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":656,"query_location_length":49,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":656,"query_location_length":28,"column_names":["stat_bigrams","ascii_upper_ch2"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":687,"query_location_length":18,"column_names":["ch2","ascii_upper_ch"]}},"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\tSELECT\n\t\tany_value(uuid()::varchar) OVER (PARTITION BY g) AS id_a,\n\t\tany_value(uuid()::varchar) OVER (PARTITION BY g) AS id_b\n\tFROM (VALUES (1),(1),(2),(2)) t(g)\n) WHERE id_a = id_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":[]}],"from_table":{"type":"SUBQUERY","alias":"","sample":null,"query_location":21,"query_location_length":166,"subquery":{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"id_a","query_location":33,"query_location_length":48,"function_name":"any_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":79,"query_location_length":1,"column_names":["g"]}],"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":49,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":43,"query_location_length":6,"function_name":"uuid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":51,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"id_b","query_location":93,"query_location_length":48,"function_name":"any_value","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":139,"query_location_length":1,"column_names":["g"]}],"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":109,"query_location_length":9,"child":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":103,"query_location_length":6,"function_name":"uuid","schema":"","filter":null,"order_bys":{"type":"ORDER_MODIFIER","orders":[]},"distinct":false,"is_operator":false,"export_state":false,"catalog":"","arguments":[]},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":111,"query_location_length":7,"catalog":"","schema":"","type_name":"VARCHAR","children":[]}}},"try_cast":false}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":156,"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":165,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":169,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":173,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":177,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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"]},"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":194,"query_location_length":11,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":194,"query_location_length":4,"column_names":["id_a"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":201,"query_location_length":4,"column_names":["id_b"]}},"group_expressions":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null},"named_param_map":[]}]}} +{"sql":"select i, lag(i) over named_window from (values (1), (2), (3)) as t (i) window named_window as (order by 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_LAG","alias":"","query_location":10,"query_location_length":24,"function_name":"lag","schema":"","catalog":"","partitions":[],"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"]}}],"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":["i"]}}]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":40,"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":49,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":54,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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 \n x, y, \n count(*) over (partition by y order by x), \n count(*) over (w order by x)\nfrom (values (1, 1), (2, 1), (3, 2), (4, 2)) as t (x, y)\nwindow w as (partition by y)\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":189,"query_location_length":1,"column_names":["x"]}}]}],"cte_map":{"map":[]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":10,"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":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":19,"query_location_length":41,"function_name":"count","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":47,"query_location_length":1,"column_names":["y"]}],"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":["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":[]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":65,"query_location_length":28,"function_name":"count","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":177,"query_location_length":1,"column_names":["y"]}],"orders":[{"type":"ORDER_DEFAULT","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":91,"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":[]}],"from_table":{"type":"SUBQUERY","alias":"t","sample":null,"query_location":99,"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":108,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":111,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":116,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":119,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":124,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":3}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":127,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":132,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":135,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":[]}]}} +{"sql":"with table_1 AS (\n SELECT\n 'fb30cf47-6f6b-42ef-dec2-3f984479a2aa'::uuid AS id,\n unnest(generate_series(\n '2024-04-01'::date,\n '2025-03-01'::date,\n interval '1 month'\n )) AS date\n UNION ALL BY NAME\n SELECT\n '7d1cc557-2d45-6900-a1ed-b2c64f5d9200'::uuid AS id,\n unnest(generate_series(\n '2024-02-01'::date,\n '2025-01-01'::date,\n interval '1 month'\n )) AS date\n), table_2 AS (\n SELECT\n 'fb30cf47-6f6b-42ef-dec2-3f984479a2aa'::uuid AS id,\n unnest(generate_series(\n '2024-04-01'::date,\n '2025-03-01'::date,\n interval '1 month'\n )) AS date,\n 1 AS value\n UNION ALL BY NAME\n SELECT\n '7d1cc557-2d45-6900-a1ed-b2c64f5d9200'::uuid AS id,\n unnest(generate_series(\n '2022-12-01'::date,\n '2023-12-01'::date,\n interval '1 month'\n )) AS date,\n 1 AS value\n), output AS (\n SELECT\n table_1.id,\n table_1.date,\n sum(table_2.value) over (\n PARTITION BY table_1.id\n ORDER BY table_1.date ASC\n ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING\n ) AS test_sum,\n FROM table_1\n LEFT JOIN table_2\n ON table_1.id = table_2.id\n AND table_1.date = table_2.date\n)\nSELECT * FROM output\nORDER BY id DESC, date 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":1684,"query_location_length":2,"column_names":["id"]}},{"type":"DESCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1693,"query_location_length":4,"column_names":["date"]}}]}],"cte_map":{"map":[{"key":"table_1","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_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":"CAST","type":"OPERATOR_CAST","alias":"id","query_location":75,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":37,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"fb30cf47-6f6b-42ef-dec2-3f984479a2aa"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":77,"query_location_length":4,"catalog":"","schema":"","type_name":"uuid","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"date","query_location":100,"query_location_length":129,"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":107,"query_location_length":121,"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":148,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":136,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-04-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":150,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":180,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":168,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2025-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":182,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":200,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":209,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 month"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":"id","query_location":362,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":324,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"7d1cc557-2d45-6900-a1ed-b2c64f5d9200"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":364,"query_location_length":4,"catalog":"","schema":"","type_name":"uuid","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"date","query_location":387,"query_location_length":129,"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":394,"query_location_length":121,"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":435,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":423,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-02-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":437,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":467,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":455,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2025-01-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":469,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":487,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":496,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 month"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}}]}],"from_table":{"type":"EMPTY","alias":"","sample":null,"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":"table_2","value":{"aliases":[],"materialized":"CTE_MATERIALIZE_DEFAULT","key_targets":[],"payload_aggregates":[],"query_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":"CAST","type":"OPERATOR_CAST","alias":"id","query_location":643,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":605,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"fb30cf47-6f6b-42ef-dec2-3f984479a2aa"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":645,"query_location_length":4,"catalog":"","schema":"","type_name":"uuid","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"date","query_location":668,"query_location_length":129,"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":675,"query_location_length":121,"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":716,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":704,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2024-04-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":718,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":748,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":736,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2025-03-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":750,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":768,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":777,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 month"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"value","query_location":860,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"id","query_location":996,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":958,"query_location_length":38,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"7d1cc557-2d45-6900-a1ed-b2c64f5d9200"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":998,"query_location_length":4,"catalog":"","schema":"","type_name":"uuid","children":[]}}},"try_cast":false},{"class":"FUNCTION","type":"FUNCTION","alias":"date","query_location":1021,"query_location_length":129,"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":1028,"query_location_length":121,"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":1069,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1057,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2022-12-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1071,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1101,"query_location_length":6,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1089,"query_location_length":12,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"2023-12-01"}},"cast_type":{"id":"UNBOUND","type_info":{"type":"UNBOUND_TYPE_INFO","alias":"","extension_info":null,"expr":{"class":"TYPE","type":"TYPE","alias":"","query_location":1103,"query_location_length":4,"catalog":"","schema":"","type_name":"date","children":[]}}},"try_cast":false}},{"name":"","expression":{"class":"CAST","type":"OPERATOR_CAST","alias":"","query_location":1121,"query_location_length":18,"child":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":1130,"query_location_length":9,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"1 month"}},"cast_type":{"id":"INTERVAL","type_info":null},"try_cast":false}}]}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"value","query_location":1213,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}]}}},{"key":"output","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":1304,"query_location_length":10,"column_names":["table_1","id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1324,"query_location_length":12,"column_names":["table_1","date"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"test_sum","query_location":1346,"query_location_length":178,"function_name":"sum","schema":"","catalog":"","partitions":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1397,"query_location_length":10,"column_names":["table_1","id"]}],"orders":[{"type":"ASCENDING","null_order":"ORDER_DEFAULT","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1429,"query_location_length":12,"column_names":["table_1","date"]}}],"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":1350,"query_location_length":13,"column_names":["table_2","value"]}}]}],"from_table":{"type":"JOIN","alias":"","sample":null,"query_location":1559,"query_location_length":92,"left":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":1547,"query_location_length":7,"schema_name":"","table_name":"table_1","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table_1"]}},"right":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":1569,"query_location_length":7,"schema_name":"","table_name":"table_2","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["table_2"]}},"condition":{"class":"CONJUNCTION","type":"CONJUNCTION_AND","alias":"","query_location":1588,"query_location_length":63,"children":[{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":1588,"query_location_length":23,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1588,"query_location_length":10,"column_names":["table_1","id"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1601,"query_location_length":10,"column_names":["table_2","id"]}},{"class":"COMPARISON","type":"COMPARE_EQUAL","alias":"","query_location":1624,"query_location_length":27,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1624,"query_location_length":12,"column_names":["table_1","date"]},"right":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":1639,"query_location_length":12,"column_names":["table_2","date"]}}]},"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":"STAR","type":"STAR","alias":"","query_location":1661,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":1668,"query_location_length":6,"schema_name":"","table_name":"output","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["output"]}},"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, COUNT(DISTINCT s) OVER( ORDER BY i, s NULLS LAST ROWS BETWEEN 2 PRECEDING AND 2 FOLLOWING) AS c\nFROM figure1\nORDER BY i, s 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":135,"query_location_length":1,"column_names":["i"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":138,"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":["i"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":12,"query_location_length":1,"column_names":["s"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"c","query_location":17,"query_location_length":90,"function_name":"count","schema":"","catalog":"","partitions":[],"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"]}},{"type":"ORDER_DEFAULT","null_order":"NULLS LAST","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":53,"query_location_length":1,"column_names":["s"]}}],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_FOLLOWING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"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":32,"query_location_length":1,"column_names":["s"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":118,"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":"WITH t AS (SELECT 0 AS x),\nu AS (\n SELECT * FROM t WHERE x \u003e= 5000\n UNION ALL\n SELECT * FROM t\n)\nSELECT x, count() OVER () FROM u ORDER BY x 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":148,"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":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"x","query_location":18,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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}}},{"key":"u","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":"STAR","type":"STAR","alias":"","query_location":45,"query_location_length":1,"relation_name":"","exclude_list":[],"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":1,"schema_name":"","table_name":"t","column_name_alias":[],"catalog_name":"","at_clause":null,"qualified_name":{"path":["t"]}},"where_clause":{"class":"COMPARISON","type":"COMPARE_GREATERTHANOREQUALTO","alias":"","query_location":60,"query_location_length":9,"left":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":60,"query_location_length":1,"column_names":["x"]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":65,"query_location_length":4,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5000}}},"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":95,"query_location_length":1,"relation_name":"","exclude_list":[],"replace_list":[],"columns":false,"expr":null,"qualified_exclude_list":[],"rename_list":[]}],"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":[],"group_sets":[],"aggregate_handling":"STANDARD_HANDLING","having":null,"sample":null,"qualify":null}]}}}]},"select_list":[{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":113,"query_location_length":1,"column_names":["x"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":116,"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":[]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":137,"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":[]}]}} +{"sql":"with src(id, k, x) as (values (1, interval '26' day, 10), (2, interval '30' day, 1))\nselect id, k, sum(x) over (order by k range between interval '4' day preceding and current row)\nfrom src 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":199,"query_location_length":2,"column_names":["id"]}}]}],"cte_map":{"map":[{"key":"src","value":{"aliases":["id","k","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":31,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":34,"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":43,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"26"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":53,"query_location_length":2,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":10}}],[{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":59,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":62,"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":71,"query_location_length":4,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"30"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":false}}]},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":81,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}]]},"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":92,"query_location_length":2,"column_names":["id"]},{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":96,"query_location_length":1,"column_names":["k"]},{"class":"WINDOW","type":"WINDOW_AGGREGATE","alias":"","query_location":99,"query_location_length":81,"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":1,"column_names":["k"]}}],"start":"EXPR_PRECEDING_RANGE","end":"CURRENT_ROW_RANGE","start_expr":{"class":"FUNCTION","type":"FUNCTION","alias":"","query_location":137,"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":146,"query_location_length":3,"value":{"type":{"id":"VARCHAR","type_info":null},"is_null":false,"value":"4"}},"cast_type":{"id":"DOUBLE","type_info":null},"try_cast":false}}]},"cast_type":{"id":"INTEGER","type_info":null},"try_cast":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":[{"name":"","expression":{"class":"COLUMN_REF","type":"COLUMN_REF","alias":"","query_location":103,"query_location_length":1,"column_names":["x"]}}]}],"from_table":{"type":"BASE_TABLE","alias":"","sample":null,"query_location":186,"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 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 GROUP \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":"GROUP","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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":14}}}]}],"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(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 NO OTHERS )\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":287,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":302,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":317,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":11,"query_location_length":1,"column_names":["c"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},"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":[]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},"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":[]}],"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 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 TIES )\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":282,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":297,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}},{"type":"ORDER_DEFAULT","null_order":"NULLS FIRST","expression":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":312,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}}]},"right":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":35,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":0}}},"exclude_clause":"TIES","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"]}}]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},"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":[]},{"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":6}},"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":[]}],"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 lead(c0, (SELECT UNNEST([0])), (SELECT UNNEST([1]))) OVER (ROWS BETWEEN 2 PRECEDING AND 4 PRECEDING)\nFROM (VALUES (1, 2)) a(c0);","json":{"error":false,"statements":[{"node":{"type":"SELECT_NODE","modifiers":[],"cte_map":{"map":[]},"select_list":[{"class":"WINDOW","type":"WINDOW_LEAD","alias":"","query_location":7,"query_location_length":100,"function_name":"lead","schema":"","catalog":"","partitions":[],"orders":[],"start":"EXPR_PRECEDING_ROWS","end":"EXPR_PRECEDING_ROWS","start_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":79,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}},"end_expr":{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":95,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":4}},"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":2,"column_names":["c0"]}},{"name":"","expression":{"class":"SUBQUERY","type":"SUBQUERY","alias":"","query_location":16,"query_location_length":20,"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":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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":null,"comparison_type":"INVALID"}},{"name":"","expression":{"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":"FUNCTION","type":"FUNCTION","alias":"","query_location":46,"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":"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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":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":"SUBQUERY","alias":"a","sample":null,"query_location":113,"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":122,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":1}},{"class":"CONSTANT","type":"VALUE_CONSTANT","alias":"","query_location":125,"query_location_length":1,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":2}}]]},"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 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,"value":{"type":{"id":"INTEGER","type_info":null},"is_null":false,"value":5}}}]}],"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":[]}]}} diff --git a/parser/transform_ddl.go b/parser/transform_ddl.go new file mode 100644 index 0000000..bb13c4c --- /dev/null +++ b/parser/transform_ddl.go @@ -0,0 +1,895 @@ +// transform_ddl.go: CREATE / ALTER / DROP — the milestone-4 DDL +// transformers: tables (columns + constraints), views, schemas, indexes, +// sequences and types. CREATE MACRO / SECRET / TRIGGER belong to +// milestone 5 and report ErrUnsupported. Port of upstream's +// transformer/statement/transform_create_*.cpp, transform_alter.cpp and +// transform_drop.cpp. +package parser + +import ( + "strings" + + "github.com/sqlc-dev/darkwing/ast" +) + +func init() { + register("CreateStatement", func(tc *transformContext, n tnode) ast.Stmt { + return tc.transformCreate(n) + }) + register("AlterStatement", func(tc *transformContext, n tnode) ast.Stmt { + return tc.transformAlter(n) + }) + register("DropStatement", func(tc *transformContext, n tnode) ast.Stmt { + return tc.transformDrop(n) + }) +} + +// ---- CREATE ------------------------------------------------------------ + +// CreateStatement <- 'CREATE' OrReplace? Temporary? CreateStatementVariation +func (tc *transformContext) transformCreate(n tnode) ast.Stmt { + stmt := &ast.CreateStatement{} + stmt.SetSpan(n.span()) + onConflict := ast.CreateError + if _, orReplace := n.child(1).opt(); orReplace { + onConflict = ast.CreateReplace + } + temporary := false + if temp, ok := n.child(2).opt(); ok { + // Temporary <- Persistent / TempPersistent / TemporaryPersistent + _, kind := temp.sole().choice() + temporary = kind.name() != "Persistent" + } + _, variation := n.child(3).sole().choice() + var info ast.CreateInfo + switch variation.name() { + case "CreateTableStmt": + info = tc.transformCreateTable(variation) + case "CreateSchemaStmt": + info = tc.transformCreateSchema(variation) + case "CreateViewStmt": + info = tc.transformCreateView(variation) + case "CreateIndexStmt": + info = tc.transformCreateIndex(variation) + case "CreateSequenceStmt": + info = tc.transformCreateSequence(variation) + case "CreateTypeStmt": + info = tc.transformCreateType(variation) + case "CreateMacroStmt", "CreateSecretStmt", "CreateTriggerStmt": + panic(&internalErrorUnsupported{rule: variation.name()}) + default: + shapeError(variation, "unknown create variation") + } + base := info.Base() + base.Temporary = temporary + if base.OnConflict == "" || onConflict == ast.CreateReplace { + if base.OnConflict == ast.CreateIgnore && onConflict == ast.CreateReplace { + raise("cannot combine OR REPLACE with IF NOT EXISTS") + } + if onConflict != ast.CreateError || base.OnConflict == "" { + if base.OnConflict == "" { + base.OnConflict = onConflict + } else if onConflict == ast.CreateReplace { + base.OnConflict = onConflict + } + } + } + stmt.Info = info + return stmt +} + +// applyIfNotExists sets IGNORE on the info when the IfNotExists optional +// matched. +func applyIfNotExists(base *ast.CreateInfoBase, n tnode) { + if _, ok := n.opt(); ok { + base.OnConflict = ast.CreateIgnore + } +} + +// fillQualifiedName splits a QualifiedName into the info's +// catalog/schema/name. +func (tc *transformContext) fillQualifiedName(base *ast.CreateInfoBase, n tnode) { + base.Catalog, base.Schema, base.Name = tc.transformQualifiedNameParts(n) +} + +// CreateTableStmt <- 'TABLE' IfNotExists? QualifiedName +// CreateTableDefinition CommitAction? +func (tc *transformContext) transformCreateTable(n tnode) ast.CreateInfo { + info := &ast.CreateTableInfo{} + info.SetSpan(n.span()) + applyIfNotExists(&info.CreateInfoBase, n.child(1)) + tc.fillQualifiedName(&info.CreateInfoBase, n.child(2)) + // CreateTableDefinition <- CreateTableAs / CreateColumnList + _, def := n.child(3).sole().choice() + switch def.name() { + case "CreateTableAs": + // IdentifierList? PartitionSortedOptions? WithList? 'AS' Statement WithData? + if ids, ok := def.child(0).opt(); ok { + info.QueryAliases = identifierList(ids.sole().parens()) + } + stmt := tc.transformStatement(def.child(4)) + sel, ok := stmt.(*ast.SelectStatement) + if !ok { + raise("CREATE TABLE AS requires a SELECT statement") + } + info.Query = sel + case "CreateColumnList": + // Parens(CreateTableColumnList?) PartitionSortedOptions? WithList? + if list, ok := def.child(0).parens().opt(); ok { + for _, elem := range list.sole().listElems() { + tc.transformCreateTableElement(info, elem) + } + } + default: + shapeError(def, "unknown create table definition") + } + return info +} + +// CreateTableColumnElement <- CreateTableColumnDefinition / CreateTableConstraint +func (tc *transformContext) transformCreateTableElement(info *ast.CreateTableInfo, n tnode) { + _, alt := n.sole().choice() + switch alt.name() { + case "CreateTableColumnDefinition": + info.Columns = append(info.Columns, tc.transformColumnDefinition(alt.sole())) + case "CreateTableConstraint": + info.Constraints = append(info.Constraints, tc.transformTopLevelConstraint(alt.sole())) + default: + shapeError(alt, "unknown create table element") + } +} + +// ColumnDefinition <- DottedIdentifier Type? GeneratedColumn? +// ConstraintNameClause? ColumnConstraint* +func (tc *transformContext) transformColumnDefinition(n tnode) ast.ColumnDef { + col := ast.ColumnDef{} + col.SetSpan(n.span()) + col.Names = dottedIdentifier(n.child(0)) + if typ, ok := n.child(1).opt(); ok { + col.Type = tc.transformType(typ) + } + if gen, ok := n.child(2).opt(); ok { + // GeneratedColumn <- Generated? 'AS' Parens(Expression) GeneratedColumnType? + col.Generated = ast.GeneratedVirtual + col.Default = tc.transformExpression(gen.child(2).parens()) + if kind, ok := gen.child(3).opt(); ok { + _, k := kind.sole().choice() + if k.name() == "StoredGeneratedColumn" { + col.Generated = ast.GeneratedStored + } + } + } + constraintName := "" + if named, ok := n.child(3).opt(); ok { + constraintName = identifierText(named.child(1)) + } + for _, c := range n.child(4).repeat() { + constraint := tc.transformColumnConstraint(&col, c) + if constraint == nil { + continue + } + if constraintName != "" { + setConstraintName(constraint, constraintName) + constraintName = "" + } + col.Constraints = append(col.Constraints, constraint) + } + return col +} + +// dottedIdentifier flattens DottedIdentifier (Identifier DotColLabel*). +func dottedIdentifier(n tnode) []string { + path := []string{identifierText(n.child(0))} + for _, dot := range n.child(1).repeat() { + path = append(path, identifierText(dot.child(1))) + } + return path +} + +func setConstraintName(c ast.Constraint, name string) { + switch t := c.(type) { + case *ast.NotNullConstraint: + t.Name = name + case *ast.UniqueConstraint: + t.Name = name + case *ast.CheckConstraint: + t.Name = name + case *ast.DefaultConstraint: + t.Name = name + case *ast.ForeignKeyConstraint: + t.Name = name + } +} + +// transformColumnConstraint maps one ColumnConstraint; collation and +// compression fold into the column itself and return nil. +func (tc *transformContext) transformColumnConstraint(col *ast.ColumnDef, n tnode) ast.Constraint { + _, alt := n.sole().choice() + switch alt.name() { + case "NotNullConstraint": + // NullConstraint / NotNullColumnConstraint + _, kind := alt.sole().choice() + c := &ast.NotNullConstraint{Null: kind.name() == "NullConstraint"} + c.SetSpan(alt.span()) + return c + case "UniqueConstraint": + c := &ast.UniqueConstraint{} + c.SetSpan(alt.span()) + return c + case "PrimaryKeyConstraint": + c := &ast.UniqueConstraint{IsPrimaryKey: true} + c.SetSpan(alt.span()) + return c + case "DefaultValue": + // 'DEFAULT' ColumnDefaultExpr + c := &ast.DefaultConstraint{Expr: tc.transformColumnDefaultExpr(alt.child(1))} + c.SetSpan(alt.span()) + return c + case "CheckConstraint": + c := &ast.CheckConstraint{Expr: tc.transformExpression(alt.child(1).parens())} + c.SetSpan(alt.span()) + return c + case "ForeignKeyConstraint": + return tc.transformForeignKey(alt, nil) + case "ColumnCollation": + col.Collation = strings.Join(dottedIdentifier(alt.child(1)), ".") + return nil + case "ColumnCompression": + col.Compression = identifierText(alt.child(2)) + return nil + } + shapeError(alt, "unknown column constraint") + return nil +} + +// transformColumnDefaultExpr maps ColumnDefaultExpr (the restricted +// OR/AND ladder used by DEFAULT clauses). +func (tc *transformContext) transformColumnDefaultExpr(n tnode) ast.Expr { + // ColumnDefaultExpr <- ColDefOrExpr; ColDefOrExpr and ColDefAndExpr + // mirror the conjunction ladder shapes. + colDefOr := n.sole() + return tc.transformConjunction(colDefOr, ast.ConjunctionOr, func(and tnode) ast.Expr { + return tc.transformConjunction(and, ast.ConjunctionAnd, tc.transformIsDistinctFrom) + }) +} + +// transformForeignKey maps ForeignKeyConstraint +// ('REFERENCES' BaseTableName Parens(ColumnList)? KeyActions), with the +// referencing columns of a table-level FOREIGN KEY. +func (tc *transformContext) transformForeignKey(n tnode, columns []string) *ast.ForeignKeyConstraint { + c := &ast.ForeignKeyConstraint{Columns: columns} + 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} + if cols, ok := n.child(2).opt(); ok { + c.ReferencedColumns = identifierList(cols.parens().sole()) + } + // KeyActions <- UpdateAction? DeleteAction? + actions := n.child(3) + if ua, ok := actions.child(0).opt(); ok { + c.OnUpdate = keyAction(ua.child(2)) + } + if da, ok := actions.child(1).opt(); ok { + c.OnDelete = keyAction(da.child(2)) + } + return c +} + +func keyAction(n tnode) ast.KeyAction { + _, alt := n.sole().choice() + switch alt.name() { + case "NoKeyAction": + return ast.KeyActionNone + case "RestrictKeyAction": + return ast.KeyActionRestrict + case "CascadeKeyAction": + return ast.KeyActionCascade + case "SetNullKeyAction": + return ast.KeyActionSetNull + case "SetDefaultKeyAction": + return ast.KeyActionSetDefault + } + shapeError(alt, "unknown key action") + return "" +} + +// TopLevelConstraint <- ConstraintNameClause? TopLevelConstraintList +func (tc *transformContext) transformTopLevelConstraint(n tnode) ast.Constraint { + name := "" + if named, ok := n.child(0).opt(); ok { + name = identifierText(named.child(1)) + } + _, alt := n.child(1).sole().choice() + var out ast.Constraint + switch alt.name() { + case "TopPrimaryKeyConstraint": + // 'PRIMARY' 'KEY' ColumnIdList + c := &ast.UniqueConstraint{IsPrimaryKey: true, Columns: identifierList(alt.child(2).sole().parens())} + c.SetSpan(alt.span()) + out = c + case "TopUniqueConstraint": + c := &ast.UniqueConstraint{Columns: identifierList(alt.child(1).sole().parens())} + c.SetSpan(alt.span()) + out = c + case "TopCheckConstraint": + inner := alt.sole() + c := &ast.CheckConstraint{Expr: tc.transformExpression(inner.child(1).parens())} + c.SetSpan(alt.span()) + out = c + case "TopForeignKeyConstraint": + // 'FOREIGN' 'KEY' ColumnIdList ForeignKeyConstraint + columns := identifierList(alt.child(2).sole().parens()) + out = tc.transformForeignKey(alt.child(3), columns) + default: + shapeError(alt, "unknown table constraint") + } + if name != "" { + setConstraintName(out, name) + } + return out +} + +// CreateSchemaStmt <- 'SCHEMA' IfNotExists? QualifiedName +func (tc *transformContext) transformCreateSchema(n tnode) ast.CreateInfo { + info := &ast.CreateSchemaInfo{} + info.SetSpan(n.span()) + applyIfNotExists(&info.CreateInfoBase, n.child(1)) + cat, schema, name := tc.transformQualifiedNameParts(n.child(2)) + // a schema's qualifier is its catalog + if cat == "" { + cat = schema + } + info.Catalog, info.Name = cat, name + return info +} + +// CreateViewStmt <- CreateRecursive? 'VIEW' IfNotExists? QualifiedName +// InsertColumnList? WithList? 'AS' SelectStatementInternal +func (tc *transformContext) transformCreateView(n tnode) ast.CreateInfo { + info := &ast.CreateViewInfo{} + info.SetSpan(n.span()) + if _, ok := n.child(0).opt(); ok { + info.Recursive = true + } + applyIfNotExists(&info.CreateInfoBase, n.child(2)) + tc.fillQualifiedName(&info.CreateInfoBase, n.child(3)) + if cols, ok := n.child(4).opt(); ok { + info.Aliases = identifierList(cols.sole().parens()) + } + info.Query = tc.transformSelectInternalStatement(n.child(7)) + return info +} + +// CreateIndexStmt <- UniqueIndex? 'INDEX' IfNotExists? IndexName? 'ON' +// BaseTableName InsertColumnList? IndexType? Parens(List(IndexElement))? +// WithList? WhereClause? +func (tc *transformContext) transformCreateIndex(n tnode) ast.CreateInfo { + info := &ast.CreateIndexInfo{} + info.SetSpan(n.span()) + if _, ok := n.child(0).opt(); ok { + info.Unique = true + } + applyIfNotExists(&info.CreateInfoBase, n.child(2)) + if name, ok := n.child(3).opt(); ok { + info.Name = identifierText(name) + } + ref := &ast.BaseTableRef{} + tc.fillBaseTableName(ref, n.child(5)) + info.Table = ast.QualifiedName{Catalog: ref.CatalogName, Schema: ref.SchemaName, Name: ref.TableName} + if cols, ok := n.child(6).opt(); ok { + // old-style column list: plain column references + for _, c := range cols.sole().parens().listElems() { + col := &ast.ColumnRefExpression{ColumnNames: []string{identifierText(c)}} + col.SetSpan(c.span()) + info.Elements = append(info.Elements, ast.IndexElement{Expr: col}) + } + } + if idxType, ok := n.child(7).opt(); ok { + info.IndexType = identifierText(idxType.child(1)) + } + if elems, ok := n.child(8).opt(); ok { + for _, e := range elems.parens().listElems() { + // IndexElement <- Expression DescOrAsc? NullsFirstOrLast? + info.Elements = append(info.Elements, ast.IndexElement{ + Expr: tc.transformExpression(e.child(0)), + OrderType: orderTypeOf(e.child(1)), + NullOrder: nullOrderOf(e.child(2)), + }) + } + } + if wc, ok := n.child(10).opt(); ok { + info.Where = tc.transformExpression(wc.child(1)) + } + return info +} + +// CreateSequenceStmt <- 'SEQUENCE' IfNotExists? QualifiedName SequenceOption* +func (tc *transformContext) transformCreateSequence(n tnode) ast.CreateInfo { + info := &ast.CreateSequenceInfo{} + info.SetSpan(n.span()) + applyIfNotExists(&info.CreateInfoBase, n.child(1)) + tc.fillQualifiedName(&info.CreateInfoBase, n.child(2)) + for _, opt := range n.child(3).repeat() { + tc.applySequenceOption(info, opt) + } + return info +} + +// applySequenceOption maps one SequenceOption. +func (tc *transformContext) applySequenceOption(info *ast.CreateSequenceInfo, n tnode) { + _, alt := n.sole().choice() + switch alt.name() { + case "SeqSetCycle": + _, kind := alt.sole().choice() + info.Cycle = kind.name() == "SeqCycle" + case "SeqSetIncrement": + // 'INCREMENT' 'BY'? Expression + info.Increment = tc.transformExpression(alt.child(2)) + case "SeqSetMinMax": + // SeqMinOrMax Expression + expr := tc.transformExpression(alt.child(1)) + if seqIsMin(alt.child(0)) { + info.MinValue = expr + } else { + info.MaxValue = expr + } + case "SeqNoMinMax": + // 'NO' SeqMinOrMax + if seqIsMin(alt.child(1)) { + info.NoMinValue = true + } else { + info.NoMaxValue = true + } + case "SeqStartWith": + // 'START' 'WITH'? Expression + info.StartValue = tc.transformExpression(alt.child(2)) + case "SeqOwnedBy": + cat, schema, name := tc.transformQualifiedNameParts(alt.child(2)) + info.OwnedBy = &ast.QualifiedName{Catalog: cat, Schema: schema, Name: name} + default: + shapeError(alt, "unknown sequence option") + } +} + +func seqIsMin(n tnode) bool { + _, kind := n.sole().choice() + return kind.name() == "MinValue" +} + +// CreateTypeStmt <- 'TYPE' IfNotExists? QualifiedName 'AS' CreateType +func (tc *transformContext) transformCreateType(n tnode) ast.CreateInfo { + info := &ast.CreateTypeInfo{} + info.SetSpan(n.span()) + applyIfNotExists(&info.CreateInfoBase, n.child(1)) + tc.fillQualifiedName(&info.CreateInfoBase, n.child(2)) + _, kind := n.child(4).sole().choice() + switch kind.name() { + case "CreateTypeFromType": + info.Type = tc.transformType(kind.sole()) + case "EnumSelectType": + info.IsEnum = true + info.EnumQuery = tc.transformSelectInternalStatement(kind.child(1).parens()) + case "EnumStringLiteralList": + info.IsEnum = true + if list, ok := kind.child(1).parens().opt(); ok { + for _, s := range list.listElems() { + info.EnumValues = append(info.EnumValues, identifierText(s)) + } + } + default: + shapeError(kind, "unknown create type") + } + return info +} + +// ---- ALTER ------------------------------------------------------------- + +// AlterStatement <- 'ALTER' AlterOptions +func (tc *transformContext) transformAlter(n tnode) ast.Stmt { + stmt := &ast.AlterStatement{} + stmt.SetSpan(n.span()) + _, alt := n.child(1).sole().choice() + switch alt.name() { + case "AlterTableStmt": + // 'TABLE' IfExists? BaseTableName List(AlterTableOptions) + stmt.Entity = ast.AlterEntityTable + stmt.IfExists = optMatched(alt.child(1)) + ref := &ast.BaseTableRef{} + tc.fillBaseTableName(ref, alt.child(2)) + stmt.Name = ast.QualifiedName{Catalog: ref.CatalogName, Schema: ref.SchemaName, Name: ref.TableName} + for _, opt := range alt.child(3).listElems() { + stmt.Actions = append(stmt.Actions, tc.transformAlterTableOption(opt)) + } + case "AlterViewStmt": + // 'VIEW' IfExists? BaseTableName RenameAlter + stmt.Entity = ast.AlterEntityView + stmt.IfExists = optMatched(alt.child(1)) + ref := &ast.BaseTableRef{} + tc.fillBaseTableName(ref, alt.child(2)) + stmt.Name = ast.QualifiedName{Catalog: ref.CatalogName, Schema: ref.SchemaName, Name: ref.TableName} + stmt.Actions = append(stmt.Actions, tc.transformRenameAlter(alt.child(3))) + case "AlterSequenceStmt": + // 'SEQUENCE' IfExists? QualifiedSequenceName AlterSequenceOptions + stmt.Entity = ast.AlterEntitySequence + stmt.IfExists = optMatched(alt.child(1)) + stmt.Name = tc.qualifiedSequenceName(alt.child(2)) + _, opts := alt.child(3).sole().choice() + switch opts.name() { + case "RenameAlterSequenceOptions": + stmt.Actions = append(stmt.Actions, tc.transformRenameAlter(opts.sole())) + case "SetSequenceOption": + seq := &ast.SetSequenceOptionInfo{} + seq.SetSpan(opts.span()) + for _, o := range opts.sole().repeat() { + tc.applySequenceOption(&seq.Options, o) + } + stmt.Actions = append(stmt.Actions, seq) + } + case "AlterDatabaseStmt": + // 'DATABASE' IfExists? Identifier 'SET' 'ALIAS' 'TO' Identifier + stmt.Entity = ast.AlterEntityDatabase + stmt.IfExists = optMatched(alt.child(1)) + stmt.Name = ast.QualifiedName{Name: identifierText(alt.child(2))} + info := &ast.SetDatabaseAliasInfo{NewName: identifierText(alt.child(6))} + info.SetSpan(alt.span()) + stmt.Actions = append(stmt.Actions, info) + case "AlterSchemaStmt": + // 'SCHEMA' IfExists? QualifiedName RenameAlter + stmt.Entity = ast.AlterEntitySchema + stmt.IfExists = optMatched(alt.child(1)) + cat, schema, name := tc.transformQualifiedNameParts(alt.child(2)) + if cat == "" { + cat = schema + } + stmt.Name = ast.QualifiedName{Catalog: cat, Name: name} + stmt.Actions = append(stmt.Actions, tc.transformRenameAlter(alt.child(3))) + default: + shapeError(alt, "unknown alter statement") + } + return stmt +} + +func optMatched(n tnode) bool { + _, ok := n.opt() + return ok +} + +func (tc *transformContext) qualifiedSequenceName(n tnode) ast.QualifiedName { + // QualifiedSequenceName <- CatalogQualification? SchemaQualification? SequenceName + q := ast.QualifiedName{} + 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)) + } + if q.Catalog != "" && q.Schema == "" { + q.Catalog, q.Schema = "", q.Catalog + } + q.Name = identifierText(n.child(2)) + return q +} + +// transformRenameAlter maps RenameAlter ('RENAME' 'TO' Identifier). +func (tc *transformContext) transformRenameAlter(n tnode) ast.AlterInfo { + info := &ast.RenameInfo{NewName: identifierText(n.child(2))} + info.SetSpan(n.span()) + return info +} + +// nestedColumnName flattens NestedColumnName (IdentifierDot* ColumnName). +func nestedColumnName(n tnode) []string { + var path []string + for _, id := range n.child(0).repeat() { + path = append(path, identifierText(id.child(0))) + } + return append(path, identifierText(n.child(1))) +} + +// transformAlterTableOption maps one AlterTableOptions entry. +func (tc *transformContext) transformAlterTableOption(n tnode) ast.AlterInfo { + _, alt := n.sole().choice() + switch alt.name() { + case "AddColumn": + // 'ADD' 'COLUMN'? IfNotExists? AddColumnEntry + info := &ast.AddColumnInfo{IfNotExists: optMatched(alt.child(2))} + info.SetSpan(alt.span()) + entry := alt.child(3) + // AddColumnEntry <- DottedIdentifier Type? GeneratedColumn? ColumnConstraint* + col := ast.ColumnDef{Names: dottedIdentifier(entry.child(0))} + col.SetSpan(entry.span()) + if typ, ok := entry.child(1).opt(); ok { + col.Type = tc.transformType(typ) + } + if gen, ok := entry.child(2).opt(); ok { + col.Generated = ast.GeneratedVirtual + col.Default = tc.transformExpression(gen.child(2).parens()) + if kind, ok := gen.child(3).opt(); ok { + _, k := kind.sole().choice() + if k.name() == "StoredGeneratedColumn" { + col.Generated = ast.GeneratedStored + } + } + } + for _, c := range entry.child(3).repeat() { + if constraint := tc.transformColumnConstraint(&col, c); constraint != nil { + col.Constraints = append(col.Constraints, constraint) + } + } + info.Column = col + return info + case "DropColumn": + // 'DROP' 'COLUMN'? IfExists? NestedColumnName DropBehavior? + info := &ast.DropColumnInfo{ + IfExists: optMatched(alt.child(2)), + Column: nestedColumnName(alt.child(3)), + } + if behavior, ok := alt.child(4).opt(); ok { + _, b := behavior.sole().choice() + info.Cascade = b.name() == "CascadeDropBehavior" + } + info.SetSpan(alt.span()) + return info + case "AlterColumn": + // 'ALTER' 'COLUMN'? NestedColumnName AlterColumnEntry + column := nestedColumnName(alt.child(2)) + return tc.transformAlterColumnEntry(column, alt.child(3), alt.span()) + case "AddConstraint": + info := &ast.AddConstraintInfo{Constraint: tc.transformTopLevelConstraint(alt.child(1))} + info.SetSpan(alt.span()) + return info + case "ChangeNullability": + return tc.transformChangeNullability(nil, alt) + case "RenameColumn": + // 'RENAME' 'COLUMN'? NestedColumnName 'TO' Identifier + info := &ast.RenameColumnInfo{ + Column: nestedColumnName(alt.child(2)), + NewName: identifierText(alt.child(4)), + } + info.SetSpan(alt.span()) + return info + case "RenameAlter": + return tc.transformRenameAlter(alt) + case "SetPartitionedBy": + info := &ast.GenericAlterInfo{Kind: "SET_PARTITIONED_BY", Expressions: tc.transformExpressionList(alt.child(3).parens())} + info.SetSpan(alt.span()) + return info + case "ResetPartitionedBy": + info := &ast.GenericAlterInfo{Kind: "RESET_PARTITIONED_BY"} + info.SetSpan(alt.span()) + return info + case "SetSortedBy": + info := &ast.GenericAlterInfo{Kind: "SET_SORTED_BY"} + for _, o := range tc.transformOrderByExpressionsNode(alt.child(3).parens()) { + info.Expressions = append(info.Expressions, o.Expression) + } + info.SetSpan(alt.span()) + return info + case "ResetSortedBy": + info := &ast.GenericAlterInfo{Kind: "RESET_SORTED_BY"} + info.SetSpan(alt.span()) + return info + case "SetOptions": + info := &ast.GenericAlterInfo{Kind: "SET_OPTIONS"} + info.SetSpan(alt.span()) + return info + case "ResetOptions": + info := &ast.GenericAlterInfo{Kind: "RESET_OPTIONS"} + info.SetSpan(alt.span()) + return info + } + shapeError(alt, "unknown alter table option") + return nil +} + +// transformOrderByExpressionsNode maps a bare OrderByExpressions node +// (used by SET SORTED BY). +func (tc *transformContext) transformOrderByExpressionsNode(n tnode) []ast.OrderByNode { + _, alt := n.sole().choice() + if alt.name() != "OrderByExpressionList" { + raise("SET SORTED BY requires an expression list") + } + var out []ast.OrderByNode + for _, e := range alt.sole().listElems() { + out = append(out, ast.OrderByNode{ + Type: orderTypeOf(e.child(1)), + NullOrder: nullOrderOf(e.child(2)), + Expression: tc.transformExpression(e.child(0)), + }) + } + return out +} + +// transformChangeNullability maps ChangeNullability (DropOrSet 'NOT' 'NULL'). +func (tc *transformContext) transformChangeNullability(column []string, n tnode) ast.AlterInfo { + _, kind := n.child(0).sole().choice() + info := &ast.SetNotNullInfo{Column: column, Drop: kind.name() == "DropNullability"} + info.SetSpan(n.span()) + return info +} + +// transformAlterColumnEntry maps AlterColumnEntry. +func (tc *transformContext) transformAlterColumnEntry(column []string, n tnode, sp ast.Span) ast.AlterInfo { + _, alt := n.sole().choice() + switch alt.name() { + case "AddOrDropDefault": + _, kind := alt.sole().choice() + info := &ast.SetDefaultInfo{Column: column} + if kind.name() == "AddDefault" { + // 'SET' 'DEFAULT' Expression + info.Expr = tc.transformExpression(kind.child(2)) + } + info.SetSpan(sp) + return info + case "ChangeNullability": + return tc.transformChangeNullability(column, alt) + case "AlterType": + // SetData? 'TYPE' Type? UsingExpression? + info := &ast.AlterColumnTypeInfo{Column: column} + info.SetSpan(sp) + if typ, ok := alt.child(2).opt(); ok { + info.Type = tc.transformType(typ) + } + if using, ok := alt.child(3).opt(); ok { + info.Using = tc.transformExpression(using.child(1)) + } + return info + } + shapeError(alt, "unknown alter column entry") + return nil +} + +// ---- DROP -------------------------------------------------------------- + +// DropStatement <- 'DROP' DropEntries DropBehavior? +func (tc *transformContext) transformDrop(n tnode) ast.Stmt { + stmt := &ast.DropStatement{} + stmt.SetSpan(n.span()) + if behavior, ok := n.child(2).opt(); ok { + _, b := behavior.sole().choice() + stmt.Cascade = b.name() == "CascadeDropBehavior" + } + _, alt := n.child(1).sole().choice() + switch alt.name() { + case "DropTable": + // TableOrView IfExists? List(BaseTableName) + _, kind := alt.child(0).sole().choice() + switch kind.name() { + case "CommentTable": + stmt.DropType = ast.DropTable + case "CommentView": + stmt.DropType = ast.DropView + case "MaterializedViewEntry": + stmt.DropType = ast.DropMaterializedView + } + stmt.IfExists = optMatched(alt.child(1)) + for _, name := range alt.child(2).listElems() { + ref := &ast.BaseTableRef{} + tc.fillBaseTableName(ref, name) + stmt.Names = append(stmt.Names, ast.QualifiedName{Catalog: ref.CatalogName, Schema: ref.SchemaName, Name: ref.TableName}) + } + case "DropTableFunction": + // CommentMacroTable IfExists? List(TableFunctionName) + stmt.DropType = ast.DropMacroTable + stmt.IfExists = optMatched(alt.child(1)) + for _, name := range alt.child(2).listElems() { + stmt.Names = append(stmt.Names, ast.QualifiedName{Name: identifierText(name)}) + } + case "DropFunction": + // FunctionTypeMacro IfExists? List(FunctionIdentifier) + _, kind := alt.child(0).sole().choice() + if kind.name() == "FunctionTypeMacroKeyword" { + stmt.DropType = ast.DropMacro + } else { + stmt.DropType = ast.DropFunction + } + stmt.IfExists = optMatched(alt.child(1)) + for _, name := range alt.child(2).listElems() { + catalog, schema, fname := tc.transformFunctionIdentifierRaw(name) + stmt.Names = append(stmt.Names, ast.QualifiedName{Catalog: catalog, Schema: schema, Name: fname}) + } + case "DropSchema": + stmt.DropType = ast.DropSchema + stmt.IfExists = optMatched(alt.child(1)) + for _, name := range alt.child(2).listElems() { + cat, schema, nm := tc.transformQualifiedNameParts(name) + if cat == "" { + cat = schema + } + stmt.Names = append(stmt.Names, ast.QualifiedName{Catalog: cat, Name: nm}) + } + case "DropIndex": + stmt.DropType = ast.DropIndex + stmt.IfExists = optMatched(alt.child(1)) + for _, name := range alt.child(2).listElems() { + stmt.Names = append(stmt.Names, tc.qualifiedIndexName(name)) + } + case "DropSequence": + stmt.DropType = ast.DropSequence + stmt.IfExists = optMatched(alt.child(1)) + for _, name := range alt.child(2).listElems() { + stmt.Names = append(stmt.Names, tc.qualifiedSequenceName(name)) + } + case "DropCollation": + stmt.DropType = ast.DropCollation + stmt.IfExists = optMatched(alt.child(1)) + for _, name := range alt.child(2).listElems() { + stmt.Names = append(stmt.Names, ast.QualifiedName{Name: identifierText(name)}) + } + case "DropType": + stmt.DropType = ast.DropTypeType + stmt.IfExists = optMatched(alt.child(1)) + for _, name := range alt.child(2).listElems() { + catalog, schema, tname := tc.transformQualifiedTypeName(name) + stmt.Names = append(stmt.Names, ast.QualifiedName{Catalog: catalog, Schema: schema, Name: tname}) + } + case "DropSecret": + // Temporary? 'SECRET' IfExists? SecretName DropSecretStorage? + stmt.DropType = ast.DropSecret + if temp, ok := alt.child(0).opt(); ok { + _, kind := temp.sole().choice() + stmt.Temporary = kind.name() != "Persistent" + } + stmt.IfExists = optMatched(alt.child(2)) + stmt.Names = append(stmt.Names, ast.QualifiedName{Name: identifierText(alt.child(3))}) + if storage, ok := alt.child(4).opt(); ok { + stmt.Storage = identifierText(storage.child(1)) + } + case "DropTrigger": + // 'TRIGGER' IfExists? TriggerName 'ON' BaseTableName + stmt.DropType = ast.DropTrigger + stmt.IfExists = optMatched(alt.child(1)) + stmt.Names = append(stmt.Names, ast.QualifiedName{Name: identifierText(alt.child(2))}) + default: + shapeError(alt, "unknown drop entry") + } + return stmt +} + +// qualifiedIndexName maps QualifiedIndexName. +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)), + } + case "SchemaReservedIndex": + return ast.QualifiedName{ + Schema: identifierText(alt.child(0).child(0)), + Name: identifierText(alt.child(1)), + } + case "QualifiedIndexNameString": + return ast.QualifiedName{Name: identifierText(alt.sole())} + } + shapeError(alt, "unknown qualified index name") + return ast.QualifiedName{} +} + +// transformFunctionIdentifierRaw is transformFunctionIdentifier without +// the lower-casing (DROP keeps the spelled name). +func (tc *transformContext) transformFunctionIdentifierRaw(n tnode) (catalog, schema, name string) { + _, alt := n.sole().choice() + switch alt.name() { + case "CatalogReservedSchemaFunctionName": + catalog = identifierText(alt.child(0).child(0)) + if sq, ok := alt.child(1).opt(); ok { + schema = identifierText(sq.child(0)) + } + name = identifierText(alt.child(2)) + case "SchemaReservedFunctionName": + schema = identifierText(alt.child(0).child(0)) + name = identifierText(alt.child(1)) + case "FunctionNameAsQualifiedName": + name = identifierText(alt.sole()) + default: + shapeError(alt, "unknown function identifier") + } + if catalog != "" && schema == "" { + catalog, schema = "", catalog + } + return catalog, schema, name +} diff --git a/parser/transform_dml.go b/parser/transform_dml.go new file mode 100644 index 0000000..fc5163b --- /dev/null +++ b/parser/transform_dml.go @@ -0,0 +1,382 @@ +// transform_dml.go: INSERT / UPDATE / DELETE / TRUNCATE / MERGE INTO — +// the milestone-4 DML transformers. Port of upstream's +// transformer/statement/transform_insert.cpp, transform_update.cpp, +// transform_delete.cpp and transform_merge_into.cpp. +package parser + +import ( + "github.com/sqlc-dev/darkwing/ast" +) + +func init() { + register("InsertStatement", func(tc *transformContext, n tnode) ast.Stmt { + return tc.transformInsert(n) + }) + register("UpdateStatement", func(tc *transformContext, n tnode) ast.Stmt { + return tc.transformUpdate(n) + }) + register("DeleteStatement", func(tc *transformContext, n tnode) ast.Stmt { + return tc.transformDelete(n) + }) + register("TruncateStatement", func(tc *transformContext, n tnode) ast.Stmt { + return tc.transformTruncate(n) + }) + register("MergeIntoStatement", func(tc *transformContext, n tnode) ast.Stmt { + return tc.transformMergeInto(n) + }) +} + +// transformReturning maps a ReturningClause ('RETURNING' TargetList). +func (tc *transformContext) transformReturning(n tnode) []ast.Expr { + var out []ast.Expr + for _, e := range n.child(1).listElems() { + out = append(out, tc.transformAliasedExpression(e)) + } + return out +} + +// InsertStatement <- WithClause? 'INSERT' OrAction? 'INTO' InsertTarget +// ByNameOrPosition? InsertColumnList? InsertValues OnConflictClause? +// ReturningClause? +func (tc *transformContext) transformInsert(n tnode) ast.Stmt { + stmt := &ast.InsertStatement{} + stmt.SetSpan(n.span()) + if wc, ok := n.child(0).opt(); ok { + stmt.CTEs = tc.transformWithClause(wc) + } + if oa, ok := n.child(2).opt(); ok { + // OrAction <- InsertOrReplace / InsertOrIgnore + _, kind := oa.sole().choice() + info := &ast.OnConflictInfo{Action: ast.OnConflictNothing} + if kind.name() == "InsertOrReplace" { + info.Action = ast.OnConflictReplace + } + info.SetSpan(oa.span()) + stmt.OnConflict = info + } + // InsertTarget <- BaseTableName InsertAlias? + target := n.child(4) + ref := &ast.BaseTableRef{} + tc.fillBaseTableName(ref, target.child(0)) + stmt.Catalog, stmt.Schema, stmt.Table = ref.CatalogName, ref.SchemaName, ref.TableName + if aliasNode, ok := target.child(1).opt(); ok { + stmt.TableAlias = identifierText(aliasNode.child(1)) + } + if bnp, ok := n.child(5).opt(); ok { + stmt.ColumnOrder = byNameOrPosition(bnp) + } + if cols, ok := n.child(6).opt(); ok { + stmt.Columns = identifierList(cols.sole().parens()) + } + // InsertValues <- SelectInsertValues / DefaultValues + _, values := n.child(7).sole().choice() + switch values.name() { + case "SelectInsertValues": + stmt.Query = tc.transformSelectInternalStatement(values.sole()) + case "DefaultValues": + stmt.DefaultValues = true + default: + shapeError(values, "unknown insert values") + } + if oc, ok := n.child(8).opt(); ok { + if stmt.OnConflict != nil { + raise("OR REPLACE|IGNORE is not compatible with ON CONFLICT") + } + stmt.OnConflict = tc.transformOnConflict(oc) + } + if ret, ok := n.child(9).opt(); ok { + stmt.Returning = tc.transformReturning(ret) + } + return stmt +} + +// byNameOrPosition maps ByNameOrPosition to the column order enum. +func byNameOrPosition(n tnode) ast.InsertColumnOrder { + _, kind := n.sole().choice() + if kind.name() == "InsertByNameOrder" { + return ast.InsertByName + } + return ast.InsertByPosition +} + +// OnConflictClause <- 'ON' 'CONFLICT' OnConflictTarget? OnConflictAction +func (tc *transformContext) transformOnConflict(n tnode) *ast.OnConflictInfo { + info := &ast.OnConflictInfo{} + info.SetSpan(n.span()) + if target, ok := n.child(2).opt(); ok { + _, alt := target.sole().choice() + switch alt.name() { + case "OnConflictExpressionTarget": + // ColumnIdList WhereClause? + info.IndexedColumns = identifierList(alt.child(0).sole().parens()) + if wc, ok := alt.child(1).opt(); ok { + info.TargetWhere = tc.transformExpression(wc.child(1)) + } + case "OnConflictIndexTarget": + // 'ON' 'CONSTRAINT' ConstraintName (rejected upstream only + // post-parse, as a Not implemented Error) + info.ConstraintName = identifierText(alt.child(2)) + default: + shapeError(alt, "unknown on-conflict target") + } + } + _, action := n.child(3).sole().choice() + switch action.name() { + case "OnConflictUpdate": + // 'DO' 'UPDATE' 'SET' UpdateSetClause WhereClause? + info.Action = ast.OnConflictUpdate + set := tc.transformUpdateSetClause(action.child(3)) + if wc, ok := action.child(4).opt(); ok { + set.Condition = tc.transformExpression(wc.child(1)) + } + info.SetInfo = set + case "OnConflictNothing": + info.Action = ast.OnConflictNothing + default: + shapeError(action, "unknown on-conflict action") + } + return info +} + +// UpdateSetClause <- UpdateSetElementList / UpdateSetTuple +func (tc *transformContext) transformUpdateSetClause(n tnode) *ast.UpdateSetInfo { + set := &ast.UpdateSetInfo{} + set.SetSpan(n.span()) + _, alt := n.sole().choice() + switch alt.name() { + case "UpdateSetElementList": + for _, e := range alt.sole().listElems() { + // UpdateSetElement <- UpdateSetColumnTarget '=' Expression + target := updateSetColumnTarget(e.child(0)) + if len(target) > 1 { + raise("Qualified column names in UPDATE .. SET not supported") + } + set.Columns = append(set.Columns, target) + set.Expressions = append(set.Expressions, tc.transformExpression(e.child(2))) + } + case "UpdateSetTuple": + // Parens(List(ColumnName)) '=' Expression: every column is + // assigned from the single row-valued expression + for _, c := range alt.child(0).parens().listElems() { + set.Columns = append(set.Columns, []string{identifierText(c)}) + } + set.Expressions = append(set.Expressions, tc.transformExpression(alt.child(2))) + default: + shapeError(alt, "unknown update set clause") + } + return set +} + +// updateSetColumnTarget flattens ColumnName DotIdentifier* into a dotted +// path. +func updateSetColumnTarget(n tnode) []string { + path := []string{identifierText(n.child(0))} + for _, dot := range n.child(1).repeat() { + path = append(path, identifierText(dot.child(1))) + } + return path +} + +// UpdateStatement <- WithClause? 'UPDATE' UpdateTarget UpdateSetClause +// FromClause? WhereClause? ReturningClause? +func (tc *transformContext) transformUpdate(n tnode) ast.Stmt { + stmt := &ast.UpdateStatement{} + stmt.SetSpan(n.span()) + if wc, ok := n.child(0).opt(); ok { + stmt.CTEs = tc.transformWithClause(wc) + } + // UpdateTarget <- BaseTableSet / BaseTableAliasSet (both end in 'SET') + _, target := n.child(2).sole().choice() + ref := &ast.BaseTableRef{} + // upstream's update target location runs through the SET keyword + // (the grammar node ends at 'SET') + ref.SetSpan(target.span()) + tc.fillBaseTableName(ref, target.child(0)) + if target.name() == "BaseTableAliasSet" { + if aliasNode, ok := target.child(1).opt(); ok { + // UpdateAlias <- 'AS'? ColId + ref.Alias = identifierText(aliasNode.child(1)) + } + } + stmt.Table = ref + stmt.SetInfo = tc.transformUpdateSetClause(n.child(3)) + if fc, ok := n.child(4).opt(); ok { + stmt.From = tc.transformFromClause(fc) + } + if wc, ok := n.child(5).opt(); ok { + stmt.Where = tc.transformExpression(wc.child(1)) + } + if ret, ok := n.child(6).opt(); ok { + stmt.Returning = tc.transformReturning(ret) + } + return stmt +} + +// transformTargetOptAlias maps TargetOptAlias (BaseTableName 'AS'? ColId?). +func (tc *transformContext) transformTargetOptAlias(n tnode) *ast.BaseTableRef { + ref := &ast.BaseTableRef{} + ref.SetSpan(n.span()) + tc.fillBaseTableName(ref, n.child(0)) + if alias, ok := n.child(2).opt(); ok { + ref.Alias = identifierText(alias) + } + return ref +} + +// DeleteStatement <- WithClause? 'DELETE' 'FROM' TargetOptAlias +// DeleteUsingClause? WhereClause? ReturningClause? +func (tc *transformContext) transformDelete(n tnode) ast.Stmt { + stmt := &ast.DeleteStatement{} + stmt.SetSpan(n.span()) + if wc, ok := n.child(0).opt(); ok { + stmt.CTEs = tc.transformWithClause(wc) + } + target := tc.transformTargetOptAlias(n.child(3)) + // upstream's delete target carries no location + target.SetSpan(invalidSpan) + stmt.Table = target + if using, ok := n.child(4).opt(); ok { + // DeleteUsingClause <- 'USING' List(TableRef) + for _, r := range using.child(1).listElems() { + stmt.Using = append(stmt.Using, tc.transformTableRef(r)) + } + } + if wc, ok := n.child(5).opt(); ok { + stmt.Where = tc.transformExpression(wc.child(1)) + } + if ret, ok := n.child(6).opt(); ok { + stmt.Returning = tc.transformReturning(ret) + } + return stmt +} + +// TruncateStatement <- 'TRUNCATE' 'TABLE'? BaseTableName +func (tc *transformContext) transformTruncate(n tnode) ast.Stmt { + stmt := &ast.TruncateStatement{} + stmt.SetSpan(n.span()) + ref := &ast.BaseTableRef{} + // like DELETE, the truncate target carries no location + ref.SetSpan(invalidSpan) + tc.fillBaseTableName(ref, n.child(2)) + stmt.Table = ref + return stmt +} + +// MergeIntoStatement <- WithClause? 'MERGE' 'INTO' TargetOptAlias +// MergeIntoUsingClause JoinQualifier MergeMatch+ ReturningClause? +func (tc *transformContext) transformMergeInto(n tnode) ast.Stmt { + stmt := &ast.MergeIntoStatement{} + stmt.SetSpan(n.span()) + if wc, ok := n.child(0).opt(); ok { + stmt.CTEs = tc.transformWithClause(wc) + } + stmt.Target = tc.transformTargetOptAlias(n.child(3)) + stmt.Source = tc.transformTableRef(n.child(4).child(1)) + // JoinQualifier <- OnClause / UsingClause + _, qual := n.child(5).sole().choice() + switch qual.name() { + case "OnClause": + stmt.JoinCondition = tc.transformExpression(qual.child(1)) + case "UsingClause": + stmt.UsingColumns = identifierList(qual.child(1).parens()) + default: + shapeError(qual, "unknown merge join qualifier") + } + for _, match := range n.child(6).repeat() { + stmt.Actions = append(stmt.Actions, tc.transformMergeMatch(match)) + } + if ret, ok := n.child(7).opt(); ok { + stmt.Returning = tc.transformReturning(ret) + } + return stmt +} + +// MergeMatch <- MatchedClause / NotMatchedClause +func (tc *transformContext) transformMergeMatch(n tnode) ast.MergeIntoAction { + action := ast.MergeIntoAction{} + action.SetSpan(n.span()) + _, alt := n.sole().choice() + var actionNode tnode + switch alt.name() { + case "MatchedClause": + // 'WHEN' 'MATCHED' AndExpression? 'THEN' MatchedClauseAction + action.Kind = ast.MergeWhenMatched + if and, ok := alt.child(2).opt(); ok { + action.Condition = tc.transformExpression(and.child(1)) + } + actionNode = alt.child(4) + case "NotMatchedClause": + // 'WHEN' 'NOT' 'MATCHED' BySourceOrTarget? AndExpression? 'THEN' MatchedClauseAction + action.Kind = ast.MergeWhenNotMatchedByTarget + if bst, ok := alt.child(3).opt(); ok { + _, side := bst.sole().choice() + if side.name() == "BySource" { + action.Kind = ast.MergeWhenNotMatchedBySource + } + } + if and, ok := alt.child(4).opt(); ok { + action.Condition = tc.transformExpression(and.child(1)) + } + actionNode = alt.child(6) + default: + shapeError(alt, "unknown merge match") + } + tc.fillMergeAction(&action, actionNode) + return action +} + +// fillMergeAction maps a MatchedClauseAction. +func (tc *transformContext) fillMergeAction(action *ast.MergeIntoAction, n tnode) { + _, alt := n.sole().choice() + switch alt.name() { + case "UpdateMatchClause": + // 'UPDATE' UpdateMatchInfo? + action.Action = ast.MergeUpdate + if info, ok := alt.child(1).opt(); ok { + _, kind := info.sole().choice() + switch kind.name() { + case "UpdateMatchSetAction": + // UpdateMatchSetClause <- 'SET' UpdateMatchSetInfo + _, setInfo := kind.sole().child(1).sole().choice() + if setInfo.name() == "UpdateSetClause" { + action.SetInfo = tc.transformUpdateSetClause(setInfo) + } + // SET * keeps a nil SetInfo (update everything) + case "UpdateByNameOrPosition": + action.ColumnOrder = byNameOrPosition(kind.sole()) + } + } + case "DeleteMatchClause": + action.Action = ast.MergeDelete + case "InsertMatchClause": + // 'INSERT' InsertMatchInfo? + action.Action = ast.MergeInsert + if info, ok := alt.child(1).opt(); ok { + _, kind := info.sole().choice() + switch kind.name() { + case "InsertValuesList": + // InsertColumnList? 'VALUES' Parens(List(Expression)) + if cols, ok := kind.child(0).opt(); ok { + action.Columns = identifierList(cols.sole().parens()) + } + action.Expressions = tc.transformExpressionList(kind.child(2).parens()) + case "InsertDefaultValues": + action.DefaultValues = true + case "InsertByNameOrPosition": + // ByNameOrPosition? '*'? + if bnp, ok := kind.child(0).opt(); ok { + action.ColumnOrder = byNameOrPosition(bnp) + } + } + } + case "DoNothingMatchClause": + action.Action = ast.MergeDoNothing + case "ErrorMatchClause": + action.Action = ast.MergeError + if e, ok := alt.child(1).opt(); ok { + action.ErrorExpr = tc.transformExpression(e) + } + default: + shapeError(alt, "unknown merge action") + } +} diff --git a/parser/transform_expr.go b/parser/transform_expr.go index 1108589..e13b045 100644 --- a/parser/transform_expr.go +++ b/parser/transform_expr.go @@ -436,14 +436,16 @@ func comparisonFromOpText(op string) (ast.ExpressionType, bool) { // OtherOperatorExpression <- BitwiseExpression OtherOperatorTail* func (tc *transformContext) transformOtherOperator(n tnode) ast.Expr { expr := tc.transformBitwise(n.child(0)) - for _, tail := range n.child(1).repeat() { + tails := n.child(1).repeat() + for i, tail := range tails { _, opAlt := tail.child(0).sole().choice() rhsNode := tail.child(1) + outermost := i == len(tails)-1 switch opAlt.name() { case "AnyAllParsedOperator": expr = tc.transformAnyAll(expr, opAlt.sole(), rhsNode, n.span().Start) case "NamedOtherOperator": - expr = tc.transformNamedOperator(expr, opAlt.sole(), rhsNode, n.span().Start) + expr = tc.transformNamedOperator(expr, opAlt.sole(), rhsNode, n.span().Start, outermost) default: shapeError(opAlt, "unknown other-operator") } @@ -453,18 +455,25 @@ func (tc *transformContext) transformOtherOperator(n tnode) ast.Expr { // AnyAllOperator <- AnyOp AnyOrAll func (tc *transformContext) transformAnyAll(input ast.Expr, n tnode, rhsNode tnode, exprStart int) ast.Expr { - opText := n.child(0).keyword() + opText := keywordOfOp(n.child(0)) + _, anyOrAll := n.child(1).sole().choice() + isAll := anyOrAll.name() == "SubqueryAll" + rhs := tc.transformBitwise(rhsNode) + whole := ast.Span{Start: exprStart, End: rhsNode.span().End} cmp, ok := comparisonFromOpText(opText) if !ok { - raise("Unsupported comparison \"%s\" for ANY/ALL", opText) + if sub, isSub := rhs.(*ast.SubqueryExpression); isSub && sub.SubqueryType == ast.SubqueryScalar { + raise("ANY and ALL operators require one of =,<>,>,<,>=,<= comparisons!") + } + switch opText { + case "~", "~*", "!~", "!~*": + return regexAnyAll(input, rhs, opText, isAll, whole) + } + raise("Unsupported comparison \"%s\" for ANY/ALL subquery", opText) } - _, anyOrAll := n.child(1).sole().choice() - isAll := anyOrAll.name() == "SubqueryAll" if isAll { cmp = negatedComparison[cmp] } - rhs := tc.transformBitwise(rhsNode) - whole := ast.Span{Start: exprStart, End: rhsNode.span().End} sub := tc.anySubquery(input, rhs, cmp) if isAll { // x > ALL(...) becomes NOT(x <= ANY(...)); the synthesized @@ -503,19 +512,94 @@ func (tc *transformContext) anySubquery(input, rhs ast.Expr, cmp ast.ExpressionT return out } +// regexAnyAll desugars `x ~ ANY(list)` (and the ~*/!~/!~* and ALL +// variants) into upstream's CASE: +// +// CASE WHEN list_contains(list_transform(list, LAMBDA p: regexp_matches(x, p)), true) THEN true +// WHEN len(list_filter(list_transform(...), LAMBDA m: m IS NULL)) > 0 THEN NULL +// ELSE false END +// +// ALL flips the contains probe and the THEN/ELSE booleans; negated +// operators wrap regexp_matches in NOT; ~*/!~* pass the 'i' flag. Every +// synthesized node is location-free except the top CASE, which spans the +// whole expression. +func regexAnyAll(input, list ast.Expr, opText string, isAll bool, whole ast.Span) ast.Expr { + caseInsensitive := opText == "~*" || opText == "!~*" + negated := opText == "!~" || opText == "!~*" + + nameRef := func(name string) *ast.ColumnRefExpression { + r := &ast.ColumnRefExpression{ColumnNames: []string{name}} + r.SetSpan(invalidSpan) + return r + } + boolConst := func(b bool) *ast.ConstantExpression { + return constExpr(invalidSpan, ast.Value{Type: ast.LogicalType{ID: "BOOLEAN"}, Kind: ast.ValueBool, Bool: b}) + } + + // LAMBDA __regex_pattern: [NOT] regexp_matches(input, __regex_pattern[, 'i']) + matchArgs := []ast.Expr{input, nameRef("__regex_pattern")} + if caseInsensitive { + matchArgs = append(matchArgs, constExpr(invalidSpan, varcharValue("i"))) + } + var body ast.Expr = fnCall(invalidSpan, "regexp_matches", matchArgs...) + if negated { + body = notExpr(invalidSpan, body) + } + regexLambda := &ast.LambdaExpression{LHS: nameRef("__regex_pattern"), Expr: body, SyntaxType: ast.LambdaKeyword} + regexLambda.SetSpan(invalidSpan) + transformed := fnCall(invalidSpan, "list_transform", list, regexLambda) + + contains := fnCall(invalidSpan, "list_contains", transformed, boolConst(!isAll)) + + // LAMBDA __regex_match: __regex_match IS NULL + nullLambda := &ast.LambdaExpression{ + LHS: nameRef("__regex_match"), + Expr: opExpr(invalidSpan, ast.OperatorIsNull, nameRef("__regex_match")), + SyntaxType: ast.LambdaKeyword, + } + nullLambda.SetSpan(invalidSpan) + filtered := fnCall(invalidSpan, "list_filter", transformed, nullLambda) + anyNull := &ast.ComparisonExpression{ + Type: ast.CompareGreaterThan, + Left: fnCall(invalidSpan, "len", filtered), + Right: constExpr(invalidSpan, ast.Value{Type: ast.LogicalType{ID: "INTEGER"}, Kind: ast.ValueInt64, Int64: 0}), + } + anyNull.SetSpan(invalidSpan) + + out := &ast.CaseExpression{ + CaseChecks: []ast.CaseCheck{ + {When: contains, Then: boolConst(!isAll)}, + {When: anyNull, Then: constExpr(invalidSpan, ast.Value{Type: ast.LogicalType{ID: "NULL"}, IsNull: true, Kind: ast.ValueNull})}, + }, + ElseExpr: boolConst(isAll), + } + out.SetSpan(whole) + return out +} + // NamedOtherOperator <- QualifiedOperator / InetOperator / JsonOperator / // ListOperator / StringOperator / OperatorLiteral -func (tc *transformContext) transformNamedOperator(input ast.Expr, n tnode, rhsNode tnode, exprStart int) ast.Expr { +// Only the outermost fold of a chain carries a location, like the binary +// ladder levels. +func (tc *transformContext) transformNamedOperator(input ast.Expr, n tnode, rhsNode tnode, exprStart int, outermost bool) ast.Expr { _, alt := n.choice() rhs := tc.transformBitwise(rhsNode) + sp := invalidSpan + if outermost { + sp = ast.Span{Start: exprStart, End: rhsNode.span().End} + } + if alt.name() == "QualifiedOperator" { + // OPERATOR(schema.op) is always a function call — comparison + // spellings included — with the qualifier as its schema + schema, opText := qualifiedOperatorParts(alt) + f := opCall(sp, opText, input, rhs) + f.Schema = schema + return f + } var opText string switch alt.name() { - case "QualifiedOperator": - // OPERATOR(schema.op): the qualification is dropped by upstream - contents := alt.parens() - opText = contents.child(1).keyword() case "InetOperator", "JsonOperator", "ListOperator", "StringOperator": - opText = alt.sole().keyword() + opText = keywordOfOp(alt.sole()) default: // OperatorLiteral: a free operator token op, ok := alt.r.(*matcher.OperatorResult) @@ -524,7 +608,6 @@ func (tc *transformContext) transformNamedOperator(input ast.Expr, n tnode, rhsN } opText = op.Operator } - sp := ast.Span{Start: exprStart, End: rhsNode.span().End} if cmp, isCmp := comparisonFromOpText(opText); isCmp { c := &ast.ComparisonExpression{Type: cmp, Left: input, Right: rhs} c.SetSpan(sp) @@ -533,6 +616,31 @@ func (tc *transformContext) transformNamedOperator(input ast.Expr, n tnode, rhsN return opCall(sp, opText, input, rhs) } +// qualifiedOperatorParts unpacks OPERATOR(Parens(ColIdDot* AnyOp)) into +// an optional schema qualifier and the operator spelling; more than one +// qualifier is upstream's transformer error. +func qualifiedOperatorParts(alt tnode) (schema, op string) { + contents := alt.child(1).parens() + quals := qualifiedOperatorQualifiers(contents) + if len(quals) > 1 { + raise("Too many identifiers found, expected schema.operator or operator") + } + if len(quals) == 1 { + schema = quals[0] + } + return schema, keywordOfOp(contents.child(1)) +} + +func qualifiedOperatorQualifiers(contents tnode) []string { + var quals []string + if reps, ok := contents.child(0).opt(); ok { + for _, cid := range reps.repeat() { + quals = append(quals, identifierText(cid.child(0))) + } + } + return quals +} + // binaryLadder folds `X <- Y Tail*` with Tail = [op, Y] into left-assoc // operator function calls. Additive operators carry a bare op-token // location; every other level spans the whole expression (upstream's @@ -650,9 +758,14 @@ func (tc *transformContext) transformPrefix(n tnode) ast.Expr { case "TildePrefixOperator": expr = opCall(sp, "~", expr) case "QualifiedOperator": - contents := alt.parens() - opText := contents.child(1).keyword() - expr = opCall(sp, opText, expr) + // the prefix form folds qualifiers into the name itself: + // OPERATOR(main.-) x calls "main.-", mirroring upstream + contents := alt.child(1).parens() + name := keywordOfOp(contents.child(1)) + if quals := qualifiedOperatorQualifiers(contents); len(quals) > 0 { + name = strings.Join(append(quals, name), ".") + } + expr = opCall(sp, name, expr) default: shapeError(alt, "unknown prefix operator") } diff --git a/parser/transform_func.go b/parser/transform_func.go index c36eae9..963d46c 100644 --- a/parser/transform_func.go +++ b/parser/transform_func.go @@ -893,6 +893,11 @@ func cloneWithAlias(e ast.Expr, alias string) ast.Expr { c := *x c.Alias = alias return &c + case *ast.StarExpression: + // ORDER BY ALL inside ARRAY(...) clones the star + c := *x + c.Alias = alias + return &c } return e } diff --git a/parser/transform_select.go b/parser/transform_select.go index d52a490..ef06f28 100644 --- a/parser/transform_select.go +++ b/parser/transform_select.go @@ -89,12 +89,7 @@ func (tc *transformContext) transformWithStatement(n tnode, recursive bool) (str case "CTESelectBody": cte.Query = tc.transformSelectInternal(body.sole().parens()) case "CTEDMLBody": - stmt := tc.transformStatement(body.sole().parens()) - sel, ok := stmt.(*ast.SelectStatement) - if !ok { - raise("can only use SELECT statements (or DML in milestone 5) inside a CTE") - } - cte.Query = sel.Node + cte.Query = dmlQueryNode(tc.transformStatement(body.sole().parens())) default: shapeError(body, "unknown CTE body") } @@ -117,6 +112,41 @@ func (tc *transformContext) transformWithStatement(n tnode, recursive bool) (str return name, cte } +// dmlQueryNode wraps a statement parsed as a CTE body in its query-node +// form. Upstream allows SELECT and DML (with TRUNCATE landing in its +// delete-node form) and rejects everything else; a DML statement's own +// WITH clause moves onto the wrapping query node. +func dmlQueryNode(stmt ast.Stmt) ast.QueryNode { + stmtSpan := ast.Span{Start: stmt.Pos(), End: stmt.End()} + switch s := stmt.(type) { + case *ast.SelectStatement: + return s.Node + case *ast.InsertStatement: + n := &ast.InsertQueryNode{Insert: s} + n.CTEs, s.CTEs = s.CTEs, ast.CTEMap{} + n.SetSpan(stmtSpan) + return n + case *ast.UpdateStatement: + n := &ast.UpdateQueryNode{Update: s} + n.CTEs, s.CTEs = s.CTEs, ast.CTEMap{} + n.SetSpan(stmtSpan) + return n + case *ast.DeleteStatement: + n := &ast.DeleteQueryNode{Delete: s} + n.CTEs, s.CTEs = s.CTEs, ast.CTEMap{} + n.SetSpan(stmtSpan) + return n + case *ast.TruncateStatement: + del := &ast.DeleteStatement{Table: s.Table} + del.SetSpan(stmtSpan) + n := &ast.DeleteQueryNode{Delete: del} + n.SetSpan(stmtSpan) + return n + } + raise("A CTE body must be a SELECT, INSERT, UPDATE, DELETE, or COPY TO statement") + return nil +} + // ---- set operation chains --------------------------------------------- // SelectSetOpChain <- IntersectChain SelectSetOpChainTail* @@ -691,7 +721,10 @@ func (tc *transformContext) transformDescribe(n tnode) ast.QueryNode { } target, ok := alt.child(1).opt() if !ok { - shapeError(alt, "SHOW without a target") + // bare SHOW expands like SHOW ALL TABLES + ref.ShowType = ast.ShowTypeShowUnqualified + ref.TableName = "__show_tables_expanded" + break } _, t := target.sole().choice() switch t.name() { diff --git a/parser/transform_single.go b/parser/transform_single.go index 96f16a3..c55ccb6 100644 --- a/parser/transform_single.go +++ b/parser/transform_single.go @@ -5,6 +5,7 @@ package parser import ( + "errors" "math" "strconv" "strings" @@ -62,13 +63,13 @@ func (tc *transformContext) transformSingle(n tnode) ast.Expr { case "SpecialFunctionExpression": return tc.transformSpecialFunction(alt) case "ParenthesisExpression": - // row constructor: (a, b, ...) + // row constructor: (a, b, ...); () is row() sp := alt.span() - inner, ok := alt.sole().parens().opt() - if !ok { - raise("empty parenthesis expression is not allowed") + var args []ast.Expr + if inner, ok := alt.sole().parens().opt(); ok { + args = tc.transformExpressionList(inner) } - return fnCall(sp, "row", tc.transformExpressionList(inner)...) + return fnCall(sp, "row", args...) case "IntervalLiteral": return tc.transformIntervalLiteral(alt) case "TypeLiteral": @@ -284,7 +285,7 @@ func numberConstant(sp ast.Span, text string) ast.Expr { clean := strings.ReplaceAll(text, "_", "") lower := strings.ToLower(clean) if strings.ContainsAny(lower, "e") { - f, err := strconv.ParseFloat(clean, 64) + f, err := parseDouble(clean) if err != nil { raise("invalid number literal \"%s\"", text) } @@ -303,13 +304,23 @@ func numberConstant(sp ast.Span, text string) ast.Expr { if h, ok := parseUint128(clean); ok { return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "UHUGEINT"}, Kind: ast.ValueHugeint, Hugeint: h}) } - f, err := strconv.ParseFloat(clean, 64) + f, err := parseDouble(clean) if err != nil { raise("invalid number literal \"%s\"", text) } return constExpr(sp, ast.Value{Type: ast.LogicalType{ID: "DOUBLE"}, Kind: ast.ValueDouble, Float64: f}) } +// parseDouble parses a float literal the way upstream does: values whose +// magnitude exceeds the double range become ±Inf rather than errors. +func parseDouble(s string) (float64, error) { + f, err := strconv.ParseFloat(s, 64) + if err != nil && errors.Is(err, strconv.ErrRange) { + return f, nil // ParseFloat already returned ±Inf + } + return f, err +} + // decimalConstant derives DECIMAL(width, scale) from the literal's // digits: width counts the integer digits as written (leading zeros // included) plus the scale; literals too wide for DECIMAL(38) fall back @@ -324,7 +335,7 @@ func decimalConstant(sp ast.Span, clean string, dot int) ast.Expr { width = 1 } if width > 38 { - f, err := strconv.ParseFloat(clean, 64) + f, err := parseDouble(clean) if err != nil { raise("invalid number literal \"%s\"", clean) } diff --git a/parser/transform_tableref.go b/parser/transform_tableref.go index 255ef7f..e45512f 100644 --- a/parser/transform_tableref.go +++ b/parser/transform_tableref.go @@ -443,23 +443,18 @@ func joinTypeOf(n tnode) ast.JoinType { return ast.JoinInner } +// joinTypeFromLabel maps JOIN BY (TYPE label): upstream strips an +// optional _JOIN suffix and matches the enum spelling (mark_join → MARK). +// Unknown labels pass through verbatim — upstream only rejects them +// post-parse, so they are not parser errors. func joinTypeFromLabel(label string) ast.JoinType { - switch normalizeKeyword(label) { - case "FULL", "OUTER": - return ast.JoinFull - case "LEFT": - return ast.JoinLeft - case "RIGHT": - return ast.JoinRight - case "SEMI": - return ast.JoinSemi - case "ANTI": - return ast.JoinAnti - case "INNER": - return ast.JoinInner + name := strings.TrimSuffix(normalizeKeyword(label), "_JOIN") + switch name { + case "LEFT", "RIGHT", "INNER", "FULL", "SEMI", "ANTI", + "RIGHT_SEMI", "RIGHT_ANTI", "SINGLE", "MARK": + return ast.JoinType(name) } - raise("unsupported join type \"%s\" in JOIN BY", label) - return ast.JoinInner + return ast.JoinType(normalizeKeyword(label)) } // applyJoinQualifier fills ON/USING. @@ -719,19 +714,26 @@ func (tc *transformContext) transformBaseExprNode(n tnode) ast.Expr { // TableUnpivotClause <- 'UNPIVOT' IncludeOrExcludeNulls? Parens(TableUnpivotClauseBody) TableAlias? func (tc *transformContext) transformTableUnpivot(left ast.TableRef, n tnode) ast.TableRef { ref := &ast.PivotRef{Source: left} - ref.SetSpan(n.span()) if ien, ok := n.child(1).opt(); ok { _, kind := ien.sole().choice() ref.IncludeNulls = kind.name() == "IncludeNulls" } body := n.child(2).parens() + // upstream's unpivot ref location covers the clause body inside the + // parentheses + ref.SetSpan(body.span()) // TableUnpivotClauseBody <- UnpivotHeader 'FOR' UnpivotValueList+ ref.UnpivotNames = tc.transformUnpivotHeader(body.child(0)) - for _, uv := range body.child(2).repeat() { + valueLists := body.child(2).repeat() + if len(valueLists) > 1 { + raise("UNPIVOT requires a single pivot element") + } + for _, uv := range valueLists { // UnpivotValueList <- UnpivotHeader 'IN' UnpivotTargetList var col ast.PivotColumn col.UnpivotNames = tc.transformUnpivotHeader(uv.child(0)) - for _, e := range uv.child(2).sole().sole().parens().listElems() { + // UnpivotTargetList <- Parens(TargetList) + for _, e := range uv.child(2).parens().listElems() { col.Entries = append(col.Entries, tc.unpivotEntry(e)) } ref.Pivots = append(ref.Pivots, col) @@ -814,7 +816,7 @@ func (tc *transformContext) transformPivotColumnEntry(n tnode) ast.PivotColumn { case "PivotColumnSubquery": // BaseExpression 'IN' Parens(SelectStatementInternal) return ast.PivotColumn{ - PivotExpressions: []ast.Expr{tc.transformBaseExprNode(alt.child(0).sole())}, + PivotExpressions: []ast.Expr{tc.transformBaseExprNode(alt.child(0))}, Subquery: tc.transformSelectInternalStatement(alt.child(2).parens()), } case "PivotValueList":