[GitHub] [calcite] danny0405 commented on pull request #2238: [CALCITE-4364] `a IN (1, 2) AND a = 1` should be simplified to `a = 1`

2020-11-05 Thread GitBox
danny0405 commented on pull request #2238: URL: https://github.com/apache/calcite/pull/2238#issuecomment-722216992 > > RexProgramTest already does that. > > It has a very limited set of checks. Do you have an exhaustive check? I do not see that, so you can't claim `RexProgramTest`

[GitHub] [calcite] danny0405 commented on pull request #2238: [CALCITE-4364] `a IN (1, 2) AND a = 1` should be simplified to `a = 1`

2020-11-04 Thread GitBox
danny0405 commented on pull request #2238: URL: https://github.com/apache/calcite/pull/2238#issuecomment-722199402 > 3457 is very related because it was the reason to disable fuzzer testing which is a significant test case for RexSimplify logic. > > For instance, you've just pushed

[GitHub] [calcite] danny0405 commented on pull request #2238: [CALCITE-4364] `a IN (1, 2) AND a = 1` should be simplified to `a = 1`

2020-11-04 Thread GitBox
danny0405 commented on pull request #2238: URL: https://github.com/apache/calcite/pull/2238#issuecomment-722188731 > @danny0405 , before you commit more fixes to `RexSimplify` could I kindly ask you to review the regression which was introduced a year ago

[GitHub] [calcite] danny0405 commented on pull request #2238: [CALCITE-4364] `a IN (1, 2) AND a = 1` should be simplified to `a = 1`

2020-11-04 Thread GitBox
danny0405 commented on pull request #2238: URL: https://github.com/apache/calcite/pull/2238#issuecomment-721613490 > I believe the logic with `needToFix` makes no sense. Sarg replacement should be on per-sarg basis rather than "all or nothing" I'm not sure, because the Sarg

[GitHub] [calcite] danny0405 commented on pull request #2238: [CALCITE-4364] `a IN (1, 2) AND a = 1` should be simplified to `a = 1`

2020-11-04 Thread GitBox
danny0405 commented on pull request #2238: URL: https://github.com/apache/calcite/pull/2238#issuecomment-721595262 @vlsi Do you have other comments ? I'm planning to merge in the following 24 hours. This is an automated

[GitHub] [calcite] danny0405 commented on pull request #2238: [CALCITE-4364] `a in (1, 2) and a = 1` should be simplified to `a=1`

2020-11-03 Thread GitBox
danny0405 commented on pull request #2238: URL: https://github.com/apache/calcite/pull/2238#issuecomment-720289249 > We should merge two sargs if they apply to the same argument Totally agree, and actually this patch makes more sargs merged.