Skip to content

Fix bug in .xport format handling in extractor#6

Merged
Sallsamba merged 6 commits into
mainfrom
bug/dss14-sc-247203-sas-with-pandas-plugin-cannot-read-xport-file
Jun 11, 2025
Merged

Fix bug in .xport format handling in extractor#6
Sallsamba merged 6 commits into
mainfrom
bug/dss14-sc-247203-sas-with-pandas-plugin-cannot-read-xport-file

Conversation

@Sallsamba

@Sallsamba Sallsamba commented Jun 11, 2025

Copy link
Copy Markdown
Contributor

XPORT have a different structure than SAS7BDAT and need unsupported seek mode. So for now, let's force the "dump to file" option to handle them.

When dumping them to file, we modified the method read_schema() to detect the format and use the correct source of metadata.

PS : Right now, there is a custom field to specify between sas7bdat or xport format. Maybe the plugin could detect it automatically ? (and also avoid getting an error message everytime a xport file is getting loaded, before specifying its format)
image

@Sallsamba Sallsamba self-assigned this Jun 11, 2025
@apichery

Copy link
Copy Markdown
Contributor

Could we avoid always dumping the file onto disk? And do something like that:
image

@apichery apichery 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.

Did not test but code LGTM

@Sallsamba
Sallsamba merged commit 2bbc6d8 into main Jun 11, 2025
0 of 2 checks passed
@Sallsamba
Sallsamba deleted the bug/dss14-sc-247203-sas-with-pandas-plugin-cannot-read-xport-file branch June 11, 2025 18:10
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