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

PHOENIX-2265 Disallow creation of view over HBase table if PK not spe… #439

Closed
wants to merge 0 commits into from

Conversation

yanxinyi
Copy link
Contributor

We currently allow a Phoenix view to be defined over an HBase table without specifying a primary key.
Fixed bug by adding pk check at CreateTableCompiler.compile. If no PK specified, it will throw a PK missing exception error.

Copy link
Contributor

@dbwong dbwong left a comment

Choose a reason for hiding this comment

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

Look generally okay to me. I would prefer a unit testable block of code but the e2e looks fine.

@yanxinyi
Copy link
Contributor Author

yanxinyi commented Feb 16, 2019

@twdsilva @karanmehta93 @ChinmaySKulkarni
pls take a look when u guys have time, thanks!

@ChinmaySKulkarni
Copy link
Contributor

A couple of nits for the tests. Overall lgtm. Thanks @yanxinyi

@yanxinyi
Copy link
Contributor Author

combined multi-commits into one.

@yanxinyi
Copy link
Contributor Author

followed @gjacoby126 suggestion and moved the test to ViewIT file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants