InferredSchemaException extends InvalidArgumentException
FinalYes
Methods
- because() : self
- columnsDiverge() : self
- filesDiverge() : self
- pastTheSample() : self
Methods
because()
public
static because(string $format, float|int|string ...$parameters) : self
Parameters
- $format : string
- $parameters : float|int|string
Return values
selfcolumnsDiverge()
public
static columnsDiverge(string $source, string $inferredFrom, Schema $inferred, array<int, string> $columns, SchemaInference $inference) : self
Parameters
- $source : string
- $inferredFrom : string
- $inferred : Schema
- $columns : array<int, string>
-
- the columns the source actually carries - its header, duplicates already collapsed
- $inference : SchemaInference
Return values
selffilesDiverge()
public
static filesDiverge(string $source, string $readFrom, ValidationContext $validation) : self
Parameters
- $source : string
- $readFrom : string
-
- the file the extractor's schema was read from, the first one it listed
- $validation : ValidationContext
Return values
selfpastTheSample()
public
static pastTheSample(string $source, int $row, SchemaInference $inference, SchemaMismatchException $mismatch) : self
Parameters
- $source : string
- $row : int
-
- the row's 0-based position in the whole source, not in the batch the gate refused
- $inference : SchemaInference
- $mismatch : SchemaMismatchException