This repository has been archived by the owner on Sep 23, 2024. It is now read-only.
target-snowflake should handle anyOf
type specifications from the input schema.
#228
Labels
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
Some taps emit a schema definition that uses, e.g.,
anyOf: [{"type": "string"}, {"type": "number"}]
instead of{"type": ["string", "number"]}
. Currently,target-snowflake
simply omits the column from the output table silently. This has frequently resulted in integraiton errors or surprises. (tap-google-sheets
is the main tap culprit here.)See also: transferwise/pipelinewise#449 (comment)
Describe the solution you'd like
I would like for
target-snowflake
to create and populate the column in a conservative way, e.g. with atext
datatype.Describe alternatives you've considered
The alternative would be fixing the tap, if for example this is actually invalid Singer formatting. We could also add
warning
logging that a column was being bypassed, so that it was at least clear to the user.Additional context
Add any other context or screenshots about the feature request here.
Here is an example
schema
message being passed from the tap:Here is an example of the create table statement issued by target-snowflake.
The text was updated successfully, but these errors were encountered: