Dashboard improvements, TRUNCATE support, adaptive index fix#14
Open
Dashboard improvements, TRUNCATE support, adaptive index fix#14
Conversation
- Rename Gauges nav to Status; redirect / to #gauges for admin users - Add root password warning to gauges, databases, users views with consistent styling - Move Back link into centered content area - Fix shard view: expose pivot values from partition schema for range display - Fix dashboard_json_array for empty lists (was producing "[nil]") - Fix routing timing: call route() after whoami response so isAdmin is correct - Add TRUNCATE [TABLE] tbl as alias for DELETE in SQL and PSQL parsers - Add test case tests/96_truncate.yaml Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…actBoundaries The Scheme optimizer replaces lambda parameter symbol references with NthLocalVar(i) in filter lambda bodies. Previously extractBoundaries only checked symbolmapping (symbol → column), so optimized lambdas never produced boundaries → no indexes were ever adaptively created. Fix: - Add resolveColVar helper that checks both symbolmapping (symbol lookup) and NthLocalVar(i) → conditionCols[i] (bound parameter by index) - Replace all direct IsSymbol+symbolmapping lookups in traverseCondition with resolveColVar for: equal?/equal??, </<=, >/>= , nil?, contains?, strlike - Fix extractConstant for (outer NthLocalVar(i)) case: previously called mustSymbolValue which panics on NthLocalVar; now dispatches on IsSymbol vs IsNthLocalVar and reads from p.En.VarsNumbered for free outer variables Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dashboard_json_arrayempty-list fix ([nil]→[])DELETE FROMwithout WHEREextractBoundariesinstorage/analyzer.gonow handlesNthLocalVar(i)as bound lambda parameters — the optimizer replaces symbol references with numbered locals, which previously caused boundary extraction to always return nil, preventing any adaptive indexes from ever being builtTest plan
tests/)[]when empty, and show actual indexes after repeated identical queriesTRUNCATE TABLE t/TRUNCATE tshould remove all rows and report affected_rowsSELECT … WHERE col = ?query 3+ times and confirm "building index" appears in server log🤖 Generated with Claude Code