Hello,

Could someone explain how to leverage the following method to create a
PrimitiveType from LogicalTypeAnnotation?

https://github.com/apache/parquet-java/blob/7d1fe32c8c972710a9d780ec5e7d1f95d871374d/parquet-column/src/main/java/org/apache/parquet/schema/PrimitiveType.java#L457

  /**
   * @param repetition OPTIONAL, REPEATED, REQUIRED
   * @param primitive  STRING, INT64, ...
   * @param name       the name of the type
   */
  public PrimitiveType(Repetition repetition, PrimitiveTypeName primitive,
String name) {
    this(repetition, primitive, 0, name, (LogicalTypeAnnotation) null,
null, null);
  }

I see that the LogicalTypeAnnotation var is nullified but can we use it?

Thanks for clarifying.

Reply via email to