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

Fix `QueryExecution.debug#toFile` use the passed in `maxFields` when `explainMode` is `CodegenMode`

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0, 3.2.2
    • SQL
    • None

    Description

      `QueryExecution.debug#toFile` method supports passing in `maxFields` and this parameter will be passed down when `explainMode` is SimpleMode, ExtendedMode, or CostMode, but the passed down `maxFields` was ignored because `QueryExecution#stringWithStats` overrides it with `SQLConf.get.maxToStringFields` at present

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: