macbre / sql-metadata

Uses tokenized query returned by python-sqlparse and generates query metadata

Home Page:https://pypi.python.org/pypi/sql-metadata

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not supported query type Error

Chintan-D opened this issue · comments

Parsing following query errors out:

    query = '''
    CREATE TEMPORARY FUNCTION myudf AS 'com.udf.myudf';

    SELECT
     field_a
    ,mudf(field_b) AS field_b
    FROM some_schema.some_table
    '''
    print(Parser(query).tables)

Hey, need to add support for creating functions by hive.
You can use it fork: https://github.com/MiuNice/sql-metadata/tree/support_hive_create_function.

Seems to be fixed by #500. Thanks, @MiuNice!