oap-project / gazelle_plugin

Native SQL Engine plugin for Spark SQL with vectorized SIMD optimizations.
Apache License 2.0
256 stars 77 forks source link

[NSE-1114] Remove temp directory without FileUtils.forceDeleteOnExit #1131

Closed jackylee-ch closed 1 year ago

jackylee-ch commented 1 year ago

What changes were proposed in this pull request?

FileUtils.forceDeleteOnExit won't delete the files that are added after function calls, and it will fail to delete the directory. Thus we add new hook to delete the directory.

How was this patch tested?

unit tests.

github-actions[bot] commented 1 year ago

https://github.com/oap-project/native-sql-engine/issues/1114

zhouyuan commented 1 year ago

@jackylee-ch works for me, thanks for the fix!