Skip to content

0.12.1

Choose a tag to compare

@ferenc-csaky ferenc-csaky released this 21 Oct 18:24
· 45 commits to main since this release
0.12.1
d45c5ba

Breaking Changes

  • Removed the flexible-csv format. Its only addition over Flink's csv format was the skip-header option. Tables with 'format' = 'flexible-csv' now fail with Could not find any factory for identifier 'flexible-csv'. To migrate, switch to 'format' = 'csv', rename flexible-csv.* options to csv.*, drop skip-header, and remove header rows from the data. (#421)
  • jsonb_array and jsonb_object now treat a single ARRAY argument as one value, instead of as the list of arguments. jsonb_array(ARRAY[1, 2, 3]) returns [[1,2,3]] instead of [1,2,3], and jsonb_object(ARRAY['k', 'v']) fails instead of returning {"k":"v"}. A NULL array argument to jsonb_array returns [null] instead of failing the job. (#419)

Fixes

  • Fixed nested JSON values in to_jsonb, jsonb_array, jsonb_object, and jsonb_object_agg. A JSON value inside an array, row, or map is now embedded as is, instead of as {"json": ...}, so an ARRAY<RAW(FlinkJsonType)> column written to PostgreSQL reads back correctly. (#419)
  • Fixed ROW and temporal values in jsonb_array, jsonb_object, and jsonb_object_agg. Rows now keep their fields instead of becoming {"kind":"INSERT","arity":2}, and temporal values become ISO strings, as in to_jsonb, instead of a Jackson error message or a failed job. (#419)
  • The JSON construction functions now skip map entries with a NULL key instead of failing the job. (#419)
  • Fixed TIMESTAMP_LTZ values in the jdbc-sqrl connector on a JVM that does not run in UTC. Values written to a PostgreSQL timestamptz column were shifted by the JVM time zone offset, and values read back were shifted in the opposite direction. They now keep the same instant regardless of the JVM time zone. On a JVM that runs in UTC, the behavior is unchanged. (#424)
  • The timestamp value of sink.on-conflict.action in the jdbc-sqrl connector now overwrites the existing row when the incoming timestamp is equal to the stored one, matching Flink, which keeps the later row on a tie. Before, these updates were lost, for example with keep-last-row deduplication (DISTINCT), aggregates whose MIN or MAX timestamp does not change, and joins with a GREATEST(...) timestamp. Rows with an older timestamp are still skipped. (#425)

Dependencies

  • Updated ClassGraph from 4.8.197 to 5.0.0. (#420)

Full Changelog: 0.12.0...0.12.1