ConvertingMismatch

sealed class ConvertingMismatch(val column: String, val row: Int?, val cause: Exception?)

Detailed message about any mismatch when saving to Arrow format with a user-defined schema that does not match the actual data. Can be sent to a callback, written to a log, or wrapped in an exception

Inheritors

Constructors

Link copied to clipboard
protected constructor(column: String, row: Int?, cause: Exception?)

Types

Link copied to clipboard
Link copied to clipboard
sealed class NullableMismatch(column: String, row: Int?) : ConvertingMismatch
Link copied to clipboard
data class PrecisionReduced(val column: String, val row: Int?, val unit: String) : ConvertingMismatch

A date-time value did not fit the target field's precision and its trailing digits were dropped — for example a nanosecond instant saved into a Timestamp(MICROSECOND, …) field.

Link copied to clipboard
data class SavedAsString(val column: String, val type: Class<*>) : ConvertingMismatch
Link copied to clipboard
sealed class TypeConversionFail(column: String, row: Int?, val cause: CellConversionException) : ConvertingMismatch
Link copied to clipboard
data class ValueOutOfRange(val column: String, val row: Int?, val unit: String) : ConvertingMismatch

A date-time value did not fit the target field's range at all — for example an instant in the year 2500 saved into a Timestamp(NANOSECOND, …) field, which is an int64 nanosecond count and so only spans 1677–2262.

Link copied to clipboard

Properties

Link copied to clipboard
open val cause: Exception?

Original exception, if any

Link copied to clipboard
open val column: String

Name of the column with the mismatch

Link copied to clipboard
open val row: Int?

Number of the first row with a mismatch (0-based), if defined