Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-790

TIMESTAMP_INSTANT should be primitive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0, 1.6.7
    • 1.7.0, 1.6.8
    • None
    • None

    Description

      Currently TIMESTAMP_INSTANT is defined as a non-primitive type. While TIMESTAMP is a primitive type.

      https://github.com/apache/orc/blob/cfa749854fd4fd78c763762f3515f33b9a206072/java/core/src/java/org/apache/orc/TypeDescription.java#L119

      TIMESTAMP_INSTANT("timestamp with local time zone", false);
      Category(String name, boolean isPrimitive) {
        this.name = name;
        this.isPrimitive = isPrimitive;
      }
      

      This can cause problems in code that branches based on type.getCategory().isPrimitive()

      Attachments

        Issue Links

          Activity

            People

              boroknagyz Zoltán Borók-Nagy
              boroknagyz Zoltán Borók-Nagy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: