apache / apache/beam

Use date logical type when converting Avro date to Beam field

Open
#21,003 1 comment 0 reactions 0 assignees View on GitHub
bug core java P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Currently, Avro dates are converted to Beam datetimes.  With this change, we can retain the original date field type.

I discovered this issue when further converting the Beam schema to a BigQuery TableSchema.  The BigQuery field ended up as a TIMESTAMP instead of the desired DATE type.

Imported from Jira [BEAM-12612](https://issues.apache.org/jira/browse/BEAM-12612). Original Jira may contain additional context.
Reported by: rworley.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.