GitHub user gatorsmile opened a pull request:

    https://github.com/apache/spark/pull/19608

    [SPARK-22396] [SQL] Better Error Message for InsertIntoDir using Hive 
format without enabling Hive Support

    ## What changes were proposed in this pull request?
    When Hive support is not on, users can hit unresolved plan node when trying 
to call `INSERT OVERWRITE DIRECTORY` using Hive format.
    ```
    "unresolved operator 'InsertIntoDir true, Storage(Location: 
/private/var/folders/vx/j0ydl5rn0gd9mgrh1pljnw900000gn/T/spark-b4227606-9311-46a8-8c02-56355bf0e2bc,
 Serde Library: org.apache.hadoop.hive.ql.io.orc.OrcSerde, InputFormat: 
org.apache.hadoop.hive.ql.io.orc.OrcInputFormat, OutputFormat: 
org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat), hive, true;;
    ```
    
    This PR is to issue a better error message.
    ## How was this patch tested?
    Added a test case.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/gatorsmile/spark hivesupportInsertOverwrite

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/19608.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #19608
    
----
commit 863991f9bbca99fd82df11a33a8da0091b370b68
Author: gatorsmile <[email protected]>
Date:   2017-10-30T06:16:59Z

    fix

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to