hi Felipe,

Yes, that's right. For primitive types it is typical for the
LogicalType to be not set in the Thrift metadata. The particular
integer logical types were added relatively late to the Parquet format
and are not used in all implementations (for example, some databases
like Hive and Impala have their own metastores which are used together
with Parquet files to cast to the appropriate runtime type, like
smallint or tinyint)

- Wes

On Thu, Jun 8, 2017 at 10:34 AM, Felipe Aramburu <[email protected]> wrote:
> I was playing around with some Parquet files that were generated using
> Apache Drill and I as I look at the ColumnDescriptors that one of the
> columns has a logical type LogicalType::None and a physical type of
> Type::Int32.
>
> Is it normal for this to happen. When something is of type none can that
> mean and the ColumnDescriptor's node  is_primitive()  function returns true
> does that mean I can ignore the logical type and just look at the primitive
> type to know how to interpret the data?
>
> Felipe
>
> ᐧ

Reply via email to