You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "David Milicevic (Jira)" <ji...@apache.org> on 2025/02/21 09:49:00 UTC

[jira] [Created] (SPARK-51284) Fix empty result return from SQL Scripts

David Milicevic created SPARK-51284:
---------------------------------------

             Summary: Fix empty result return from SQL Scripts
                 Key: SPARK-51284
                 URL: https://issues.apache.org/jira/browse/SPARK-51284
             Project: Spark
          Issue Type: Sub-task
          Components: Spark Core
    Affects Versions: 4.0.0, 4.1.0
            Reporter: David Milicevic


If the result statement in the SQL Script exists, but returns nothing, there are a few problems:
 * Tests are missing.
 * Execution is failing.
 * Schema would be missing if we fix just the execution failing part.

Fix is quite simple, don't rely on reading schema from the output Rows, rather read the schema from the resulting DataFrame.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org