Skip to content
Snippets Groups Projects
Commit 890abd12 authored by Reynold Xin's avatar Reynold Xin
Browse files

[SPARK-14869][SQL] Don't mask exceptions in ResolveRelations

## What changes were proposed in this pull request?
In order to support running SQL directly on files, we added some code in ResolveRelations to catch the exception thrown by catalog.lookupRelation and ignore it. This unfortunately masks all the exceptions. This patch changes the logic to simply test the table's existence.

## How was this patch tested?
I manually hacked some bugs into Spark and made sure the exceptions were being propagated up.

Author: Reynold Xin <rxin@databricks.com>

Closes #12634 from rxin/SPARK-14869.
parent 5c8a0ec9
No related branches found
No related tags found
No related merge requests found
Showing
with 26 additions and 18 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment