Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON literals are passed as nil values #31

Open
paulourio opened this issue Jul 10, 2023 · 0 comments
Open

JSON literals are passed as nil values #31

paulourio opened this issue Jul 10, 2023 · 0 comments

Comments

@paulourio
Copy link

For a statement like SELECT JSON '1' we have the following AST:

QueryStatement [0-15]
  Query [0-15]
    Select [0-15]
      SelectList [7-15]
        SelectColumn [7-15]
          JSONLiteral('1') [7-15]

However, from inside of the n *ast.SelectColumNode, n.Child(0) returns nil instead of a ast.Node with *ast.JSONLiteralNode.

The language feature zetasql.FeatureJsonType is enabled, and other features like FeatureJsonArrayFunctions, FeatureJsonLegacyParse, FeatureJsonNoValidation, FeatureJsonValueExtractionFunctions have no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant