diff --git a/docs/sql-data-sources-avro.md b/docs/sql-data-sources-avro.md index eeb4bffa57d1..6e23867ad38f 100644 --- a/docs/sql-data-sources-avro.md +++ b/docs/sql-data-sources-avro.md @@ -283,6 +283,19 @@ Data source options of Avro can be set via:
from_avrodatetimeRebaseModespark.sql.avro .datetimeRebaseModeInRead which is EXCEPTION by defaultdatetimeRebaseMode option allows to specify the rebasing mode for the values of the date, timestamp-micros, timestamp-millis logical types from the Julian to Proleptic Gregorian calendar.EXCEPTION: fails in reads of ancient dates/timestamps that are ambiguous between the two calendars.CORRECTED: loads dates/timestamps without rebasing.LEGACY: performs rebasing of ancient dates/timestamps from the Julian to Proleptic Gregorian calendar.from_avroEXCEPTIONdate, timestamp-micros, timestamp-millis logical types from the Julian to Proleptic Gregorian calendar:EXCEPTION: Spark will fail the reading if it sees ancient dates/timestamps that are ambiguous between the two calendars.CORRECTED: Spark will not do rebase and read the dates/timestamps as it is.LEGACY: Spark will rebase dates/timestamps from the legacy hybrid (Julian + Gregorian) calendar to Proleptic Gregorian calendar when reading Avro files.EXCEPTIONdate, timestamp-micros, timestamp-millis logical types from the Proleptic Gregorian to Julian calendar:EXCEPTION: Spark will fail the writing if it sees ancient dates/timestamps that are ambiguous between the two calendars.CORRECTED: Spark will not do rebase and write the dates/timestamps as it is.LEGACY: Spark will rebase dates/timestamps from Proleptic Gregorian calendar to the legacy hybrid (Julian + Gregorian) calendar when writing Avro files.| Property Name | Default | Meaning | Scope |
|---|---|---|---|
datetimeRebaseMode |
+ The SQL config spark.sql.parquet .datetimeRebaseModeInRead which is EXCEPTION by default |
+ The datetimeRebaseMode option allows to specify the rebasing mode for the values of the DATE, TIMESTAMP_MILLIS, TIMESTAMP_MICROS logical types from the Julian to Proleptic Gregorian calendar.+ Currently supported modes are: +
|
+ read | +
int96RebaseMode |
+ The SQL config spark.sql.parquet .int96RebaseModeInRead which is EXCEPTION by default |
+ The int96RebaseMode option allows to specify the rebasing mode for INT96 timestamps from the Julian to Proleptic Gregorian calendar.+ Currently supported modes are: +
|
+ read | +
EXCEPTIONDATE, TIMESTAMP_MILLIS, TIMESTAMP_MICROS logical types from the Julian to Proleptic Gregorian calendar:EXCEPTION: Spark will fail the reading if it sees ancient dates/timestamps that are ambiguous between the two calendars.CORRECTED: Spark will not do rebase and read the dates/timestamps as it is.LEGACY: Spark will rebase dates/timestamps from the legacy hybrid (Julian + Gregorian) calendar to Proleptic Gregorian calendar when reading Parquet files.EXCEPTIONDATE, TIMESTAMP_MILLIS, TIMESTAMP_MICROS logical types from the Proleptic Gregorian to Julian calendar:EXCEPTION: Spark will fail the writing if it sees ancient dates/timestamps that are ambiguous between the two calendars.CORRECTED: Spark will not do rebase and write the dates/timestamps as it is.LEGACY: Spark will rebase dates/timestamps from Proleptic Gregorian calendar to the legacy hybrid (Julian + Gregorian) calendar when writing Parquet files.EXCEPTIONINT96 timestamp type from the Julian to Proleptic Gregorian calendar:EXCEPTION: Spark will fail the reading if it sees ancient INT96 timestamps that are ambiguous between the two calendars.CORRECTED: Spark will not do rebase and read the dates/timestamps as it is.LEGACY: Spark will rebase INT96 timestamps from the legacy hybrid (Julian + Gregorian) calendar to Proleptic Gregorian calendar when reading Parquet files.EXCEPTIONINT96 timestamp type from the Proleptic Gregorian to Julian calendar:EXCEPTION: Spark will fail the writing if it sees ancient timestamps that are ambiguous between the two calendars.CORRECTED: Spark will not do rebase and write the dates/timestamps as it is.LEGACY: Spark will rebase INT96 timestamps from Proleptic Gregorian calendar to the legacy hybrid (Julian + Gregorian) calendar when writing Parquet files.