| Package | Description |
|---|---|
| org.apache.hudi.avro | |
| org.apache.hudi.exception |
| Modifier and Type | Method and Description |
|---|---|
static void |
AvroSchemaUtils.checkSchemaCompatible(org.apache.avro.Schema tableSchema,
org.apache.avro.Schema writerSchema,
boolean shouldValidate,
boolean allowProjection,
Set<String> dropPartitionColNames)
Checks whether writer schema is compatible with table schema considering
AVRO_SCHEMA_VALIDATE_ENABLE
and SCHEMA_ALLOW_AUTO_EVOLUTION_COLUMN_DROP options. |
| Modifier and Type | Class and Description |
|---|---|
class |
HoodieAvroSchemaException
Thrown when we detect in Hudi code that a record schema
violates Avro rules.
|
class |
InvalidUnionTypeException
Thrown when a field is a union and at least one of the following is true:
the incoming union and the latest table union have differing numbers of types
the incoming union has more than two types
|
class |
MissingSchemaFieldException
Thrown when the schema of the incoming data is missing fields that are in the table schema.
|
class |
SchemaBackwardsCompatibilityException
Thrown when there is a backwards compatibility issue with the incoming schema.
|
Copyright © 2024 The Apache Software Foundation. All rights reserved.