[SPARK-37216][SQL] Add the Hive macro functionality to SparkSQL#34492
[SPARK-37216][SQL] Add the Hive macro functionality to SparkSQL#34492hgs19921112 wants to merge 4 commits intoapache:masterfrom hgs19921112:master
Conversation
|
Can one of the admins verify this patch? |
|
Can anayone have a see? If this pr is useless , I will close it. |
|
This seems to have some overlap with the recent functionality announced by Databricks (as an internal/proprietary feature): https://databricks.com/blog/2021/10/20/introducing-sql-user-defined-functions.html |
|
| '(' columns=multipartIdentifierPropertyList ')' | ||
| (OPTIONS options=propertyList)? #createIndex | ||
| | DROP INDEX (IF EXISTS)? identifier ON TABLE? multipartIdentifier #dropIndex | ||
| | CREATE TEMPORARY MACRO IDENTIFIER '(' colTypeList ')' |
There was a problem hiding this comment.
Might be:
"| CREATE TEMPORARY MACRO IDENTIFIER '(' colTypeList? ')'"
to support no arg macros.
The colTypeList is optional.
What changes were proposed in this pull request?
Add the Hive macro functionality to SparkSQL
Why are the changes needed?
Some Hive sql can move to SparkSQL Smoothly
Does this PR introduce any user-facing change?
Some new DDL like 'create temparory macro ...'
How was this patch tested?
unit test
Authored-by: hgs19921112 haoguangshi@gmail.com