Missing Codec Exception thrown by using WHERE

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 10.0.3
    • Affects Version/s: None
    • Component/s: Reads
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Similar to SPARK-342 SPARK-340.

      Use of Timestamp and Scala Arrays in where statements use the codec registry directly and throw because of missing codecs. Unlike the write side which uses RowToBsonDocumentConverter.

      spark.read.format("mongodb").where("myArray == array('123')").collect()
      
      spark.read.format("mongodb").where("createdDate = cast('2022-01-06T07:06:51.628' as timestamp)").collect()
      

              Assignee:
              Ross Lawley
              Reporter:
              Ross Lawley
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: