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

Make some syntactic simplification

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.5.0
    • 3.5.0
    • SQL
    • None

    Description

      • Use `exists` instead of `find` and `emptiness check`
      • Use `orNull` instead of `etOrElse(null)`
      • Use `getOrElse(key, value)` instead of `get(key).getOrElse(value)` on map
      • Use `find` instead of `filter` + `headOption`

      Attachments

        Activity

          People

            LuciferYang Yang Jie
            LuciferYang Yang Jie
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: