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

Query failing for Mixed Datatype Date and String

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.17.0
    • None
    • Storage - MongoDB
    • None

    Description

      When a single field has 2 datatypes i.e. String and Date, the following exception is thrown:

      org.apache.drill.common.exceptions.UserRemoteException: INTERNAL_ERROR ERROR: You tried to write a VarChar type when you are using a ValueWriter of type NullableTimeStampWriterImpl.
      

       

      Steps to Reproduce:

      Create 2 records in a collection say tmp:

      db.tmp.save({"_id" : "date", "reportDate" : ISODate("1970-01-01T00:00:00Z")});
      db.tmp.save({"_id" : "string", "reportDate" : "1970-01-01T00:00:00Z"}); 
      

       

      Fire Drill Query to see the above Exception:

      Select reportDate from tmp;

       

      Additional Setting: 

      store.mongo.all_text_mode is set to true.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            swat Swatantra Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: