Skip to content

fix(pkg-py): metadata.columns now returns internal positional names#170

Merged
cpsievert merged 1 commit intoposit-dev:mainfrom
cpsievert:fix/metadata-columns-regression
Mar 4, 2026
Merged

fix(pkg-py): metadata.columns now returns internal positional names#170
cpsievert merged 1 commit intoposit-dev:mainfrom
cpsievert:fix/metadata-columns-regression

Conversation

@cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Mar 4, 2026

This fixes a python test that started failing after #151 -- which resulted in metadata.columns returning pos1/pos2 instead of x/y. Just checking, is that intentional @thomasp85?

Either way, I think it probably makes the most sense to scale the Python test back to not dig into the specification so deeply.

@cpsievert cpsievert marked this pull request as draft March 4, 2026 18:45
@cpsievert cpsievert closed this Mar 4, 2026
@cpsievert cpsievert changed the title fix: exclude resolved defaults from metadata.columns fix: metadata.columns returns original SQL column names Mar 4, 2026
@cpsievert cpsievert reopened this Mar 4, 2026
@cpsievert cpsievert force-pushed the fix/metadata-columns-regression branch from 1fdbe61 to 196350e Compare March 4, 2026 20:14
The metadata.columns field reflects internal ggsql spec details that are
still evolving. The Python test should verify the structure (list, non-empty)
without asserting specific column names.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cpsievert cpsievert force-pushed the fix/metadata-columns-regression branch from 196350e to 1467dfa Compare March 4, 2026 20:22
@cpsievert cpsievert changed the title fix: metadata.columns returns original SQL column names fix(python): don't assert specific column names in test_execute_metadata Mar 4, 2026
@cpsievert cpsievert changed the title fix(python): don't assert specific column names in test_execute_metadata fix(pkg-py): metadata.columns now returns internal positional names Mar 4, 2026
@cpsievert cpsievert marked this pull request as ready for review March 4, 2026 20:51
@cpsievert cpsievert merged commit 254a2b0 into posit-dev:main Mar 4, 2026
30 checks passed
@thomasp85
Copy link
Collaborator

TBH I'm not entirely sure what the contract is with metadata. It is true that the internal representation of positional aesthetics are now coordinate system agnostic but perhaps this should be changed back when fetching the metadata?

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.

2 participants