The filter dialog counts a qualifier as a column of the same name

Open Beginner friendly
#561 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
mariadb, mysql, postgresql, rust, sql
Domain
cli, database

Research direction

Start by finding where the filter dialog parses filter text into column names; the bug is in the rule that treats any dotted word as a column reference. The fix is to skip a word when it is followed by a dot, so shop.current_date.id yields id rather than shop or current_date. Add tests that exercise schema-qualified and table-qualified names against PostgreSQL, MySQL and MariaDB; done when those tests pass and the dialog retains values for the real column.

Written by the indexing model from the issue text.

Description

bug

When a filter names a column through its schema or table (for example shop.current_date.id), the filter dialog takes the schema or table name for a column of the same name and treats that column as used in the filter. That column's values are then not kept in the dialog's memory.

Plan

  • Treat a word followed by a dot as a qualifier, not a column, when deciding which columns a filter names.
  • Pin it with tests for schema-qualified and table-qualified names on PostgreSQL, MySQL and MariaDB.

History

  • Found while reviewing the always-quoted column names in the table filter (#525). This behaviour existed before that change.
Dominant language
Rust
Stars
174
Forks
8
Avg merge
4h 30m
Merged PRs (30d)
308

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DokaDev/datarig

All issues in DokaDev/datarig

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.