Skip to content

Conversation

@pan3793
Copy link
Member

@pan3793 pan3793 commented Oct 21, 2025

Backport #52436 to branch-4.0 to recover CI.

What changes were proposed in this pull request?

Previously, V1WriteHiveCommandSuite uses CREATE TABLE without declaring USING or STORED AS, which relies on spark.sql.legacy.createHiveTableByDefault's default value, SPARK-46122 changes the default value of spark.sql.legacy.createHiveTableByDefault from true to false, which implicitly affects this test suite.

In addition, we should take spark.sql.hive.convertMetastoreParquet and spark.sql.hive.convertMetastoreOrc into account in V1WriteHiveCommandSuite

Why are the changes needed?

Restore and improve test coverage.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Pass GHA.

Was this patch authored or co-authored using generative AI tooling?

No.

…rage

### What changes were proposed in this pull request?

Previously, `V1WriteHiveCommandSuite` uses `CREATE TABLE` without declaring `USING` or `STORED AS`, which relies on `spark.sql.legacy.createHiveTableByDefault`'s default value, SPARK-46122 changes the default value of `spark.sql.legacy.createHiveTableByDefault` from `true` to `false`, which implicitly affects this test suite.

In addition, we should take `spark.sql.hive.convertMetastoreParquet` and `spark.sql.hive.convertMetastoreOrc` into account in `V1WriteHiveCommandSuite`

### Why are the changes needed?

Restore and improve test coverage.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass GHA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#52436 from pan3793/SPARK-53694.

Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
@github-actions github-actions bot added the SQL label Oct 21, 2025
@pan3793
Copy link
Member Author

pan3793 commented Oct 21, 2025

@peter-toth seems branch-4.0 fails to compile due to lack of this patch ...

@peter-toth
Copy link
Contributor

Ok, once tests pass I will merge this.

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.

peter-toth pushed a commit that referenced this pull request Oct 21, 2025
… coverage

Backport #52436 to branch-4.0 to recover CI.

### What changes were proposed in this pull request?

Previously, `V1WriteHiveCommandSuite` uses `CREATE TABLE` without declaring `USING` or `STORED AS`, which relies on `spark.sql.legacy.createHiveTableByDefault`'s default value, SPARK-46122 changes the default value of `spark.sql.legacy.createHiveTableByDefault` from `true` to `false`, which implicitly affects this test suite.

In addition, we should take `spark.sql.hive.convertMetastoreParquet` and `spark.sql.hive.convertMetastoreOrc` into account in `V1WriteHiveCommandSuite`

### Why are the changes needed?

Restore and improve test coverage.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass GHA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #52683 from pan3793/SPARK-53694-4.0.

Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Peter Toth <[email protected]>
@peter-toth
Copy link
Contributor

Thanks @pan3793 for the fix!

Merged to branch-4.0 (4.0.2).

I will check back later and see if branch-4.0 compilation is fixed.

@sarutak sarutak closed this Oct 21, 2025
@sarutak
Copy link
Member

sarutak commented Oct 21, 2025

@peter-toth
Hi @peter-toth , we need to close PRs manually for non master branches.

@peter-toth
Copy link
Contributor

Thanks @sarutak, noted.

@dongjoon-hyun
Copy link
Member

BTW, for the record, branch-4.0 becomes healthy back.

@peter-toth
Copy link
Contributor

Thanks @dongjoon-hyun for the confirmation, I checked it yesterday too.

zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 14, 2025
… coverage

Backport apache#52436 to branch-4.0 to recover CI.

### What changes were proposed in this pull request?

Previously, `V1WriteHiveCommandSuite` uses `CREATE TABLE` without declaring `USING` or `STORED AS`, which relies on `spark.sql.legacy.createHiveTableByDefault`'s default value, SPARK-46122 changes the default value of `spark.sql.legacy.createHiveTableByDefault` from `true` to `false`, which implicitly affects this test suite.

In addition, we should take `spark.sql.hive.convertMetastoreParquet` and `spark.sql.hive.convertMetastoreOrc` into account in `V1WriteHiveCommandSuite`

### Why are the changes needed?

Restore and improve test coverage.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass GHA.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes apache#52683 from pan3793/SPARK-53694-4.0.

Authored-by: Cheng Pan <[email protected]>
Signed-off-by: Peter Toth <[email protected]>
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