Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-evaluate Avro logical type union #17011

Closed
tuliren opened this issue Sep 21, 2022 · 3 comments
Closed

Re-evaluate Avro logical type union #17011

tuliren opened this issue Sep 21, 2022 · 3 comments
Labels
connectors/destination/s3 frozen Not being actively worked on team/destinations Destinations team's backlog type/enhancement New feature or request

Comments

@tuliren
Copy link
Contributor

tuliren commented Sep 21, 2022

Tell us about the problem you're trying to solve

  • When converting a Json built-in format to Avro logical type, our Json to Avro schema converter always generate a nullable union of the logical type and string. This is necessary because the incoming Json built-in format can often be invalid (because they are just strings and there is usually no automatic validation). These invalid values can fail the conversion code. In that case, the object converter will fall back to a string.
  • This rule can cause problems for some users on the destination side. One example: https://github.com/airbytehq/oncall/issues/643 We may want to re-evaluate this rule to fix the problem for those users.

Code reference

Solution

  • This is especially a problem for BigQuery. Other destinations look fine with this union. So the solution can be to avoid creating the union for logical types in the schema converter.
@isabelamaro-hotmart
Copy link

Hi
Any update on this?
I am facing this error syncing Jira > S3
2023-01-04 19:27:03 ERROR c.n.s.DateTimeValidator(tryParse):82 - Invalid date-time: Invalid timezone offset: -0300
Example date: "2022-12-29T16:04:29.627-0300"

@ethagnawl
Copy link

Did you figure out a workaround, @isabelamaro-hotmart?

@edgao
Copy link
Contributor

edgao commented Apr 24, 2024

closing as duplicate of #14028.

@edgao edgao closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connectors/destination/s3 frozen Not being actively worked on team/destinations Destinations team's backlog type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

7 participants