Skip to content

Fix the import of SMALLINT in ParquetReader#16152

Merged
vkorukanti merged 1 commit intoprestodb:masterfrom
chliang71:chliang-smallint-import
May 26, 2021
Merged

Fix the import of SMALLINT in ParquetReader#16152
vkorukanti merged 1 commit intoprestodb:masterfrom
chliang71:chliang-smallint-import

Conversation

@chliang71
Copy link
Contributor

Currently Parquet imports SMALLINT from
com.facebook.presto.common.type.StandardTypes.SMALLINT

This is a string "SMALLINT", the expected type here is actually a SMALLINT type object. Namely:
com.facebook.presto.common.type.SmallintType.SMALLINT

cc. @vkorukanti do you mind taking a look?

@vkorukanti
Copy link
Contributor

@chliang71 Thanks for fixing this. Could you please add a unitest in this test suite?

@chliang71
Copy link
Contributor Author

@chliang71 Thanks for fixing this. Could you please add a unitest in this test suite?

I added a test in AbstractTestParquetReader. The test fails without the fix, and succeeded with the fix. Thanks.

@vkorukanti vkorukanti self-requested a review May 25, 2021 22:01
@chliang71 chliang71 force-pushed the chliang-smallint-import branch from 0f480c6 to e48f7a3 Compare May 25, 2021 22:01
@vkorukanti vkorukanti merged commit 1463e68 into prestodb:master May 26, 2021
@chliang71 chliang71 deleted the chliang-smallint-import branch May 26, 2021 16:53
@jainxrohit jainxrohit mentioned this pull request Jun 5, 2021
4 tasks
@ajaygeorge ajaygeorge mentioned this pull request Jun 9, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants