Skip to content

whitespace column header removal - #1663

Merged
gerrycampion merged 8 commits into
mainfrom
wildcard_error
Mar 16, 2026
Merged

gerrycampion merged 8 commits into
mainfrom
wildcard_error

Conversation

@SFJohnson24

Copy link
Copy Markdown
Collaborator

To prevent issues like the one experienced in the attached issue, I added logic to strip column headers of their whitespace. Since we glean so much metadata--from column prefixes to domain from correctly IDing these columns, removing whitespace from them when reading the files is important
this was added to xlsx and json readers. since xpt are made with tooling, padded column names are not a concern. NDJSON and Dataset-JSON readers are also unaffected as their column names are derived from schema-validated "name" fields rather than raw file headers.

@SFJohnson24 SFJohnson24 self-assigned this Mar 11, 2026
@SFJohnson24 SFJohnson24 linked an issue Mar 11, 2026 that may be closed by this pull request

@RamilCDISC RamilCDISC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR updates the excel and json dataset readers to handle whitespaces in headers. The updated code was validated by:

  1. Reviewing the PR for any unwanted code or comments.
  2. Reviewing the PR in accordance with AC.
  3. Ensuring all unit and regression testing pass.
  4. Ensuring relevant testing is updated.
  5. Verifying the cases covered in new tests.
  6. The passing of test using the white spaces json and excel file validates the PR.

@gerrycampion
gerrycampion merged commit 4114574 into main Mar 16, 2026
12 checks passed
@gerrycampion
gerrycampion deleted the wildcard_error branch March 16, 2026 20:18

This branch was previously deployed

1 inactive deployment
DEV — 21ee0935 Deployed Mar 16, 2026 by gerrycampion via deploy_rule_tester #123
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.

Rule blocked: SEND-359

3 participants