We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
STRUCT can be used in CREATE MODEL, but it can't be parsed because CreateModelColumn uses SchemaType and StructType doesn't implement SchemaType.
STRUCT
CREATE MODEL
CreateModelColumn
SchemaType
StructType
CREATE MODEL MODEL_NAME INPUT(content STRING(MAX)) OUTPUT( embeddings STRUCT< statistics STRUCT<truncated BOOL, token_count FLOAT64>, values ARRAY<FLOAT64>> ) REMOTE OPTIONS ( endpoint = '//aiplatform.googleapis.com/projects/PROJECT/locations/LOCATION/publishers/google/models/textembedding-gecko$MODEL_VERSION' )
I think StructType should also be a SchemaType. Validation is a responsibility of analyzer.
Note: column_type() of cloud-spanner-emulator includes STRUCT.
column_type()
https://github.com/GoogleCloudPlatform/cloud-spanner-emulator/blob/7ad3d598613bc6fef5ef9806bb5a3ee343f15586/backend/schema/parser/ddl_parser.jjt#L337-L356
The text was updated successfully, but these errors were encountered:
No branches or pull requests
STRUCT
can be used inCREATE MODEL
, but it can't be parsed becauseCreateModelColumn
usesSchemaType
andStructType
doesn't implementSchemaType
.I think
StructType
should also be aSchemaType
. Validation is a responsibility of analyzer.Note:
column_type()
of cloud-spanner-emulator includesSTRUCT
.https://github.com/GoogleCloudPlatform/cloud-spanner-emulator/blob/7ad3d598613bc6fef5ef9806bb5a3ee343f15586/backend/schema/parser/ddl_parser.jjt#L337-L356
The text was updated successfully, but these errors were encountered: