Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Error with records that have a date of '01-01-0001' #12

Open
@david-walker-gfs

Description

@david-walker-gfs

ERROR:

com.miraisolutions.spark.bigquery.exception.IOException: BigQuery job JobId{project=gcp-gfs-datalake-process-tst, job=02f24e90-932f-4fec-8dcb-f86008e6a26a, location=US} failed with message: Error while reading data, error message: Invalid date value '-719164' for field 'vondt' of type 'DATE'

-719164 equates to a Julian date of 01-01-0001. Lots of SAP HANA tables use this date as a default date.

According to the BQ docs, 01-01-0001 is a valid date so I wouldn't have expected this to be an issue.
Range for Date datatype: 0001-01-01 to 9999-12-31.

Ref: https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#date-type

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions