github neilotoole/sq v0.56.0

one hour ago

Added

Changed

  • ☢️ #1409: The ClickHouse driver now requires ClickHouse 25.8 or later. It was documented as supporting v25+, but 25.3 and earlier lack the UPDATE statement the driver uses.
  • #1151: Opening a DuckDB source is much faster and no longer needs network access, because extensions not built into sq now load on first use.
  • #1416: An invalid option value in the config file, such as conn.open-timeout: 10x, no longer stops every sq command from running. The value is ignored, a warning is logged, and the option's default is used. A command that saves the config, such as sq add, still fails until the value is corrected, for example with sq config set.
  • #1285: The legacy neilotoole/sq Homebrew tap is retired. Anyone who installed sq from that tap is moved to the homebrew-core formula (brew install sq) on their next brew update. Homebrew no longer builds bottles for Intel Macs, so brew install sq builds from source there. To skip the build, download the macos-amd64 binary from GitHub releases.
  • ☢️ #1435: sq is now built with Go 1.27, which picks up fixes for several vulnerabilities in the Go standard library. Go 1.27 only officially supports macOS 13 Ventura and later. sq might keep working on older macOS versions, but no promises.
  • #1235: sq version -v makes a newer release stand out, if one is available. (🫡: @drluckyspin)

Fixed

  • ☢️ #1422, #1423, #1428: sq inspect output for MariaDB has changed, so anything that relies on the old output may need updating. A nullable column with no declared default now has no default value, as on MySQL. It was reported with a default of NULL.
    • Foreign keys and CHECK constraints could also be wrong or duplicated.
    • On MySQL too, inspect of a whole source failed if a table had a UNIQUE key and a foreign key of the same name.
  • ☢️ #1286, #1287, #1369: sq inspect output for Oracle has changed, so anything that relies on the old output may need updating. Column types now match the declaration (TIMESTAMP(6), not TIMESTAMP(6)(11)), and base_type is populated, where it was always empty. (🫡: @mvanhorn)
    • Multi-row --insert no longer fails with ORA-00933 on versions before 23ai.
  • #1409: ClickHouse fixes. sq inspect missed or truncated some CHECK constraints, and the istartswith and iendswith functions failed on 25.8.
  • #1300, #1311: SQLite fixes. sq inspect resolves a table name case-insensitively, as a query does, and includes virtual tables such as FTS5 in the table count. (🫡: @mvanhorn)
  • #1392, #1420: Two ingest bugs could make every query of a source fail with a scan error: an Excel sheet with blank rows above its header row, and a JSON file containing an integer too large for 64 bits. (🫡: @dmitriybabichev)
    • A source already ingested by an earlier version of sq stays affected until its cached ingest is cleared with sq cache clear @handle.
  • #1375, #1386, #1414, #1434: CSV and TSV fixes. A UTF-8 byte order mark, as written by Excel's "CSV UTF-8" export, no longer corrupts the first column name. An empty file reports has no data instead of panicking. A header-only file ingests as an empty table. On Windows and in the sq container image, sq add of a small TSV file no longer fails with unable to determine driver type. (🫡: @dmitriybabichev, @56steve)
  • #1220: A source location's inline password could be written to the debug log in cleartext, for some ClickHouse, SQLite and DuckDB sources.
  • #1416: Edge cases of ingest.sample-size no longer cause mistyped columns, no records errors or panics. A header row and blank Excel rows no longer count toward the sample, and sq config set rejects a value below 1.
  • #1225: A malformed selector inside order_by() is now reported, instead of being silently dropped and the query running unordered. (🫡: @no-hup)
  • #1165, #1209: A duration option set on a source, such as conn.max-idle-time, was silently ignored once sq reloaded its config. (🫡: @no-hup)

Don't miss a new sq release

NewReleases is sending notifications on new releases.