Skip to content

0.12.1

Choose a tag to compare

@ferenc-csaky ferenc-csaky released this 21 Oct 19:53
· 148 commits to main since this release
0.12.1
1d44c3a

Breaking Changes

  • Dropped schema discovery for CSV files: LIKE `data.csv` now fails at compile time. Declare the columns in the CREATE TABLE statement and use the filesystem connector with 'format' = 'csv' instead. Schema discovery still works for JSONL files (#2476)
  • Copied data files unchanged. Before, the first line of every .csv file was dropped, header or not, so a CSV file without a header row lost its first record. The compiler now warns when the first line of a CSV file looks like a header row (#2476)
  • Removed the flexible-csv format (Flink SQL Runner 0.12.1). Switch to 'format' = 'csv', rename flexible-csv.* options to csv.*, and drop skip-header (DataSQRL/flink-sql-runner#421)
  • jsonb_array and jsonb_object now treat a single ARRAY argument as one value: 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"} (DataSQRL/flink-sql-runner#419)

Important

Flink reads every line of a CSV file as data. For every CSV source, move the column names from the header row into the CREATE TABLE statement and remove the header row from the file. See Inferring Schema from Data Files for an example.

Features

  • Exposed generated operations with nested input (input objects or lists of them, e.g. mutations for tables with nested rows) as MCP tools by default. Use @api(mcp: NONE) to opt an operation out. Already compiled plans keep their MCP settings until they are recompiled (#2499)
  • Taught the agent to compute the timestamp of a join result from both sides with GREATEST, so the PostgreSQL sink no longer skips updates of joined rows (#2490)
  • Taught the agent to leave index selection to the compiler, and moved the index hint guidance into a guide the agent reads only for a slow query, so it no longer adds unneeded index hints (#2495)
  • Taught the agent how the compiler matches a custom GraphQL schema to SQRL relationships (#2482)
  • Taught the agent to write doc-strings for API consumers, and to describe operations with # comments instead of """, which fails to compile (#2501)
  • Taught the agent to use data files instead of datagen for streaming tests, so snapshots are stable across runs (#2492)
  • Taught the agent to declare CSV columns and remove header rows, and to check the header-row warning against the declared columns, since a data row can trigger it too (#2476, #2498)

Fixes

  • Kept queries without arguments as REST endpoints, MCP tools, and OpenAPI paths instead of silently dropping them, a regression since 0.11.2 (#2494)
  • Accepted ID and JSON GraphQL mutation inputs for STRING columns and allowed omitting nullable columns from mutation inputs, fixing compile-time regressions from the mutation input validation added in 0.11.7 (#2489)
  • Resolved relationship fields of a custom GraphQL type on the base table of the function that returns it, so the type no longer needs the name of the table that owns the relationships. A type returned by functions whose base tables resolve its relationship fields differently now fails to compile instead of silently returning null for some of them, and the Unknown field error names the type and the looked-up relationships (#2500)
  • Treated an explicit null on an optional argument as omitted in MCP and REST requests, at any nesting depth, instead of failing validation (#2499)
  • Used the origin of the configured oauthConfig.resource for the resource_metadata URL in the WWW-Authenticate header, so it matches the discovery metadata behind a TLS-terminating proxy (#2497)
  • Defaulted the core-agent image to Pi's default model of the selected provider, so it starts without PI_MODEL instead of failing with --provider requires --model (#2480)
  • Added the missing xxlarge TaskManager size to the configure-sqrl skill (#2481)

Documentation

  • Fixed the operation description syntax in the API docs: a """ description before an operation fails with Invalid syntax, so the example now uses a # comment (#2501)
  • Documented declaring CSV sources (#2476) and how relationship fields of a custom GraphQL schema resolve on the base table (#2500)

Maintenance

  • Updated Flink SQL Runner to 0.12.1, which also fixes shifted TIMESTAMP_LTZ values in jdbc-sqrl on a JVM that does not run in UTC, and lost updates with an equal timestamp under 'sink.on-conflict.action' = 'timestamp' (see its release notes)
  • Updated Pi from 1.0.3 to 1.3.0 in the agent image (#2479)
  • Updated Immutables, Vert.x Maven Plugin, Central Publishing Maven Plugin, and Node.js
  • Set the Flink session time zone in internal tests instead of the JVM TZ, so test results no longer depend on the time zone of the machine (#2502)

Full Changelog: 0.12.0...0.12.1