cloudspannerecosystem / memefish

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

Support function hints #198

Open neglect-yp opened 3 days ago

neglect-yp commented 3 days ago

Function hints are not yet supported.

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

$ go run ./tools/parse --mode query "SELECT
  SUBSTRING(CAST(x AS STRING), 2, 5) AS w,
  SUBSTRING(CAST(x AS STRING), 3, 7) AS y
FROM (SELECT SHA512(z) @{DISABLE_INLINE = TRUE} AS x FROM t)"
2024/11/12 23:35:16 syntax error: :4:24: expected token: ), but: @

  4:  FROM (SELECT SHA512(z) @{DISABLE_INLINE = TRUE} AS x FROM t)
                             ^
exit status 1