Skip to content

fix(cli): preserve query results and tolerate invalid profile expiries - #192

Merged
francoischalifour merged 1 commit into
mainfrom
fc/query-profile-correctness
Nov 23, 2026
Merged

francoischalifour merged 1 commit into
mainfrom
fc/query-profile-correctness

Conversation

@francoischalifour

Copy link
Copy Markdown
Member

What

Preserve the values returned by SQL and keep profile diagnostics available when expiry metadata is malformed.

  • Count NDJSON records separately from physical lines: blank lines no longer turn headers into rows, and errors still identify the original line.
  • Render array rows by position so SELECT 17 AS id, 42 AS id shows both values. Measure column widths once for tables and skip measurement for line output.
  • Reject blank SQL and empty output paths before sending a request; use nonempty filenames exactly as supplied.
  • Ignore malformed or out-of-range expiry dates when displaying profiles without modifying the stored credentials.

Why

The CLI could show a different result from the one the server returned, or silently write to stdout when given an empty destination. Separately, a single invalid expiry could prevent users from listing otherwise usable profiles.

Checklist

  • Public CLI regression tests added
  • Changelog updated
  • No breaking change

Decode NDJSON by record position while retaining physical error lines. Project result columns by ordinal and measure table widths once, without spreading every row into a function call. Preserve literal output paths and reject empty destinations before executing SQL.

Omit unreadable expiry metadata rather than failing diagnostics for an otherwise usable profile.
@francoischalifour
francoischalifour merged commit ad550d5 into main Nov 23, 2026
15 checks passed
@francoischalifour
francoischalifour deleted the fc/query-profile-correctness branch November 23, 2026 17:12
francoischalifour pushed a commit that referenced this pull request Nov 25, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.16.0](v1.15.1...v1.16.0)
(2026-11-23)


### ⚠ BREAKING CHANGES

* **app:** Local app dev and lint require a shared literal app.ts
instead of app.json. Existing projects must adapt their own declaration,
operations, and local server to SDK 0.78; package upgrade preserves
source and does not perform that migration.

### Features

* **app:** adopt data-app SDK 0.79.0
([#191](#191))
([5455194](5455194))
* **app:** scaffold data apps from published SDK examples
([#187](#187))
([97fa08b](97fa08b))


### Bug Fixes

* **cli:** preserve query results and tolerate invalid profile expiries
([#192](#192))
([ad550d5](ad550d5))
* **cli:** restore query output and simplify request handling
([#189](#189))
([2895b25](2895b25))
* **config:** store Windows secrets in Credential Manager
([#182](#182))
([8403a07](8403a07))


### Miscellaneous Chores

* release 1.16.0
([#188](#188))
([1de319d](1de319d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: altertable-release[bot] <345426372+altertable-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants