Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support hive create function #500

Merged
merged 3 commits into from
Jun 15, 2024

Conversation

MiuNice
Copy link
Contributor

@MiuNice MiuNice commented Jun 14, 2024

@MiuNice MiuNice requested review from macbre and collerek as code owners June 14, 2024 08:11
@MiuNice MiuNice force-pushed the support_hive_create_function branch from a7eaa3f to 12c3628 Compare June 14, 2024 08:18
Comment on lines +98 to +114
def test_hive_create_function():
query = """
CREATE FUNCTION simple_udf AS 'com.example.hive.udf.SimpleUDF'
USING JAR 'hdfs:///user/hive/udfs/simple-udf.jar'
WITH SERDEPROPERTIES (
"hive.udf.param1"="value1",
"hive.udf.param2"="value2"
);
"""
parser = Parser(query)
assert parser.query_type == QueryType.CREATE

query = """
CREATE TEMPORARY FUNCTION myudf AS 'com.udf.myudf';
"""
parser = Parser(query)
assert parser.query_type == QueryType.CREATE
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@macbre macbre self-assigned this Jun 15, 2024
@macbre macbre merged commit dbaa329 into macbre:master Jun 15, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants