-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[HUDI-1520] add configure for spark sql overwrite use INSERT_OVERWRIT_TABLE #2428
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -278,7 +278,6 @@ class TestMORDataSource extends HoodieClientTestBase { | |
| val inputDF5: Dataset[Row] = spark.read.json(spark.sparkContext.parallelize(records5, 2)) | ||
| inputDF5.write.format("org.apache.hudi") | ||
| .options(commonOpts) | ||
| .option("hoodie.compact.inline", "true") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @garyli1019 Please also help to review, i delete the hoodie.compact.inline = true . Because when overwrite use replace commit, "Fifth Operation: " compaction will postponed until "Sixth Operation:", so " assertEquals(152, hudiIncDF6.count())" will be ok.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @lw309637554 , this compaction was not supposed to be here. This probably the cause of the flaky test as well. cc: @vinothchandar
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is great. Thanks for diggin in both ! |
||
| .mode(SaveMode.Append) | ||
| .save(basePath) | ||
| val commit5Time = HoodieDataSourceHelpers.latestCommit(fs, basePath) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is inline with
hudi/hudi-spark/src/main/scala/org/apache/hudi/HoodieSparkSqlWriter.scala
Line 301 in b6d363c