Skip to content

Conversation

@macneale4
Copy link
Contributor

No description provided.

Add ignore pattern filtering to dolt_diff_summary table function to
match dolt diff command behavior. Tables matching patterns in
dolt_ignore are now filtered out from diff summary results.

Changes include:
- Add getIgnorePatternsFromContext() to retrieve ignore patterns from
dolt_ignore
- Add shouldIgnoreDelta() to check if table deltas should be ignored
- Add shouldFilterSystemTable() to filter out system tables (dolt_*
prefix)
- Apply filtering to both general queries and specific table queries
- Only ignore added/dropped tables, not modified/renamed tables

Tests added:
- 5 integration tests in dolt_queries_diff.go
- 4 bats tests in ignore.bats covering basic patterns, wildcards,
dropped tables, and specific table queries

Refs: #5861
Fix test setup issues that were causing failures in integration tests:
- Correct ignore pattern from 'ignored_table' to 'ignored_table2'
- Add initial table creation before commit in three test cases
- Remove "nothing to commit" errors by establishing proper baseline

All dolt_diff_summary ignore functionality tests now pass.

Refs: #5861
Changed from filtering all dolt_* system tables to only filtering
the dolt_ignore table itself in dolt_diff_summary. This maintains
ignore pattern functionality while being more conservative about
which system tables are filtered, fixing bats test failures.

Refs: #5861
@coffeegoddd
Copy link
Contributor

@macneale4 DOLT

comparing_percentages
100.000000 to 100.000000
version result total
20c3086 ok 5937471
version total_tests
20c3086 5937471
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@macneale4 DOLT

comparing_percentages
100.000000 to 100.000000
version result total
10d3612 ok 5937471
version total_tests
10d3612 5937471
correctness_percentage
100.0

@coffeegoddd
Copy link
Contributor

@macneale4 DOLT

comparing_percentages
100.000000 to 100.000000
version result total
b461079 ok 5937471
version total_tests
b461079 5937471
correctness_percentage
100.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants