Skip to content

Conversation

@beliefer
Copy link
Contributor

What changes were proposed in this pull request?

This PR used to optimize some Orc test code in OrcSourceSuite.scala

Why are the changes needed?

Improve code.

Does this PR introduce any user-facing change?

'No'. Just improve code for UT.

How was this patch tested?

Jenkins test.

@github-actions github-actions bot added the SQL label Nov 26, 2021
@SparkQA
Copy link

SparkQA commented Nov 26, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50139/

@SparkQA
Copy link

SparkQA commented Nov 26, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50139/

@SparkQA
Copy link

SparkQA commented Nov 26, 2021

Test build #145669 has finished for PR 34723 at commit 8c464a0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Sorry, but hold on please, @beliefer .

Although this PR itself is correct, the previous commit seems to misleading.
withAllOrcReaders is not correct in Apache Spark context because this only tests native OrcReaders. We have hive ORC reader too.

@dongjoon-hyun
Copy link
Member

Let's proceed this after #34733 .

@beliefer
Copy link
Contributor Author

Let's proceed this after #34733 .

I see.

@dongjoon-hyun
Copy link
Member

#34733 is merged. Could you rebase this PR to the master branch, @beliefer ?

@dongjoon-hyun
Copy link
Member

BTW, is this PR include all instances like this, @beliefer ? Could you check other places too?

@beliefer beliefer changed the title [MINOR][SQL] Optimize some Orc test code [SPARK-37492][SQL] Optimize Orc test code with withAllNativeOrcReaders Nov 30, 2021
@beliefer
Copy link
Contributor Author

BTW, is this PR include all instances like this, @beliefer ? Could you check other places too?

Yes. I checked every places.

@SparkQA
Copy link

SparkQA commented Nov 30, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50208/

@SparkQA
Copy link

SparkQA commented Nov 30, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/50208/

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @beliefer and @srowen .
Merged to master.

SQLConf.ORC_VECTORIZED_READER_ENABLED.key -> vectorized) {
withSQLConf(
SQLConf.ORC_IMPLEMENTATION.key -> orcImpl) {
withAllNativeOrcReaders {
Copy link
Member

@dongjoon-hyun dongjoon-hyun Nov 30, 2021

Choose a reason for hiding this comment

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

Ur, @beliefer . This is technically correct, but logically misleading again. When orcImpl=hive, we are not testing nativeOrcReaders. The original code is more natural.

Copy link
Member

Choose a reason for hiding this comment

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

I'll merge this PR without this part.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dongjoon-hyun Thank you for the reminder.

@SparkQA
Copy link

SparkQA commented Nov 30, 2021

Test build #145738 has finished for PR 34723 at commit 96bb4f5.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

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.

4 participants