Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

throw all exceptions out in ColumnarSQLRewriter #129

Merged
merged 4 commits into from
Oct 6, 2014

Conversation

sushilmohanty
Copy link
Contributor

For queries having subqueries in from clause catch SemanticException and return.

@@ -507,6 +507,7 @@ public void buildQuery() {
analyzeInternal();
} catch (SemanticException e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should throw the exception out, instead of catching and returning

@@ -669,6 +665,8 @@ public synchronized String rewrite(Configuration conf, String query)
}
} catch (ParseException e) {
e.printStackTrace();
} catch (SemanticException e) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be thrown all the way up. No catching anywhere. If signature expects GrillException, then catch and throw with cause as this.

@Amareshwari Amareshwari changed the title Return in case of SemanticException in analyze internal throw all exceptions out in ColumnarSQLRewriter Oct 6, 2014
Amareshwari added a commit that referenced this pull request Oct 6, 2014
throw all exceptions out in ColumnarSQLRewriter
@Amareshwari Amareshwari merged commit 8039856 into InMobi:develop Oct 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants