Hi,

My project used to use Apache orc-core 1.2.3, in my code I use
createWriter(Path path, OrcFile.WriterOptions opts) to create a writer,
path argument is a file exist in FileSystem. It worked well. After I
upgraded orc-core to 1.7.0, I found that my unit test failed with the
org.apache.hadoop.fs.FileAlreadyExistsException.

I found that in ORC-119 there was a change that added a PhysicalFsWriter
into WriterImpl constructor.
In PhysicalFsWriter's constructor it checks if the file exist and if
overwrite is true.
So it's this change breaking the backward compatibility, has anyone had
this issue when you upgrade the version?
How did you fix it?

Thanks,

Anthony

Reply via email to