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

[HUDI-2057][HUDI-5499] CTAS Generate An External Table When Create Managed Table #6419

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dongkelun
Copy link
Contributor

@dongkelun dongkelun commented Aug 17, 2022

This problem has been fixed in this PR before:#3146

Later, the problem was discovered again,But it was fixed by this pr: #3998

The last time this problem reappeared was due to this pr: #5178,The reason is that extraoptions is not transferred to spark conf

Change Logs

CTAS Generate An External Table When Create Managed Table

Impact

CTAS Generate An External Table When Create Managed Table

Risk level (write none, low medium or high below)

none

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@dongkelun dongkelun closed this Aug 17, 2022
@dongkelun dongkelun reopened this Aug 17, 2022
@dongkelun
Copy link
Contributor Author

@hudi-bot run azure

@dongkelun dongkelun force-pushed the HUDI-2057 branch 5 times, most recently from 8b8e052 to 2f1e53d Compare August 19, 2022 04:15
@yihua yihua added spark-sql priority:critical production down; pipelines stalled; Need help asap. labels Sep 6, 2022
@@ -174,7 +174,7 @@ trait ProvidesHoodieConfig extends Logging {

val enableHive = isUsingHiveCatalog(sparkSession)

withSparkConf(sparkSession, catalogProperties) {
withSparkConf(sparkSession, catalogProperties ++ extraOptions) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a test that should fail before this fix, to guard any breaking changes in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't figure out how to implement the test case.Do you have any ideas?

@nsivabalan nsivabalan assigned xushiyan and unassigned yihua Nov 2, 2022
@nsivabalan
Copy link
Contributor

@xushiyan : can you assist the author and help take this home.

@dongkelun dongkelun force-pushed the HUDI-2057 branch 2 times, most recently from 496a41c to 515e9f7 Compare November 8, 2022 07:08
@hudi-bot
Copy link

hudi-bot commented Nov 8, 2022

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@dongkelun
Copy link
Contributor Author

@yihua @xushiyan Hello, I have added the validation to test the CTAS table type

| )
| location '/tmp/$tableName2'
| AS
| select 1 as id, 'a1' as name, 10 as price, 1000 as ts
Copy link
Member

Choose a reason for hiding this comment

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

please move this to a proper unit test. Bundle validation is not the right place to execute such tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@xushiyan Hello, the purpose here is to test the type of the sync hive table, but sync hive cannot be realized in unit test

@nsivabalan nsivabalan added the release-0.12.2 Patches targetted for 0.12.2 label Dec 6, 2022
@yihua yihua self-assigned this Jan 4, 2023
@alexeykudinkin alexeykudinkin added priority:blocker and removed priority:critical production down; pipelines stalled; Need help asap. release-0.12.2 Patches targetted for 0.12.2 labels Jan 4, 2023
@alexeykudinkin alexeykudinkin changed the title [HUDI-2057] CTAS Generate An External Table When Create Managed Table [HUDI-5499] CTAS Generate An External Table When Create Managed Table Jan 4, 2023
@alexeykudinkin alexeykudinkin changed the title [HUDI-5499] CTAS Generate An External Table When Create Managed Table [HUDI-2057][HUDI-5499] CTAS Generate An External Table When Create Managed Table Jan 4, 2023
@alexeykudinkin alexeykudinkin added priority:critical production down; pipelines stalled; Need help asap. and removed priority:blocker labels Jan 25, 2023
@github-actions github-actions bot added the size:S PR with lines of changes in (10, 100] label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:critical production down; pipelines stalled; Need help asap. size:S PR with lines of changes in (10, 100] spark-sql
Projects
Status: 🏗 Under discussion
Development

Successfully merging this pull request may close these issues.

None yet

7 participants