Skip to content

HIVE-28326: Fix StageIDsRearranger - #5299

Merged
deniskuzZ merged 1 commit into
apache:masterfrom
ngsg:HIVE-28326-fix-StageIDsRearranger
Jun 27, 2024
Merged

HIVE-28326: Fix StageIDsRearranger#5299
deniskuzZ merged 1 commit into
apache:masterfrom
ngsg:HIVE-28326-fix-StageIDsRearranger

Conversation

@ngsg

@ngsg ngsg commented Jun 14, 2024

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

StageIDsRearranger now returns PhysicalContext instead of null.

Why are the changes needed?

The return value of a PhysicalResolver is passed to another PhysicalResolver. So returning null makes problem in the following PhysicalResolver.

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

Using manyViewJoin.q. Also I changed the test driver to TestMiniLlapLocalCliDriver, which becomes the default test driver since HIVE-23510.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

join_vc.q,\
list_bucket_dml_8.q,\
localtimezone.q,\
manyViewJoin.q,\

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why can we test HIVE-28326 using manyViewJoin.q? I applied the change of StageIDsRearranger.java, built it, and run mvn test -Dtest=TestCliDriver -Dtest.output.overwrite=false -Dqfile=manyViewJoin.q. The test succeeded on my machine.

@okumin okumin Jun 24, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I understand the test case with the original revision fails with NPE when I use TestMiniLlapLocalCliDriver.

See ./ql/target/tmp/log/hive.log or ./itests/qtest/target/tmp/log/hive.log, or check ./ql/target/surefire-reports or ./itests/qtest/target/surefire-reports/ for specific test cases logs.
 java.lang.NullPointerException
	at org.apache.hadoop.hive.ql.optimizer.physical.LlapDecider.resolve(LlapDecider.java:530)
	at org.apache.hadoop.hive.ql.parse.TezCompiler.optimizeTaskPlan(TezCompiler.java:834)
	at org.apache.hadoop.hive.ql.parse.TaskCompiler.compile(TaskCompiler.java:340)

@okumin okumin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I have confirmed all PhysicalPlanResolvers used in TezCompiler returns a context now

@deniskuzZ deniskuzZ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM +1

@deniskuzZ
deniskuzZ merged commit ec05eda into apache:master Jun 27, 2024
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Sep 14, 2024
dengzhhu653 pushed a commit to dengzhhu653/hive that referenced this pull request Sep 20, 2024
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