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

Support protobuf NEW operators #119

Conversation

apstndb
Copy link
Contributor

@apstndb apstndb commented Sep 28, 2024

Part of #89

This PR adds NEW operators for Protocol Buffers.

https://cloud.google.com/spanner/docs/reference/standard-sql/operators#new_operator

NEW protocol_buffer {...}: Creates a protocol buffer using a map constructor.

NEW protocol_buffer {
  field_name: literal_or_expression
  field_name { ... }
  repeated_field_name: [literal_or_expression, ... ]
}

NEW protocol_buffer (...): Creates a protocol buffer using a parenthesized list of arguments.

NEW protocol_buffer(field [AS alias], ...field [AS alias])

@apstndb apstndb changed the title Feature/support protobuf new operators Support protobuf NEW operators Sep 28, 2024
@apstndb apstndb mentioned this pull request Sep 29, 2024
5 tasks
@apstndb apstndb force-pushed the feature/support-protobuf-new-operators branch from b0e755d to 9190a74 Compare October 1, 2024 03:56
@apstndb
Copy link
Contributor Author

apstndb commented Oct 1, 2024

Rebase to use ast.NamedType.

@apstndb
Copy link
Contributor Author

apstndb commented Oct 15, 2024

Updated to use helper functions #120

@apstndb
Copy link
Contributor Author

apstndb commented Oct 19, 2024

Merge to use parseCommaSeparatedList().

parser.go Show resolved Hide resolved
@apstndb
Copy link
Contributor Author

apstndb commented Oct 19, 2024

Merge to include ARRAY fix

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

Successfully merging this pull request may close these issues.

1 participant