Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-1393

Initiate Datetime without sec causes IndexOutOfBoundsException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • EXT - External data
    • None

    Description

      When passing date time value without second, e.g.: datetime("2016-03-04T17:17"), it will cause ArrayIndexOutOfBoundsException:18. The exception happens at

      at org.apache.asterix.om.base.temporal.ATimeParserFactory.parseTimePart(ATimeParserFactory.java:385)

      I think another exception handler might be better for this scenario.

      Attachments

        Activity

          People

            idleft Xikui Wang
            idleft Xikui Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: