-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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-8680] Enable partition stats by default and add support for additional data types with col stats and partition stats #12511
base: master
Are you sure you want to change the base?
Conversation
…llbackActionExecutor
43c0a07
to
9ae8233
Compare
...ient/hudi-java-client/src/test/java/org/apache/hudi/client/TestJavaHoodieBackedMetadata.java
Outdated
Show resolved
Hide resolved
...ient/hudi-java-client/src/test/java/org/apache/hudi/client/TestJavaHoodieBackedMetadata.java
Outdated
Show resolved
Hide resolved
...-client/hudi-java-client/src/test/java/org/apache/hudi/testutils/TestHoodieMetadataBase.java
Outdated
Show resolved
Hide resolved
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/client/TestClientRollback.java
Outdated
Show resolved
Hide resolved
.../hudi-spark-client/src/test/java/org/apache/hudi/table/functional/TestCleanPlanExecutor.java
Show resolved
Hide resolved
Option<HoodieRecordType> recordType) { | ||
List<String> columnsToIndex = metadataConfig.getColumnsEnabledForColumnStatsIndex(); | ||
if (!columnsToIndex.isEmpty()) { | ||
if (freshTable) { |
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.
for a very fresh table, we may not have table schema to validate against. So, just honor the columns to index overriden. Subsequent commit will auto correct the list of cols to index if need be,
.map(colStatsOpt -> colStatsOpt.get()) | ||
.filter(stats -> fileNames.contains(stats.getFileName())) | ||
.map(HoodieColumnRangeMetadata::fromColumnStats).collectAsList(); | ||
if (!partitionColumnMetadata.isEmpty()) { |
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.
no changes as such. just added this if
block.
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/sink/TestWriteCopyOnWrite.java
Outdated
Show resolved
Hide resolved
...atasource/hudi-flink/src/test/java/org/apache/hudi/sink/TestWriteMergeOnReadWithCompact.java
Outdated
Show resolved
Hide resolved
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestSchemaEvolution.java
Show resolved
Hide resolved
hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/functional/TestBootstrap.java
Outdated
Show resolved
Hide resolved
hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/functional/TestOrcBootstrap.java
Show resolved
Hide resolved
...tasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestBasicSchemaEvolution.scala
Outdated
Show resolved
Hide resolved
...e/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/procedure/TestBootstrapProcedure.scala
Outdated
Show resolved
Hide resolved
...java/org/apache/hudi/utilities/deltastreamer/TestHoodieDeltaStreamerSchemaEvolutionBase.java
Outdated
Show resolved
Hide resolved
...ient/hudi-java-client/src/test/java/org/apache/hudi/client/TestJavaHoodieBackedMetadata.java
Outdated
Show resolved
Hide resolved
hudi-client/hudi-spark-client/src/test/java/org/apache/hudi/client/TestClientRollback.java
Outdated
Show resolved
Hide resolved
@@ -1487,4 +1488,20 @@ public static Comparable<?> unwrapAvroValueWrapper(Object avroValueWrapper) { | |||
throw new UnsupportedOperationException(String.format("Unsupported type of the value (%s)", avroValueWrapper.getClass())); | |||
} | |||
} | |||
|
|||
public static Comparable<?> unwrapAvroValueWrapper(Object avroValueWrapper, String wrapperClassName) { |
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.
let's UT this method
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/sink/TestWriteCopyOnWrite.java
Outdated
Show resolved
Hide resolved
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestSchemaEvolution.java
Show resolved
Hide resolved
...adoop-common/src/test/java/org/apache/hudi/common/table/log/block/TestHoodieDeleteBlock.java
Outdated
Show resolved
Hide resolved
...rk-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/ColumnStatsIndexSupport.scala
Outdated
Show resolved
Hide resolved
hudi-spark-datasource/hudi-spark/src/test/java/org/apache/hudi/functional/TestBootstrap.java
Outdated
Show resolved
Hide resolved
Raised a separate patch for Enabling col stats #12595 PSI needs more tests to be added. I don't want to drag this PR. so, lets review and land col stats for now and follow up w/ PSI post that. |
Change Logs
Few features/tests where PSI is disabled:
Impact
Risk level (write none, low medium or high below)
medium
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist