Skip to content

Conversation

@rzhang10
Copy link
Member

Previously, LegacyHiveTableScan only supports hive partition columns of string type, this patch leverage the Binder to augment the expressions (literals) with their corresponding types information and feed it to ExpressionToPartitionFilterString, thus has the power to handle different partition column types such as Timestamp and Date.

After this patch, iceberg can support reading partitioned tables in our existing hive metastore which has date and timestamp typed partition columns.

Copy link

@shenodaguirguis shenodaguirguis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this patch @rzhang10!
Couple minor comments.

}

@Test
public void testToPartitionFilterStringEscapeStringLiterals() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why remove?

import static org.apache.iceberg.hive.legacy.HiveExpressions.toPartitionFilterString;


public class TestHiveExpressions {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add tests for DATE and TIMESTAMP (and other datatypes we should support)?

@rzhang10
Copy link
Member Author

rzhang10 commented Jul 1, 2021

Please review #78 , which is a superset of this PR.

@rzhang10 rzhang10 deleted the support_date_and_timestamp_partition_columns branch October 12, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants