You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ go run github.com/cloudspannerecosystem/memefish/tools/parse@latest --mode statement \
'SELECT * FROM Singers CROSS JOIN@{JOIN_METHOD=APPLY_JOIN} Albums'
$ go run github.com/cloudspannerecosystem/memefish/tools/parse@latest --mode statement \
'SELECT * FROM Singers JOIN@{JOIN_METHOD=APPLY_JOIN} Albums USING (SingerId)'
ZETASQL_EXPECT_OK(
Query("SELECT 1 FROM Users GROUP @{group_method=hash_group} BY Name"));
ZETASQL_EXPECT_OK(
Query("SELECT 1 FROM Users GROUP @{group_method=stream_group} BY Name"));
ZETASQL_EXPECT_OK(
Query("SELECT 1 FROM Users GROUP @{group_type=hash_group} BY Name"));
ZETASQL_EXPECT_OK(
Query("SELECT 1 FROM Users GROUP @{group_type=stream_group} BY Name"));
The text was updated successfully, but these errors were encountered:
Research all hint position, it would be documented
or undocumented(only in ZetaSQL).query
statement hints
Actually, multiple hint structures are not permitted. It can only be merged.
table hints
https://cloud.google.com/spanner/docs/reference/standard-sql/query-syntax#from_clause
https://cloud.google.com/spanner/docs/reference/standard-sql/query-syntax#unnest_operator
join hints
https://cloud.google.com/spanner/docs/reference/standard-sql/query-syntax#join_types
function hints
https://cloud.google.com/spanner/docs/reference/standard-sql/functions-reference#disable_inline
graph hints
Pipe hints
TODO
DML hints
INSERT statement doesn't support any hints.
https://cloud.google.com/spanner/docs/reference/standard-sql/dml-syntax#insert-statement
Hints of DELETE statement
Supports statement hints and table hints.
Hints of UPDATE statement
UPDATE statement supports statement hints and table hints
https://cloud.google.com/spanner/docs/reference/standard-sql/dml-syntax#update-statement
Current compatibility
Statement hints of query are implemented
Table hints on table name are implemented
Acutually, table hint with subquery seems to be invalid in real Spanner instance.
Table hints with CTE name and UNNEST is valid, but I couldn't find valid values
JOIN hints are implemented
DML hints are not implemented.
Function hints are not implemented.
Undocument hint positions
Group hints
They seem to be functional so it is better to be implemented.
https://github.com/GoogleCloudPlatform/cloud-spanner-emulator/blob/7f22a69c0d331a980bc6be6c0d3c6117827b16de/tests/conformance/cases/query_hints.cc#L139-L146
The text was updated successfully, but these errors were encountered: