Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-29067

divide function does not throw an error, if a number is not passed to it

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Incomplete
    • 2.4.3
    • None
    • Java API
    • Apache Spark Java : 2.4.3

    Description

      Ex. 

      dataset.where(col("col1").divide("col2")).$greater(10)).show();

      If you see closely I forgot to wrap the divide parameter "col2" into col() function, so basically I pass a String. This should give me a NumberFormatException!, but instead the where clause resolves to null and I get a empty dataset as a result of above computation!!

      Attachments

        Activity

          People

            Unassigned Unassigned
            mangeshrananavare Mangesh Rananavare
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: