Skip to content

[SPARK-40600] Support recursiveFileLookup for partitioned datasource - #38053

Closed
wForget wants to merge 1 commit into
apache:masterfrom
wForget:SPARK-40600
Closed

[SPARK-40600] Support recursiveFileLookup for partitioned datasource#38053
wForget wants to merge 1 commit into
apache:masterfrom
wForget:SPARK-40600

Conversation

@wForget

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Support recursiveFileLookup for partitioned datasource to query partitioned datasource containing subdirectories, such as the HIVE_UNION_SUBDIR directory generated when hive tez executes the union statement.

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

  1. Unit test added to FileIndexSuite.
  2. After adding the following properties, the partition table with subdirectories can be queried correctly.
ALTER TABLE ${partitioned_table_with_subdir} SET SERDEPROPERTIES ('recursiveFileLookup' = 'true');
ALTER TABLE ${partitioned_table_with_subdir} SET SERDEPROPERTIES ('inferRecursivePartition' = 'true');

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@holdenk

Copy link
Copy Markdown
Contributor

cc @HyukjinKwon

} else {
if (recursiveFileLookup) {
throw new IllegalArgumentException(
"Datasource with partition do not allow recursive file loading.")

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.

@github-actions

Copy link
Copy Markdown

We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!

@tanvn

tanvn commented Apr 4, 2023

Copy link
Copy Markdown
Contributor

@HyukjinKwon@wForget
Hi, may I know the status of this PR?
Would like to take part in this issue as we are facing this while reading data from an orc partitioned table and do not like to set spark.sql.hive.convertMetastoreOrc back to false.

Sign up for freeto 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.

5 participants

@wForget@AmplabJenkins@holdenk@tanvn@HyukjinKwon