Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-1140

Casting of a timestamp to time fails

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.4.0
    • Functions - Drill
    • None

    Description

      git.commit.id.abbrev=699851b

      0: jdbc:drill:schema=dfs> select cast(create_time as timestamp) from voter where voter_id=1;
      ------------

      EXPR$0

      ------------

      2014-05-25 03:41:54.0

      ------------

      0: jdbc:drill:schema=dfs> select cast(create_time as time) from voter where voter_id=1;
      message: "Failure while running fragment. < IllegalArgumentException:[ Invalid format: "2014-05-25 03:41:54" is malformed at "14-05-25 03:41:54" ]"

      The same query from oracle and postgres return the time portion of the timestamp.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            DrillCommitter DrillCommitter
            knguyen Krystal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment