gabrywu opened a new issue, #6691: URL: https://github.com/apache/kyuubi/issues/6691
### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) ### Search before asking - [X] I have searched in the [issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no similar issues. ### Describe the feature A new Spark SQL command to merge small files ```sparksql compact table table_name [INTO ${targetFileSize} ${targetFileSizeUnit} ] [ cleanup | retain | list ] -- targetFileSizeUnit can be 'b','k','m','g','t','p' -- cleanup means cleaning compact staging folders, which contains original small files, default behavior -- retain means retaining compact staging folders, for testing, and we can recover with the staging data -- list means this command only get the merging result, and don't run actually ``` ### Motivation There are many cases in which a SQL generate small files, we MUST merge them into bigger ones. ### Describe the solution _No response_ ### Additional context _No response_ ### Are you willing to submit PR? - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve. - [ ] No. I cannot submit a PR at this time. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org For additional commands, e-mail: notifications-h...@kyuubi.apache.org