How to Query parquet data from Amazon Athena?

后端 未结 3 1023
遥遥无期
遥遥无期 2021-02-08 22:51

Athena creates a temporary table using fields in S3 table. I have done this using JSON data. Could you help me on how to create table using parquet data?

I have tried fo

3条回答
  •  一个人的身影
    2021-02-08 23:37

    steps:
    1. create your my_table_json
    2. insert data into my_table_json (verify existence of the created json files in the table 'LOCATION')
    3. create my_table_parquet: same create statement as my_table_json except you need to add 'STORED AS PARQUET' clause.
    4. run: INSERT INTO my_table_parquet SELECT * FROM my_table_json

提交回复
热议问题