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

Data Conversion Error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • Functions - Drill
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: