The filter dialog counts a qualifier as a column of the same name
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
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
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DokaDev/datarig
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
internal
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 77/100
DokaDev/datarig#610 · 1 comment ·
Maintainers usually reply within 1 day
-
internal
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quarto-dev/q2#1446 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ProvableHQ/snarkOS#4817 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
facebookexperimental/reverie#193 ·
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pbakaus/impeccable#1748 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
farion1231/cc-switch#10196 ·
Maintainers usually reply within 1 day