New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query with map field got wrong result. #1321
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@prestosql.io. For more information, see https://github.com/prestosql/cla. |
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@prestosql.io. For more information, see https://github.com/prestosql/cla. |
Thanks for reporting this & fixing!
@JackyWoo is it reversed? |
presto-hive/src/main/java/io/prestosql/plugin/hive/rcfile/RcFilePageSourceFactory.java
Show resolved
Hide resolved
2. fix comment
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please submit the signed CLA to cla@prestosql.io. For more information, see https://github.com/prestosql/cla. |
@JackyWoo would you be able to sign the CLA? See https://github.com/prestosql/cla for more info. |
@findepi I have submit CLA to cla@prestosql.io. |
@cla-bot check |
The cla-bot has been summoned, and re-checked this pull request! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. @JackyWoo could you please squash the commits?
presto-hive/src/main/java/io/prestosql/plugin/hive/rcfile/RcFilePageSourceFactory.java
Outdated
Show resolved
Hide resolved
presto-hive/src/main/java/io/prestosql/plugin/hive/rcfile/RcFilePageSourceFactory.java
Outdated
Show resolved
Hide resolved
Co-Authored-By: Piotr Findeisen <piotr.findeisen@gmail.com>
Co-Authored-By: Piotr Findeisen <piotr.findeisen@gmail.com>
@findepi Thanks for help, it is done. |
Merged as aaf43e7, thanks! |
…nts#COLLECTION_DELIM, but also introduced a breaking change. trinodb#1321 fixed this compatibility issue for RC files, while leaving TEXT files out.
We use hive 1.x and presto 315 in my company. And we have a table which is defined by hive like below :
When I send a query to presto :
I get the result which is wrong :
Finally I find that for map field collection deliminator config key hive 1.x use "colelction.delim" but hive 3.x use "collection.delim".
Prestosql 315 relies on hive 3.x, so it use “collection.delim” config.
Resolution : when getting deliminator first use “collection.delim” config, if get null then use “colelction.delim” config.
So prestosql 315 can query both hive 1.x and 3.x defined table correctly.