SchemaMismatch

dev.constructive.eo.avro.AvroFailure.SchemaMismatch
final case class SchemaMismatch(schemaId: Int, writerFingerprint: Long, readerFingerprint: Long)

A Confluent-framed payload's writer schema (id schemaId) is not byte-identical to the reader schema — their Avro parsing-canonical-form fingerprints differ — so the direct byte walk would misread it. ConfluentWire.resolve / ConfluentWire.confluent GATE (refuse) here rather than hand back bytes that would misdecode. To TRANSLATE the drift instead of refusing, use the resolving reader (ConfluentWire.reader / ConfluentWire.resolving), which resolves writer→reader via Avro's ResolvingDecoder. Surfaced only by the gating surface.

Attributes

Source
AvroFailure.scala

Members list

Value members

Inherited methods

def message: String

Human-readable diagnostic. Kept separate from toString so the default enum representation remains useful for structural inspection / pattern-matching-in-tests.

Human-readable diagnostic. Kept separate from toString so the default enum representation remains useful for structural inspection / pattern-matching-in-tests.

Attributes

Inherited from:
AvroFailure
Source
AvroFailure.scala
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala