Skip to content
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

HIVE-28560: AssertionError for jdbc queries because of incorrec… #5491

Closed
wants to merge 3 commits into from

Conversation

soumyakanti3578
Copy link
Contributor

…t expectedRel in SqlImplementor

What changes were proposed in this pull request?

https://issues.apache.org/jira/browse/HIVE-28560

Call setFetch before the expectedRel is changed to a Project

Why are the changes needed?

We get an AssertionError otherwise

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

mvn test -pl itests/qtest  -Pitests -Dtest=TestMiniLlapLocalCliDriver -Dtest.output.overwrite=true -Dqfile=jdbc_sort_limit.q

Comment on lines 1 to 5
--!qt:database:postgres:q_test_tpcds_tables.sql

CREATE EXTERNAL TABLE IF NOT EXISTS `date_dim`(
`d_date_sk` int,
`d_date_id` string,
Copy link
Contributor

@difin difin Oct 8, 2024

Choose a reason for hiding this comment

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

I don't understand the purpose of including this file q_test_tpcds_tables.sql here.
The same tables that are created by that file are also created in this q-test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

q_test_tpcds_tables.sql creates them in a postgres database in a docker container.
In this file, we create external tables for the jdbc tables, and eventually use these external tables for running qtests.

@soumyakanti3578 soumyakanti3578 changed the title HIVE-28560: AssertionError for jdbc tpcds queries because of incorrec… HIVE-28560: AssertionError for jdbc queries because of incorrec… Oct 10, 2024
Copy link

sonarcloud bot commented Oct 11, 2024

@soumyakanti3578 soumyakanti3578 marked this pull request as ready for review October 11, 2024 05:04
Copy link
Contributor

@zabetak zabetak left a comment

Choose a reason for hiding this comment

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

LGTM, will merge soon!

@zabetak zabetak closed this in 771b003 Oct 14, 2024
ryukobayashi pushed a commit to ryukobayashi/hive that referenced this pull request Oct 15, 2024
…le contains LIMIT (Soumyakanti Das reviewed by Stamatis Zampetakis)

Close apache#5491
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants