See discussion here https://github.com/datafusion-contrib/datafusion-orc/pull/73#issuecomment-2016421465