You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/07/04 15:30:22 UTC

[GitHub] [spark] peter-toth opened a new pull request #25054: [SPARK-28251][SQL] Fix error message of inserting into a non-existing table

peter-toth opened a new pull request #25054: [SPARK-28251][SQL] Fix error message of inserting into a non-existing table
URL: https://github.com/apache/spark/pull/25054
 
 
   ## What changes were proposed in this pull request?
   
   Before this PR inserting into a non-existing table returned a weird error message:
   ```
   sql("INSERT INTO test VALUES (1)").show
   org.apache.spark.sql.AnalysisException: unresolved operator 'InsertIntoTable 'UnresolvedRelation [test], false, false;;
   'InsertIntoTable 'UnresolvedRelation [test], false, false
   +- LocalRelation [col1#4]
   ```
   after this PR the error message becomes:
   ```
   Table not found: test
   ```
   
   ## How was this patch tested?
   
   Added a new UT.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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