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 ML.PREDICT a.k.a. TVF with path #146

Closed
apstndb opened this issue Oct 19, 2024 · 0 comments · Fixed by #209
Closed

Support ML.PREDICT a.k.a. TVF with path #146

apstndb opened this issue Oct 19, 2024 · 0 comments · Fixed by #209

Comments

@apstndb
Copy link
Contributor

apstndb commented Oct 19, 2024

https://cloud.google.com/spanner/docs/reference/standard-sql/ml-functions#mlpredict

ML.PREDICT(input_model, input_relation[, model_parameters])

input_model:
  MODEL model_name

input_relation:
  { input_table | input_subquery }

input_table:
  TABLE table_name

model_parameters:
  STRUCT(parameter_value AS parameter_name[, ...])

I think it can be a generalized as TVF with path name.

ZetaSQL references

https://github.com/google/zetasql/blob/194cd32b5d766d60e3ca442651d792c7fe54ea74/zetasql/parser/gen_parse_tree.py#L5434-L5538

TVF has ASTTableClause and ASTModelClause.

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 a pull request may close this issue.

1 participant