Xikui Wang created ASTERIXDB-1393:
-------------------------------------
Summary: Initiate Datetime without sec causes
IndexOutOfBoundsException
Key: ASTERIXDB-1393
URL: https://issues.apache.org/jira/browse/ASTERIXDB-1393
Project: Apache AsterixDB
Issue Type: Bug
Components: Data Formats
Reporter: Xikui Wang
Priority: Trivial
When passing date time value without second part, e.g.:
datetime("2016-03-04T17:17"), it will cause ArrayIndexOutOfBoundsException:18.
The exception happens at
{quote}
at
org.apache.asterix.om.base.temporal.ATimeParserFactory.parseTimePart(ATimeParserFactory.java:385)
{/quote}
I think another exception handler might be better for this scenario.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)