I don't understand, it can also be a PrimitiveType. Btw if it is there's the following function to convert back a LogicalTypeAnnotation to a PrimitiveType and hence to Type
withLogicalTypeAnnotation <https://www.javadoc.io/static/org.apache.parquet/parquet-column/1.15.0/org/apache/parquet/schema/PrimitiveType.html#withLogicalTypeAnnotation-org.apache.parquet.schema.LogicalTypeAnnotation-> (LogicalTypeAnnotation <https://www.javadoc.io/static/org.apache.parquet/parquet-column/1.15.0/org/apache/parquet/schema/LogicalTypeAnnotation.html> logicalType) Otherwise (GroupType) which constructor is most suitable for the conversion. Le mer. 26 mars 2025 à 04:18, Gang Wu <[email protected]> a écrit : > No, LogicalType is a part (or an attribute) of GroupType so you might get a > LogicalTypeAnnotation from a GroupType but not the opposite. > > On Wed, Mar 26, 2025 at 10:45 AM marc nicole <[email protected]> wrote: > > > I have a LogicalTypeAnnotation.StringLogicalTypeAnnotation created > through > > stringType() ( > > > > > https://www.javadoc.io/doc/org.apache.parquet/parquet-column/latest/org/apache/parquet/schema/LogicalTypeAnnotation.html > > ) > > ( > > > > > https://www.javadoc.io/doc/org.apache.parquet/parquet-column/latest/org/apache/parquet/schema/LogicalTypeAnnotation.StringLogicalTypeAnnotation.html > > ) > > > > Is there a way to convert it to Type > > > > > https://www.javadoc.io/doc/org.apache.parquet/parquet-column/latest/org/apache/parquet/schema/GroupType.html > > > > Thanks. > > >
