ORC Files
Since Spark 2.3, Spark supports a vectorized ORC reader with a new ORC file format for ORC files.
To do that, the following configurations are newly added. The vectorized reader is used for the
native ORC tables (e.g., the ones created using the clause USING ORC) when spark.sql.orc.impl
is set to native and spark.sql.orc.enableVectorizedReader is set to true. For the Hive ORC
serde tables (e.g., the ones created using the clause USING HIVE OPTIONS (fileFormat 'ORC')),
the vectorized reader is used when spark.sql.hive.convertMetastoreOrc is also set to true.
| Property Name | Default | Meaning | 
|---|---|---|
| spark.sql.orc.impl | native | The name of ORC implementation. It can be one of nativeandhive.nativemeans the native ORC support.hivemeans the ORC library in Hive. | 
| spark.sql.orc.enableVectorizedReader | true | Enables vectorized orc decoding in nativeimplementation. Iffalse, a new non-vectorized ORC reader is used innativeimplementation. Forhiveimplementation, this is ignored. | 
