Skip to content

fix: check exact header names when adding columns - #145

Open
Shubham-Padkonde wants to merge 1 commit into
google:masterfrom
Shubham-Padkonde:fix/exact-column-name-check
Open

Shubham-Padkonde wants to merge 1 commit into
google:masterfrom
Shubham-Padkonde:fix/exact-column-name-check

Conversation

@Shubham-Padkonde

Copy link
Copy Markdown

Adding a column named name to a table with a hostname column fails as a duplicate. A new column whose name matches a cell value is rejected too. AddColumn searches the rendered table string instead of the header keys.

Check exact header membership. Regression cases cover both false positives, append and indexed insertion, preserved cell values, and rejection of actual duplicate headers.

Validation: both regression cases fail before the fix; all 102 tests pass afterward. git diff --check passes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant