google / google/googlesql

create temp function not supported

Open
#18 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.6k
Forks
260
PR merge metrics
No merged PRs in 30d

Description

Are creating temp functions in the SQL statement not supported?
I used `Analyzer.extractTableNamesFromStatement` for this query:
```sql
CREATE TEMPORARY FUNCTION plusone(value INT64)
RETURNS INT64
LANGUAGE js AS """
return parseInt(value) + 1;
""";

SELECT plusone(1) AS two;
```
gives an error
`com.google.zetasql.io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Syntax error: Unexpected keyword SELECT`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.