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-8584] Unifying unsupported types across SPARK and AVRO record #12364

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1423,11 +1423,7 @@ private static Comparable<?> coerceToComparable(Schema schema, Object val) {
}

private static boolean canCompare(Schema schema, HoodieRecordType recordType) {
// if recordType is SPARK then we cannot compare RECORD and ARRAY types in addition to MAP type
if (recordType == HoodieRecordType.SPARK) {
return schema.getType() != Schema.Type.RECORD && schema.getType() != Schema.Type.ARRAY && schema.getType() != Schema.Type.MAP;
}
return schema.getType() != Schema.Type.MAP;
return schema.getType() != Schema.Type.RECORD && schema.getType() != Schema.Type.ARRAY && schema.getType() != Schema.Type.MAP;
}

public static Set<String> getInflightMetadataPartitions(HoodieTableConfig tableConfig) {
Expand Down
Loading