Skip to content

BQL: SELECT * on the postings table includes an extra account column (and FROM postings expands to ~30 columns) #2829

Closed

Description

@puncsky

bean-query's postings wildcard is exactly date, flag, payee, narration, position (PostingsTable.wildcard_columns). rustledger's bare SELECT * returns those plus account, and SELECT * FROM postings returns the whole schema (~31 columns), where bean-query returns the same five in both forms. Positional consumers of SELECT * see a different shape.

Environment: @rustledger/wasm 0.24.0 (queryMultiFile, single-file ledger); reference is beanquery 0.2.0 / beancount 3.2.3. Both sides were run on the snippet below. If this is already fixed on main, please just close it.

Repro

2024-01-01 open Assets:Bank
2024-01-01 open Equity:Opening
2024-01-02 *
  Assets:Bank     10 USD
  Equity:Opening
Query bean-query rustledger 0.24.0
SELECT * LIMIT 1 date, flag, payee, narration, position date, flag, payee, narration, account, position
SELECT * FROM postings LIMIT 1 same five columns type, id, date, year, month, day, filename, lineno, location, flag, ..., meta, accounts (31)

Explicit SELECT account agrees on both; only the wildcard expansion differs.

Expected

Use the same wildcard column list as bean-query for the postings table, in both forms.

Activity

  1. added a commit that references this issue on Nov 7, 2026
    5f57384
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions