apache / apache/datafusion-sqlparser-rs
Add support for UDFs: CREATE FUNCTION
- Dominant language
- Rust
- Stars
- 3.5k
- Forks
- 772
- Avg merge
- 4d 9h
- Merged PRs (30d)
- 17
Description
It would be great to have support for `CREATE FUNCTION` statement to define UDFs.
I think it makes sense to develop the more minimal variant of BigQuery first: support for `LANGUAGE` (e.g. javascript) and `AS` (sql) or even sql-only to start with.
https://cloud.google.com/bigquery/docs/reference/standard-sql/user-defined-functions
https://www.postgresql.org/docs/9.1/sql-createfunction.html
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by comparing the requested minimal CREATE FUNCTION syntax with the linked BigQuery and PostgreSQL references, focusing on LANGUAGE and AS. Done means the parser accepts the agreed SQL-only or LANGUAGE/AS form and rejects unsupported forms consistently; the issue does not name files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, sql
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100