This is an automated email from the ASF dual-hosted git repository.
rubenql pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/master by this push:
new 6f02ecf [CALCITE-3198] Enhance RexSimplify to handle '(x<>a or x<>b)'
(fix javadoc)
6f02ecf is described below
commit 6f02ecf33318b223f752a3f6f3daa70753149875
Author: rubenada <[email protected]>
AuthorDate: Fri Aug 9 14:39:52 2019 +0200
[CALCITE-3198] Enhance RexSimplify to handle '(x<>a or x<>b)' (fix javadoc)
---
.../test/java/org/apache/calcite/test/RelOptRulesTest.java | 12 ++++++------
.../test/java/org/apache/calcite/test/RexProgramTest.java | 8 ++++----
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java
b/core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java
index 28d2979..ec4c47b 100644
--- a/core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java
+++ b/core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java
@@ -2174,7 +2174,7 @@ public class RelOptRulesTest extends RelOptTestBase {
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testReduceConstantsDup3() throws Exception {
HepProgram program = new HepProgramBuilder()
.addRuleInstance(ReduceExpressionsRule.FILTER_INSTANCE)
@@ -2188,7 +2188,7 @@ public class RelOptRulesTest extends RelOptTestBase {
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testReduceConstantsDup3Null() throws Exception {
HepProgram program = new HepProgramBuilder()
.addRuleInstance(ReduceExpressionsRule.FILTER_INSTANCE)
@@ -2202,7 +2202,7 @@ public class RelOptRulesTest extends RelOptTestBase {
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testReduceConstantsDupNot() throws Exception {
HepProgram program = new HepProgramBuilder()
.addRuleInstance(ReduceExpressionsRule.FILTER_INSTANCE)
@@ -2216,7 +2216,7 @@ public class RelOptRulesTest extends RelOptTestBase {
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testReduceConstantsDupNotNull() throws Exception {
HepProgram program = new HepProgramBuilder()
.addRuleInstance(ReduceExpressionsRule.FILTER_INSTANCE)
@@ -2230,7 +2230,7 @@ public class RelOptRulesTest extends RelOptTestBase {
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testReduceConstantsDupNot2() throws Exception {
HepProgram program = new HepProgramBuilder()
.addRuleInstance(ReduceExpressionsRule.FILTER_INSTANCE)
@@ -2244,7 +2244,7 @@ public class RelOptRulesTest extends RelOptTestBase {
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testReduceConstantsDupNot2Null() throws Exception {
HepProgram program = new HepProgramBuilder()
.addRuleInstance(ReduceExpressionsRule.FILTER_INSTANCE)
diff --git a/core/src/test/java/org/apache/calcite/test/RexProgramTest.java
b/core/src/test/java/org/apache/calcite/test/RexProgramTest.java
index b2c4085..da08906 100644
--- a/core/src/test/java/org/apache/calcite/test/RexProgramTest.java
+++ b/core/src/test/java/org/apache/calcite/test/RexProgramTest.java
@@ -1495,7 +1495,7 @@ public class RexProgramTest extends RexProgramBuilderBase
{
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testSimplifyOrNotEqualsNotNullable() {
checkSimplify(
or(
@@ -1506,7 +1506,7 @@ public class RexProgramTest extends RexProgramBuilderBase
{
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testSimplifyOrNotEqualsNotNullable2() {
checkSimplify(
or(
@@ -1518,7 +1518,7 @@ public class RexProgramTest extends RexProgramBuilderBase
{
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testSimplifyOrNotEqualsNullable() {
checkSimplify3(
or(
@@ -1529,7 +1529,7 @@ public class RexProgramTest extends RexProgramBuilderBase
{
/** Test case for
* <a
href="https://issues.apache.org/jira/browse/CALCITE-3198">[CALCITE-3198]
- * Enhance RexSimplify to handle (x!=a or x!=b)</a>. */
+ * Enhance RexSimplify to handle (x<>a or x<>b)</a>. */
@Test public void testSimplifyOrNotEqualsNullable2() {
checkSimplify3(
or(