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

Data Conversion Error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Functions - Drill
    • Labels:
      None

      Description

      I need to convert the date from17-SEP-20 03.06.45.000000000 PM TO '2020-12-16 00:00:00' 

      I have tried all the avialble to_char, date and son on but nothin ghas helped. can any one please advise..
      select columns[5] audit_date_time from  s3_ccr.`S3_test/com_card.csv`

      Data in the CSV File 

      17-SEP-20 03.06.45.000000000 PM
      17-SEP-20 03.06.45.000000000 PM
      05-OCT-20 03.06.45.000000000 PM
      05-OCT-20 03.06.45.000000000 PM
      CONVERT TO 

        '2020-12-16 00:00:00' 

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sandeep1077 Sandeep
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: