| 178 | }; |
| 179 | |
| 180 | liborc::RowReaderOptions DefaultRowReaderOptions() { |
| 181 | liborc::RowReaderOptions options; |
| 182 | // Orc timestamp type is error-prone since it serializes values in the writer timezone |
| 183 | // and reads them back in the reader timezone. To avoid this, both the Apache Orc C++ |
| 184 | // writer and reader set the timezone to GMT by default to avoid any conversion. |
| 185 | // We follow the same practice here explicitly to make sure readers are aware of this. |
| 186 | options.setTimezoneName("GMT"); |
| 187 | return options; |
| 188 | } |
| 189 | |
| 190 | #ifdef ARROW_ORC_NEED_TIME_ZONE_DATABASE_CHECK |
| 191 | // Proactively check timezone database availability for ORC versions older than 2.0.0 |
no outgoing calls
no test coverage detected