Skip to content

Comments

[CALCITE-7321] FilesTableFunction throws NumberFormatException on macOS with GNU stat installed#4672

Merged
asolimando merged 1 commit intoapache:mainfrom
asolimando:main-CALCITE-7321_osadapter_filestablefunction
Dec 11, 2025
Merged

[CALCITE-7321] FilesTableFunction throws NumberFormatException on macOS with GNU stat installed#4672
asolimando merged 1 commit intoapache:mainfrom
asolimando:main-CALCITE-7321_osadapter_filestablefunction

Conversation

@asolimando
Copy link
Member

Details in CALCITE-7321

@asolimando asolimando force-pushed the main-CALCITE-7321_osadapter_filestablefunction branch from b9cbde7 to 233b2cb Compare December 9, 2025 17:21
@asolimando asolimando force-pushed the main-CALCITE-7321_osadapter_filestablefunction branch from 233b2cb to bcbed0c Compare December 9, 2025 17:42
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

return Processes.processLines('\n', args);
}

private Enumerable<String> sourceGnuStat() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be a bit nicer to encapsulate the stat abstraction in an interface with multiple implementations

Copy link
Member

Choose a reason for hiding this comment

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

I think it’s fine to put it in the FilesTableFunction as well. It seems that sourceGnuStat won’t be used anywhere else.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree with the design principle, but as @xiedeyantu noted, this is an implementation detail specific to this table function and unlikely to be reused elsewhere, so I'd be inclined to leave it as-is

Copy link
Member Author

Choose a reason for hiding this comment

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

(if you don't feel strongly I'd rather land this as-is, I am not particularly in a rush but the whole PR is to regain the ability to execute tests locally, in my previous PR I missed some real test issues due to that as I never get a green run due to this class not working on my setup, which I don't manage)

Copy link
Member Author

Choose a reason for hiding this comment

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

Since you approved already I will consider it good to go if there are no objections in around 24h, thanks!

@asolimando asolimando added the LGTM-will-merge-soon Overall PR looks OK. Only minor things left. label Dec 10, 2025
@asolimando asolimando merged commit 6300c79 into apache:main Dec 11, 2025
36 checks passed
@asolimando asolimando deleted the main-CALCITE-7321_osadapter_filestablefunction branch December 11, 2025 18:46
@asolimando
Copy link
Member Author

Thanks @mihaibudiu, @xiedeyantu and @xuzifu666 for your reviews!

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

Labels

LGTM-will-merge-soon Overall PR looks OK. Only minor things left.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants