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

[CALCITE-2462] RexProgramTest: move "rex building" methods to base class #788

Closed
wants to merge 6 commits into from

Conversation

vlsi
Copy link
Contributor

@vlsi vlsi commented Aug 10, 2018

https://issues.apache.org/jira/browse/CALCITE-2462

This simplifies creating Rex-based input data for tests
Note: it does not alter existing RexProgramTest, however I did modify a couple of tests to show how new methods would feel.

This simplifies creating Rex-based input data for tests
…ynamicParam test

The test checkSimplifyDynamicParam duplicates existing testSimplifyIsNotNull,
however it uses dynamic params, so the test becomes much cleaner.
@vlsi
Copy link
Contributor Author

vlsi commented Aug 10, 2018

I think this is feature complete. Could I get reviews please?

@vlsi
Copy link
Contributor Author

vlsi commented Aug 10, 2018

java.lang.ClassCastException: org.apache.calcite.util.NlsString cannot be cast to java.lang.Boolean
	at org.apache.calcite.test.RexProgramTest.testSimplifyCaseNullableBoolean(RexProgramTest.java:1573)

This was caused by copy-paste error. Now testSimplifyCaseNullableBoolean matches its previous code.

@asfgit asfgit closed this in 45782ed Aug 16, 2018
julianhyde pushed a commit to julianhyde/calcite that referenced this pull request Aug 26, 2018
This simplifies creating Rex-based input data for tests

fixes apache#788
sergeyT2 pushed a commit to sergeyT2/calcite that referenced this pull request Aug 29, 2018
This simplifies creating Rex-based input data for tests

fixes apache#788
sergeyT2 pushed a commit to sergeyT2/calcite that referenced this pull request Aug 29, 2018
This simplifies creating Rex-based input data for tests

fixes apache#788
F21 pushed a commit to F21/calcite that referenced this pull request Jan 3, 2019
This simplifies creating Rex-based input data for tests

fixes apache#788
wangxlong pushed a commit to wangxlong/calcite that referenced this pull request Feb 13, 2020
This simplifies creating Rex-based input data for tests

fixes apache#788
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant