-
Notifications
You must be signed in to change notification settings - Fork 1k
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-7046 Query results return different values when PKs of view have DESC order #1689
Conversation
phoenix-core/src/main/java/org/apache/phoenix/compile/ExpressionCompiler.java
Show resolved
Hide resolved
@@ -439,5 +439,121 @@ public void testDecimalDescOrderMultiplePKs() throws Exception { | |||
} | |||
} | |||
|
|||
@Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea to test with various data types.
Also tests for order by clause on that field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, do you want to add a test for order by clause on the key?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in the latest revision
@virajjasani Here is another case where it fails -
java.sql.SQLException: ERROR 201 (22000): Illegal data.
|
Thanks @jpisaac, this is taken care of in the latest revision. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1 Thanks @virajjasani
No description provided.