diff --git a/ast/create_json_index_statement.go b/ast/create_json_index_statement.go new file mode 100644 index 00000000..0c064018 --- /dev/null +++ b/ast/create_json_index_statement.go @@ -0,0 +1,15 @@ +package ast + +// CreateJsonIndexStatement represents CREATE JSON INDEX name ON table (column) +// [FOR ('path', ...)] [WITH (options)]. +type CreateJsonIndexStatement struct { + Fragment + Name *Identifier `json:"Name,omitempty"` + OnName *SchemaObjectName `json:"OnName,omitempty"` + JsonColumn *Identifier `json:"JsonColumn,omitempty"` + ForJsonPaths []*StringLiteral `json:"ForJsonPaths,omitempty"` + IndexOptions []IndexOption `json:"IndexOptions,omitempty"` +} + +func (*CreateJsonIndexStatement) node() {} +func (*CreateJsonIndexStatement) statement() {} diff --git a/ast/function_call.go b/ast/function_call.go index 1f200a30..a4c7d180 100644 --- a/ast/function_call.go +++ b/ast/function_call.go @@ -78,18 +78,20 @@ func (*JsonKeyValue) node() {} // FunctionCall represents a function call. type FunctionCall struct { Fragment - CallTarget CallTarget `json:"CallTarget,omitempty"` - FunctionName *Identifier `json:"FunctionName,omitempty"` - Parameters []ScalarExpression `json:"Parameters,omitempty"` - UniqueRowFilter string `json:"UniqueRowFilter,omitempty"` - WithinGroupClause *WithinGroupClause `json:"WithinGroupClause,omitempty"` - OverClause *OverClause `json:"OverClause,omitempty"` - IgnoreRespectNulls []*Identifier `json:"IgnoreRespectNulls,omitempty"` - WithArrayWrapper bool `json:"WithArrayWrapper,omitempty"` - TrimOptions *Identifier `json:"TrimOptions,omitempty"` // For TRIM(LEADING/TRAILING/BOTH chars FROM string) - Collation *Identifier `json:"Collation,omitempty"` - JsonParameters []*JsonKeyValue `json:"JsonParameters,omitempty"` // For JSON_OBJECT function key:value pairs - AbsentOrNullOnNull []*Identifier `json:"AbsentOrNullOnNull,omitempty"` // For JSON_OBJECT/JSON_ARRAY NULL ON NULL or ABSENT ON NULL + CallTarget CallTarget `json:"CallTarget,omitempty"` + FunctionName *Identifier `json:"FunctionName,omitempty"` + Parameters []ScalarExpression `json:"Parameters,omitempty"` + UniqueRowFilter string `json:"UniqueRowFilter,omitempty"` + WithinGroupClause *WithinGroupClause `json:"WithinGroupClause,omitempty"` + OverClause *OverClause `json:"OverClause,omitempty"` + IgnoreRespectNulls []*Identifier `json:"IgnoreRespectNulls,omitempty"` + WithArrayWrapper bool `json:"WithArrayWrapper,omitempty"` + TrimOptions *Identifier `json:"TrimOptions,omitempty"` // For TRIM(LEADING/TRAILING/BOTH chars FROM string) + Collation *Identifier `json:"Collation,omitempty"` + JsonParameters []*JsonKeyValue `json:"JsonParameters,omitempty"` // For JSON_OBJECT function key:value pairs + AbsentOrNullOnNull []*Identifier `json:"AbsentOrNullOnNull,omitempty"` // For JSON_OBJECT/JSON_ARRAY NULL ON NULL or ABSENT ON NULL + ReturnType []DataTypeReference `json:"ReturnType,omitempty"` // For JSON_* RETURNING data_type + JsonOrderByClause *OrderByClause `json:"JsonOrderByClause,omitempty"` // For JSON_ARRAYAGG(... ORDER BY ...) } func (*FunctionCall) node() {} diff --git a/parser/marshal.go b/parser/marshal.go index c7d2d0d3..bf3b7524 100644 --- a/parser/marshal.go +++ b/parser/marshal.go @@ -482,6 +482,8 @@ func statementToJSON(stmt ast.Statement) jsonNode { return addSpan(dropLoginStatementToJSON(s), frag(stmt)) case *ast.CreateIndexStatement: return addSpan(createIndexStatementToJSON(s), frag(stmt)) + case *ast.CreateJsonIndexStatement: + return addSpan(createJsonIndexStatementToJSON(s), frag(stmt)) case *ast.CreateSpatialIndexStatement: return addSpan(createSpatialIndexStatementToJSON(s), frag(stmt)) case *ast.CreateAsymmetricKeyStatement: @@ -2186,6 +2188,16 @@ func scalarExpressionToJSON(expr ast.ScalarExpression) jsonNode { } node["AbsentOrNullOnNull"] = idents } + if len(e.ReturnType) > 0 { + types := make([]jsonNode, len(e.ReturnType)) + for i, dt := range e.ReturnType { + types[i] = dataTypeReferenceToJSON(dt) + } + node["ReturnType"] = types + } + if e.JsonOrderByClause != nil { + node["JsonOrderByClause"] = orderByClauseToJSON(e.JsonOrderByClause) + } return addSpan(node, frag(expr)) case *ast.PartitionFunctionCall: node := jsonNode{ @@ -22785,3 +22797,33 @@ func securityPredicateActionToJSON(action *ast.SecurityPredicateAction) jsonNode } return addSpan(node, frag(action)) } + +func createJsonIndexStatementToJSON(s *ast.CreateJsonIndexStatement) jsonNode { + node := jsonNode{ + "$type": "CreateJsonIndexStatement", + } + if s.JsonColumn != nil { + node["JsonColumn"] = identifierToJSON(s.JsonColumn) + } + if len(s.ForJsonPaths) > 0 { + paths := make([]jsonNode, len(s.ForJsonPaths)) + for i, path := range s.ForJsonPaths { + paths[i] = stringLiteralToJSON(path) + } + node["ForJsonPaths"] = paths + } + if s.Name != nil { + node["Name"] = identifierToJSON(s.Name) + } + if s.OnName != nil { + node["OnName"] = schemaObjectNameToJSON(s.OnName) + } + if len(s.IndexOptions) > 0 { + opts := make([]jsonNode, len(s.IndexOptions)) + for i, opt := range s.IndexOptions { + opts[i] = indexOptionToJSON(opt) + } + node["IndexOptions"] = opts + } + return addSpan(node, frag(s)) +} diff --git a/parser/parse_select.go b/parser/parse_select.go index 66095ae7..9754377f 100644 --- a/parser/parse_select.go +++ b/parser/parse_select.go @@ -2458,14 +2458,17 @@ func (p *Parser) parseFunctionCallFromIdentifiers(identifiers []*ast.Identifier) spanV33, spanErr33 := p.parseParseCall(true) copyNameSpan(spanV33) return spanned(p, spanV33, astStart), spanErr33 - case "JSON_OBJECT": - spanV34, spanErr34 := p.parseJsonObjectCall() - copyNameSpan(spanV34) - return spanned(p, spanV34, astStart), spanErr34 - case "JSON_ARRAY": - spanV35, spanErr35 := p.parseJsonArrayCall() - copyNameSpan(spanV35) - return spanned(p, spanV35, astStart), spanErr35 + case "JSON_OBJECT", "JSON_ARRAY", "JSON_OBJECTAGG", "JSON_ARRAYAGG": + fc, err := p.parseJsonConstructorCall(identifiers[0]) + if err != nil { + return nil, err + } + if funcName == "JSON_OBJECTAGG" || funcName == "JSON_ARRAYAGG" { + // Aggregates may be followed by an OVER clause. + v, err := p.parsePostExpressionAccess(fc) + return spanned(p, v, astStart), err + } + return spanned(p, fc, astStart), nil } } @@ -2535,6 +2538,26 @@ func (p *Parser) parseFunctionCallFromIdentifiers(identifiers []*ast.Identifier) } } + // JSON_VALUE(expr, path RETURNING data_type) + if strings.ToUpper(p.curTok.Literal) == "RETURNING" { + p.nextToken() // consume RETURNING + dt, err := p.parseDataTypeReference() + if err != nil { + return nil, err + } + fc.ReturnType = append(fc.ReturnType, dt) + } + + // JSON_QUERY(expr, path WITH ARRAY WRAPPER) + if p.curTok.Type == TokenWith && strings.ToUpper(p.peekTok.Literal) == "ARRAY" { + p.nextToken() // consume WITH + p.nextToken() // consume ARRAY + if strings.ToUpper(p.curTok.Literal) == "WRAPPER" { + p.nextToken() // consume WRAPPER + } + fc.WithArrayWrapper = true + } + // Expect ) if p.curTok.Type != TokenRParen { return nil, fmt.Errorf("expected ) in function call, got %s", p.curTok.Literal) @@ -3412,8 +3435,6 @@ func (p *Parser) parseOdbcQualifiedJoinTableReference() (ast.TableReference, err // or an inline derived table (VALUES clause) like (VALUES (...), (...)) AS alias(cols) // or a data modification table reference (DML with OUTPUT) like (INSERT ... OUTPUT ...) AS alias func (p *Parser) parseDerivedTableReference() (ast.TableReference, error) { - p.parenQueryDepth++ - defer func() { p.parenQueryDepth-- }() astStart := p.curTok p.nextToken() // consume ( @@ -7837,7 +7858,7 @@ func (p *Parser) parseForClause() (ast.ForClause, error) { p.nextToken() // consume XML optStartTok := p.curTok spanV77, spanErr77 := p.parseXmlForClause() - if p.parenQueryDepth > 0 && spanErr77 == nil { + if p.parenDepth > 0 && spanErr77 == nil { // Inside a parenthesized query ScriptDom's clause span omits // the FOR XML keywords. p.spanFrom(optStartTok, spanV77) @@ -7848,7 +7869,15 @@ func (p *Parser) parseForClause() (ast.ForClause, error) { case "JSON": p.nextToken() // consume JSON + optStartTok := p.curTok spanV78, spanErr78 := p.parseJsonForClause() + if p.parenDepth > 0 && spanErr78 == nil { + // As with FOR XML, inside a parenthesized query ScriptDom's + // clause span omits the FOR JSON keywords. + p.spanFrom(optStartTok, spanV78) + spanV78.Pin() + return spanV78, nil + } return spanned(p, spanV78, astStart), spanErr78 default: @@ -8503,147 +8532,107 @@ func (p *Parser) parseParseCall(isTry bool) (ast.ScalarExpression, error) { }, astStart), nil } -// parseJsonObjectCall parses JSON_OBJECT('key':value, 'key2':value2, ... [NULL|ABSENT ON NULL]) -func (p *Parser) parseJsonObjectCall() (*ast.FunctionCall, error) { - astStart := p.curTok +// parseJsonConstructorCall parses the JSON constructor functions +// JSON_OBJECT / JSON_OBJECTAGG (key:value pairs) and JSON_ARRAY / +// JSON_ARRAYAGG (values), with optional ORDER BY (JSON_ARRAYAGG), +// NULL|ABSENT ON NULL and RETURNING data_type. The current token is the +// opening parenthesis. +func (p *Parser) parseJsonConstructorCall(name *ast.Identifier) (*ast.FunctionCall, error) { + upperName := strings.ToUpper(name.Value) + isObject := upperName == "JSON_OBJECT" || upperName == "JSON_OBJECTAGG" fc := &ast.FunctionCall{ - FunctionName: p.spanIdent("JSON_OBJECT", "NotQuoted"), + FunctionName: name, UniqueRowFilter: "NotSpecified", WithArrayWrapper: false, } p.nextToken() // consume ( - // Parse key-value pairs + // parseOnNull consumes NULL ON NULL / ABSENT ON NULL if present. + parseOnNull := func() bool { + lit := strings.ToUpper(p.curTok.Literal) + if (lit == "NULL" || lit == "ABSENT") && p.peekIsOnNull() { + fc.AbsentOrNullOnNull = append(fc.AbsentOrNullOnNull, &ast.Identifier{Value: lit, QuoteType: "NotQuoted"}) + p.nextToken() // consume NULL or ABSENT + p.nextToken() // consume ON + p.nextToken() // consume NULL + return true + } + return false + } + for p.curTok.Type != TokenRParen && p.curTok.Type != TokenEOF { - // Check for NULL ON NULL or ABSENT ON NULL at start of loop - upperLit := strings.ToUpper(p.curTok.Literal) - if upperLit == "NULL" || upperLit == "ABSENT" { - // Look ahead to see if this is "NULL ON NULL" or "ABSENT ON NULL" - if p.peekIsOnNull() { - fc.AbsentOrNullOnNull = append(fc.AbsentOrNullOnNull, &ast.Identifier{Value: upperLit, QuoteType: "NotQuoted"}) - p.nextToken() // consume NULL or ABSENT - p.nextToken() // consume ON - p.nextToken() // consume NULL - continue - } + if parseOnNull() || strings.ToUpper(p.curTok.Literal) == "RETURNING" { + break } - // Parse key expression - keyExpr, err := p.parseScalarExpression() + expr, err := p.parseScalarExpression() if err != nil { return nil, err } - // Check for : (JSON key-value separator) - if p.curTok.Type == TokenColon { + if isObject && p.curTok.Type == TokenColon { + // ScriptDom lexes "name:" (no space) as a single label token, so + // a bare identifier key's span includes the colon. + if p.curTok.Pos == p.prevEndByte { + if col, ok := expr.(*ast.ColumnReferenceExpression); ok && col.MultiPartIdentifier != nil && + len(col.MultiPartIdentifier.Identifiers) > 0 { + ids := col.MultiPartIdentifier.Identifiers + if last := ids[len(ids)-1]; last != nil && last.QuoteType == "NotQuoted" { + col.FragmentLength++ + col.MultiPartIdentifier.FragmentLength++ + last.FragmentLength++ + } + } + } p.nextToken() // consume : - - // Parse value expression valueExpr, err := p.parseScalarExpression() if err != nil { return nil, err } - - jkv := &ast.JsonKeyValue{ - JsonKeyName: keyExpr, - JsonValue: valueExpr, - } + jkv := &ast.JsonKeyValue{JsonKeyName: expr, JsonValue: valueExpr} // The key-value pair spans from key through value. - p.spanFromChild(jkv, keyExpr) + p.spanFromChild(jkv, expr) fc.JsonParameters = append(fc.JsonParameters, jkv) } else { - // Just a regular parameter without colon (shouldn't happen for JSON_OBJECT) - fc.Parameters = append(fc.Parameters, keyExpr) + fc.Parameters = append(fc.Parameters, expr) } - // After parsing a value, check for NULL ON NULL or ABSENT ON NULL - postValueLit := strings.ToUpper(p.curTok.Literal) - if postValueLit == "NULL" || postValueLit == "ABSENT" { - if p.peekIsOnNull() { - fc.AbsentOrNullOnNull = append(fc.AbsentOrNullOnNull, &ast.Identifier{Value: postValueLit, QuoteType: "NotQuoted"}) - p.nextToken() // consume NULL or ABSENT - p.nextToken() // consume ON - p.nextToken() // consume NULL - // Continue to check for ) or comma + if upperName == "JSON_ARRAYAGG" && p.curTok.Type == TokenOrder { + obc, err := p.parseOrderByClause() + if err != nil { + return nil, err } + fc.JsonOrderByClause = obc } - if p.curTok.Type == TokenComma { - p.nextToken() // consume , - } else { + if parseOnNull() { break } - } - - if p.curTok.Type != TokenRParen { - return nil, fmt.Errorf("expected ) in JSON_OBJECT, got %s", p.curTok.Literal) - } - p.nextToken() // consume ) - - return spanned(p, fc, astStart), nil -} -// parseJsonArrayCall parses JSON_ARRAY(value1, value2, ... [NULL|ABSENT ON NULL]) -func (p *Parser) parseJsonArrayCall() (*ast.FunctionCall, error) { - astStart := p.curTok - - fc := &ast.FunctionCall{ - FunctionName: p.spanIdent("JSON_ARRAY", "NotQuoted"), - UniqueRowFilter: "NotSpecified", - WithArrayWrapper: false, - } - - p.nextToken() // consume ( - - // Parse array elements - for p.curTok.Type != TokenRParen && p.curTok.Type != TokenEOF { - // Check for NULL ON NULL or ABSENT ON NULL at start of loop - upperLit := strings.ToUpper(p.curTok.Literal) - if upperLit == "NULL" || upperLit == "ABSENT" { - // Look ahead to see if this is "NULL ON NULL" or "ABSENT ON NULL" - if p.peekIsOnNull() { - fc.AbsentOrNullOnNull = append(fc.AbsentOrNullOnNull, &ast.Identifier{Value: upperLit, QuoteType: "NotQuoted"}) - p.nextToken() // consume NULL or ABSENT - p.nextToken() // consume ON - p.nextToken() // consume NULL - continue - } + if p.curTok.Type != TokenComma { + break } + p.nextToken() // consume , + } - // Parse value expression - valueExpr, err := p.parseScalarExpression() + if strings.ToUpper(p.curTok.Literal) == "RETURNING" { + p.nextToken() // consume RETURNING + dt, err := p.parseDataTypeReference() if err != nil { return nil, err } - fc.Parameters = append(fc.Parameters, valueExpr) - - // After parsing a value, check for NULL ON NULL or ABSENT ON NULL - postValueLit := strings.ToUpper(p.curTok.Literal) - if postValueLit == "NULL" || postValueLit == "ABSENT" { - if p.peekIsOnNull() { - fc.AbsentOrNullOnNull = append(fc.AbsentOrNullOnNull, &ast.Identifier{Value: postValueLit, QuoteType: "NotQuoted"}) - p.nextToken() // consume NULL or ABSENT - p.nextToken() // consume ON - p.nextToken() // consume NULL - // Continue to check for ) or comma - } - } - - if p.curTok.Type == TokenComma { - p.nextToken() // consume , - } else { - break - } + fc.ReturnType = append(fc.ReturnType, dt) } if p.curTok.Type != TokenRParen { - return nil, fmt.Errorf("expected ) in JSON_ARRAY, got %s", p.curTok.Literal) + return nil, fmt.Errorf("expected ) in %s, got %s", upperName, p.curTok.Literal) } p.nextToken() // consume ) - return spanned(p, fc, astStart), nil + p.spanFromChild(fc, name) + return fc, nil } // peekIsOnNull checks if the next tokens are "ON NULL" diff --git a/parser/parse_statements.go b/parser/parse_statements.go index 5ec24e66..aa9c87a1 100644 --- a/parser/parse_statements.go +++ b/parser/parse_statements.go @@ -3066,6 +3066,11 @@ func (p *Parser) parseCreateStatement() (ast.Statement, error) { case "SPATIAL": spanV317, spanErr317 := p.parseCreateSpatialIndexStatement() return spanned(p, spanV317, astStart), spanErr317 + case "JSON": + if p.peekTok.Type == TokenIndex { + stmt, err := p.parseCreateJsonIndexStatement() + return spanned(p, stmt, astStart), err + } case "MATERIALIZED": spanV318, spanErr318 := p.parseCreateMaterializedViewStatement() return spanned(p, spanV318, astStart), spanErr318 @@ -12039,6 +12044,11 @@ func (p *Parser) parseCreateIndexOptions() []ast.IndexOption { p.nextToken() // consume value switch optionName { + case "OPTIMIZE_FOR_ARRAY_SEARCH": + options = append(options, &ast.IndexStateOption{ + OptionKind: "OptimizeForArraySearch", + OptionState: p.capitalizeFirst(strings.ToLower(valueStr)), + }) case "PAD_INDEX": options = append(options, &ast.IndexStateOption{ OptionKind: "PadIndex", @@ -16850,3 +16860,64 @@ func (p *Parser) parseBrokerPriorityParameters() []*ast.BrokerPriorityParameter return params } + +// parseCreateJsonIndexStatement parses +// CREATE JSON INDEX name ON table (column) [FOR ('path', ...)] [WITH (options)]. +// The current token is JSON. +func (p *Parser) parseCreateJsonIndexStatement() (*ast.CreateJsonIndexStatement, error) { + p.nextToken() // consume JSON + p.nextToken() // consume INDEX + + stmt := &ast.CreateJsonIndexStatement{Name: p.parseIdentifier()} + + if p.curTok.Type != TokenOn { + return nil, fmt.Errorf("expected ON in CREATE JSON INDEX, got %s", p.curTok.Literal) + } + p.nextToken() // consume ON + onName, err := p.parseSchemaObjectName() + if err != nil { + return nil, err + } + stmt.OnName = onName + + if p.curTok.Type != TokenLParen { + return nil, fmt.Errorf("expected ( in CREATE JSON INDEX, got %s", p.curTok.Literal) + } + p.nextToken() // consume ( + stmt.JsonColumn = p.parseIdentifier() + if p.curTok.Type != TokenRParen { + return nil, fmt.Errorf("expected ) in CREATE JSON INDEX, got %s", p.curTok.Literal) + } + p.nextToken() // consume ) + + // FOR ('path', ...) + if strings.ToUpper(p.curTok.Literal) == "FOR" && p.peekTok.Type == TokenLParen { + p.nextToken() // consume FOR + p.nextToken() // consume ( + for p.curTok.Type != TokenRParen && p.curTok.Type != TokenEOF { + path, err := p.parseStringLiteral() + if err != nil { + return nil, err + } + stmt.ForJsonPaths = append(stmt.ForJsonPaths, path) + if p.curTok.Type != TokenComma { + break + } + p.nextToken() // consume , + } + if p.curTok.Type != TokenRParen { + return nil, fmt.Errorf("expected ) after JSON index paths, got %s", p.curTok.Literal) + } + p.nextToken() // consume ) + } + + if p.curTok.Type == TokenWith { + p.nextToken() // consume WITH + stmt.IndexOptions = p.parseCreateIndexOptions() + } + + if p.curTok.Type == TokenSemicolon { + p.nextToken() + } + return stmt, nil +} diff --git a/parser/parser.go b/parser/parser.go index feae9d1d..15169b26 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -48,10 +48,10 @@ type Parser struct { // consumed semicolon token, used to verify that a span actually ends // with that semicolon before trimming it. lastSemiEndByte int - // parenQueryDepth tracks nesting inside parenthesized queries (derived - // tables); ScriptDom records FOR XML clauses there without the FOR XML - // keywords. - parenQueryDepth int + // parenDepth counts currently open parentheses among consumed tokens. + // Inside parentheses (subqueries, derived tables) ScriptDom records + // FOR XML / FOR JSON clauses without the FOR XML / FOR JSON keywords. + parenDepth int } func newParser(input string) *Parser { @@ -75,6 +75,14 @@ func (p *Parser) nextToken() { p.prevEndByte = end } } + switch p.curTok.Type { + case TokenLParen: + p.parenDepth++ + case TokenRParen: + if p.parenDepth > 0 { + p.parenDepth-- + } + } p.curTok = p.peekTok p.peekTok = p.lexer.NextToken() } diff --git a/parser/testdata/Baselines160_ComplexJsonObjectFunctionTests160/metadata.json b/parser/testdata/Baselines160_ComplexJsonObjectFunctionTests160/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/Baselines160_ComplexJsonObjectFunctionTests160/metadata.json +++ b/parser/testdata/Baselines160_ComplexJsonObjectFunctionTests160/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/Baselines170_ComplexJsonObjectFunctionTests170/metadata.json b/parser/testdata/Baselines170_ComplexJsonObjectFunctionTests170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/Baselines170_ComplexJsonObjectFunctionTests170/metadata.json +++ b/parser/testdata/Baselines170_ComplexJsonObjectFunctionTests170/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/Baselines170_JsonArrayAggOrderBy170/metadata.json b/parser/testdata/Baselines170_JsonArrayAggOrderBy170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/Baselines170_JsonArrayAggOrderBy170/metadata.json +++ b/parser/testdata/Baselines170_JsonArrayAggOrderBy170/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/Baselines170_JsonFunctionTests170/metadata.json b/parser/testdata/Baselines170_JsonFunctionTests170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/Baselines170_JsonFunctionTests170/metadata.json +++ b/parser/testdata/Baselines170_JsonFunctionTests170/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/Baselines170_JsonIndexTests170/metadata.json b/parser/testdata/Baselines170_JsonIndexTests170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/Baselines170_JsonIndexTests170/metadata.json +++ b/parser/testdata/Baselines170_JsonIndexTests170/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/Baselines170_JsonObjectAggOverClause170/metadata.json b/parser/testdata/Baselines170_JsonObjectAggOverClause170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/Baselines170_JsonObjectAggOverClause170/metadata.json +++ b/parser/testdata/Baselines170_JsonObjectAggOverClause170/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/ComplexJsonObjectFunctionTests160/metadata.json b/parser/testdata/ComplexJsonObjectFunctionTests160/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/ComplexJsonObjectFunctionTests160/metadata.json +++ b/parser/testdata/ComplexJsonObjectFunctionTests160/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/ComplexJsonObjectFunctionTests170/metadata.json b/parser/testdata/ComplexJsonObjectFunctionTests170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/ComplexJsonObjectFunctionTests170/metadata.json +++ b/parser/testdata/ComplexJsonObjectFunctionTests170/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/JsonArrayAggOrderBy170/metadata.json b/parser/testdata/JsonArrayAggOrderBy170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/JsonArrayAggOrderBy170/metadata.json +++ b/parser/testdata/JsonArrayAggOrderBy170/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/JsonFunctionTests170/metadata.json b/parser/testdata/JsonFunctionTests170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/JsonFunctionTests170/metadata.json +++ b/parser/testdata/JsonFunctionTests170/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/JsonIndexTests170/metadata.json b/parser/testdata/JsonIndexTests170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/JsonIndexTests170/metadata.json +++ b/parser/testdata/JsonIndexTests170/metadata.json @@ -1 +1 @@ -{"todo": true} +{} diff --git a/parser/testdata/JsonObjectAggOverClause170/metadata.json b/parser/testdata/JsonObjectAggOverClause170/metadata.json index ef120d97..0967ef42 100644 --- a/parser/testdata/JsonObjectAggOverClause170/metadata.json +++ b/parser/testdata/JsonObjectAggOverClause170/metadata.json @@ -1 +1 @@ -{"todo": true} +{}