[destination-postgres]: fails with Runtime Error on record with JSON array of values #49459
Labels
area/connectors
Connector related issues
autoteam
community
connectors/destination/postgres
team/destinations
Destinations team's backlog
type/bug
Something isn't working
Connector Name
destination-postgres
Connector Version
2.4.0
What step the error happened?
During the sync
Relevant information
You can pretty easily see the bug by looking at the source code:
airbyte/airbyte-integrations/connectors/destination-postgres/src/main/kotlin/io/airbyte/integrations/destination/postgres/typing_deduping/PostgresDataTransformer.kt
Line 70 in b9662d7
Calling this function with a JsonNode with JSON like
will throw the "Unexpected value node without fieldName." runtime error, as the recursive call to adaptValueNodes for each array element calls the function with a fieldName of null. As long as each array element is not a pure value node, you'll be fine.
Relevant log output
Contribute
The text was updated successfully, but these errors were encountered: