21 namespace foreign_storage {
34 template <
typename V,
typename T, T conversion_denominator,
typename NullType = V>
38 conversion_denominator * kSecsPerDay,
44 const parquet::ColumnDescriptor* parquet_column_descriptor)
48 parquet_column_descriptor) {}
53 const auto& parquet_data_value =
reinterpret_cast<const T*
>(parquet_data)[j];
61 UNREACHABLE() <<
"ParquetDateInDaysFromTimestampEncoder should never be used during "
static void validateValue(const D &data_value, const SQLTypeInfo &column_type)
ParquetDateInDaysFromTimestampEncoder(Data_Namespace::AbstractBuffer *buffer, const ColumnDescriptor *column_desciptor, const parquet::ColumnDescriptor *parquet_column_descriptor)
An AbstractBuffer is a unit of data management for a data manager.
specifies the content in-memory of a row in the column metadata table
T convert(const T &value) const
void validate(std::shared_ptr< parquet::Statistics > stats, const SQLTypeInfo &column_type) const override
void validate(const int8_t *parquet_data, const int64_t j, const SQLTypeInfo &column_type) const override