Added
- #1369, #1409, #1421, #1423: More engine versions are tested: Oracle 21c as well as 26ai; MariaDB 10.11, 11.8 and 12, via the MySQL driver; SQL Server 2017 as well as 2019 and 2022; and ClickHouse 25.8, 26.3, 26.8 and 26.11.
- #1007: The
sqcontainer image is now also published to Docker Hub asneilotoole/sq, alongsideghcr.io/neilotoole/sq. The image now ships with SLSA build provenance and an SPDX SBOM.
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
UPDATEstatement the driver uses. - #1151: Opening a DuckDB source is much faster and no longer needs network access, because extensions not built into
sqnow load on first use. - #1416: An invalid option value in the config file, such as
conn.open-timeout: 10x, no longer stops everysqcommand from running. The value is ignored, a warning is logged, and the option's default is used. A command that saves the config, such assq add, still fails until the value is corrected, for example withsq config set. - #1285: The legacy
neilotoole/sqHomebrew tap is retired. Anyone who installedsqfrom that tap is moved to the homebrew-core formula (brew install sq) on their nextbrew update. Homebrew no longer builds bottles for Intel Macs, sobrew install sqbuilds from source there. To skip the build, download themacos-amd64binary from GitHub releases. - ☢️ #1435:
sqis 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.sqmight keep working on older macOS versions, but no promises. - #1235:
sq version -vmakes a newer release stand out, if one is available. (🫡: @drluckyspin)
Fixed
- ☢️ #1422, #1423, #1428:
sq inspectoutput 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 ofNULL.- Foreign keys and
CHECKconstraints could also be wrong or duplicated. - On MySQL too, inspect of a whole source failed if a table had a
UNIQUEkey and a foreign key of the same name.
- Foreign keys and
- ☢️ #1286, #1287, #1369:
sq inspectoutput for Oracle has changed, so anything that relies on the old output may need updating. Column types now match the declaration (TIMESTAMP(6), notTIMESTAMP(6)(11)), andbase_typeis populated, where it was always empty. (🫡: @mvanhorn)- Multi-row
--insertno longer fails withORA-00933on versions before 23ai.
- Multi-row
- #1409: ClickHouse fixes.
sq inspectmissed or truncated someCHECKconstraints, and theistartswithandiendswithfunctions failed on 25.8. - #1300, #1311: SQLite fixes.
sq inspectresolves 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
sqstays affected until its cached ingest is cleared withsq cache clear @handle.
- A source already ingested by an earlier version of
- #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 datainstead of panicking. A header-only file ingests as an empty table. On Windows and in thesqcontainer image,sq addof a small TSV file no longer fails withunable 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-sizeno longer cause mistyped columns,no recordserrors or panics. A header row and blank Excel rows no longer count toward the sample, andsq config setrejects 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 oncesqreloaded its config. (🫡: @no-hup)