Presto not able query Hive partition external table
See original GitHub issueI have created the External table on hive from hadoop path with year and month partitions.
I have connected the hive with presto. I am able to query the data in hive, but the same table is not returning the data with presto(returning 0 rows).
Presto: 0.213
presto:retaildemov2> select * from customer; customer_id | account_num | lname | fname | mi | address1 | address2 | address3 | address4 | city | state_province | postal_code | country | customer_region_id | phone1 | phone2 | birthdate | marital_sta -------------+-------------+-------+-------+----+----------+----------+----------+----------+------+----------------+-------------+---------+--------------------+--------+--------+-----------+------------ (0 rows)
num_cars_owned | integer | | fullname | varchar | | event_ts | timestamp | | year | varchar | partition key | month | varchar | partition key |
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Hello from 2021.
At some point, looks like Presto has added
system.sync_partition_metadata
which should remove the need to runmsck repair
in Hive / Spark / Athena.i have noticed that after msck repair, i needed to run a select query in hive before presto can pick up the change and show results for select queries… no idea why though…