Skip to content

Allow reading TimeLogicalTypeAnnotation as BIGINT in parquet#16362

Merged
raunaqmorarka merged 1 commit intotrinodb:masterfrom
raunaqmorarka:pqr-time-bigint
Mar 4, 2023
Merged

Allow reading TimeLogicalTypeAnnotation as BIGINT in parquet#16362
raunaqmorarka merged 1 commit intotrinodb:masterfrom
raunaqmorarka:pqr-time-bigint

Conversation

@raunaqmorarka
Copy link
Member

@raunaqmorarka raunaqmorarka commented Mar 3, 2023

Description

Reading a parquet column annotated with TimeLogicalTypeAnnotation as a BIGINT type is allowed by Apache Hive.
Parquet files with such a type can be produced by Airbyte.

Additional context and related issues

Since only the iceberg connector in trino supports time(6) and it cannot directly start working with raw parquet files without usage of outside tools, there is a significant impediment to working with parquet files produced from airbyte containing time type right now.
https://trinodb.slack.com/archives/CGB0QHWSW/p1677680804930869

Release notes

( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text:

# Hive, Iceberg, Hudi, Delta
* Fix query failures when reading parquet files generated by Airbyte. ({issue}`16362`)

@cla-bot cla-bot bot added the cla-signed label Mar 3, 2023
@github-actions github-actions bot added hive Hive connector tests:hive labels Mar 3, 2023
Reading a parquet column annotated with TimeLogicalTypeAnnotation
as a BIGINT type is allowed by Apache Hive.
Parquet files with such a type can be produced by Airbyte.
@raunaqmorarka raunaqmorarka merged commit ba7353d into trinodb:master Mar 4, 2023
@raunaqmorarka raunaqmorarka deleted the pqr-time-bigint branch March 4, 2023 06:05
@github-actions github-actions bot added this to the 410 milestone Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed hive Hive connector

Development

Successfully merging this pull request may close these issues.

3 participants