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

Reduce stack depth by replace Option.isDefined with Option.isEmpty

    XMLWordPrintableJSON

Details

    Description

      There are a lot of Option.isDefined used with !, this behavior increase the stack length.
      The reason is isDefined calls isEmpty.
      final def isDefined: Boolean = !isEmpty

      We also get the compile waring Replace with . isEmpty

      Attachments

        Issue Links

          Activity

            People

              beliefer Jiaan Geng
              beliefer Jiaan Geng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: