cloudspannerecosystem / memefish

memefish is the foundation to analyze Spanner SQL
https://cloudspannerecosystem.dev/memefish/
MIT License
76 stars 19 forks source link

Support named arguments of function calls #113

Closed apstndb closed 1 month ago

apstndb commented 1 month ago

https://github.com/google/zetasql/blob/master/docs/functions-reference.md#named-arguments

named_argument => value

This syntax has not yet been described in Cloud Spanner's function calls in GoogleSQL doc, but it is already used in search functions and methematical functions.

e.g.

APPROX_COSINE_DISTANCE(vector1, vector2, options=>value)
SEARCH(
  tokens,
  raw_search_query
  [, enhance_query=>{ TRUE | FALSE }]
  [, language_tag=>value]
)