Hive
  1. Hive
  2. HIVE-3454

Problem with CAST(BIGINT as TIMESTAMP)

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 0.8.0, 0.8.1, 0.9.0
    • Fix Version/s: None
    • Component/s: Types, UDF
    • Labels:
    • Tags:
      timestamp

      Description

      Ran into an issue while working with timestamp conversion.
      CAST(unix_timestamp() as TIMESTAMP) should create a timestamp for the current time from the BIGINT returned by unix_timestamp()

      Instead, however, a 1970-01-16 timestamp is returned.

      1. HIVE-3454.patch
        0.9 kB
        Arijit Banerjee
      2. HIVE-3454.1.patch.txt
        0.5 kB
        Paul Bergeron

        Issue Links

          Activity

          Ryan Harris created issue -
          Mark Grover made changes -
          Field Original Value New Value
          Link This issue is duplicated by HIVE-3822 [ HIVE-3822 ]
          Ryan Harris made changes -
          Affects Version/s 0.8.1 [ 12319268 ]
          Affects Version/s 0.8.0 [ 12316178 ]
          Paul Bergeron made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Labels newbie newdev patch
          Paul Bergeron made changes -
          Attachment HIVE-3454.1.patch.txt [ 12573223 ]
          Arijit Banerjee made changes -
          Attachment HIVE-3454.patch [ 12588389 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Ryan Harris
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:

                Development