Creating hive table using parquet file metadata

后端 未结 6 1464
面向向阳花
面向向阳花 2021-02-01 11:01

I wrote a DataFrame as parquet file. And, I would like to read the file using Hive using the metadata from parquet.

Output from writing parquet write

_co         


        
6条回答
  •  情话喂你
    2021-02-01 11:19

    Actually, Impala supports

    CREATE TABLE LIKE PARQUET
    

    (no columns section altogether):

    http://www.cloudera.com/content/www/en-us/documentation/archive/impala/2-x/2-1-x/topics/impala_create_table.html

    Tags of your question have "hive" and "spark" and I don't see this is implemented in Hive, but in case you use CDH, it may be what you were looking for.

提交回复
热议问题