GitHub user jihoonson opened a pull request:

    https://github.com/apache/tajo/pull/395

    TAJO-1366: The timestamp type conversion occasionally leads to wrong results

    Let me suppose an example query as follows:
    ```
    select 'Mon Nov 03 00:03:00 +0000 2014'::timestamp;
    ```
    The problem is that 'Mon' is identified as the ```UNITS``` type, but its 
actual type is ```DOW``` in this query.
    This wrong parsing result is led by the duplicated key when managing 
DateTimeConstants in a map.
    So, I removed all items of ```deltatktbl```, which causes the duplication 
problem, from the constants map.
    This table is used when parsing ```interval```, but we don't support it yet.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/jihoonson/tajo-2 TAJO-1366

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tajo/pull/395.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #395
    
----
commit baed07522caca353a231564861306790385673ea
Author: Jihoon Son <[email protected]>
Date:   2015-03-03T03:32:29Z

    TAJO-1366

commit fd783f0842d2bf41dbad4e218bf6c53b85d0c9dc
Author: Jihoon Son <[email protected]>
Date:   2015-03-03T03:33:40Z

    TAJO-1366

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to