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

[tap-mysql] discovery schema for json columns does not accept array types #1199

Open
jamesmeneghello opened this issue Jan 15, 2025 · 1 comment

Comments

@jamesmeneghello
Copy link

jamesmeneghello commented Jan 15, 2025

Current jsonschema output for a json field in MySQL is:

"type": [
  "null",
  "object"
]

However, this should also accept array, as MySQL JSON fields can store JSON arrays directly. Hence, any records containing JSON arrays currently fail schema validation during transfer.

@edgarrmondragon
Copy link

The standard workaround would be to use the Singer catalog to override the type, but the tap doesn't support it at the moment. See transferwise/pipelinewise-tap-mysql#186.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants