Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

TAJO-948: 'INSERT INTO' statement to non existence table casuses NPE#142

Closed
eminency wants to merge 2 commits into
apache:masterfrom
eminency:TAJO-948
Closed

TAJO-948: 'INSERT INTO' statement to non existence table casuses NPE#142
eminency wants to merge 2 commits into
apache:masterfrom
eminency:TAJO-948

Conversation

@eminency
Copy link
Copy Markdown
Contributor

The cause is there is no part to check if the table instance is null before it's used.

Please review if the changeset is appropriate.

Thanks.

@eminency eminency changed the title TAJO-948: INSERT INTO' statement to non existence table casuses NPE TAJO-948: 'INSERT INTO' statement to non existence table casuses NPE Sep 16, 2014
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The bug fix looks correct. But, I have one suggestion about the message. The other similar cases use relation "%s" does not exist. Could you change the message for consistency?

You can see the similar case at https://github.com/eminency/tajo/blob/TAJO-948/tajo-core/src/main/java/org/apache/tajo/engine/planner/PreLogicalPlanVerifier.java#L134

@eminency
Copy link
Copy Markdown
Contributor Author

@hyunsik ,

Your line comment sounds like a good suggestion.
I will touch further.

Thanks.

@eminency
Copy link
Copy Markdown
Contributor Author

The message was refined.

@hyunsik
Copy link
Copy Markdown
Member

hyunsik commented Sep 17, 2014

+1

The patch looks good to me.

@asfgit asfgit closed this in 2001774 Sep 17, 2014
@eminency eminency deleted the TAJO-948 branch September 18, 2014 06:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants