Skip to content

fix date can join with comparison#356

Closed
zinking wants to merge 1 commit intoapache:masterfrom
zinking:CAL-1569
Closed

fix date can join with comparison#356
zinking wants to merge 1 commit intoapache:masterfrom
zinking:CAL-1569

Conversation

@zinking
Copy link
Copy Markdown
Contributor

@zinking zinking commented Jan 20, 2017

CALCITE-1569 fix dates can join with comparison

}

@Override public MemberExpression field(Expression expression, int field,
Type fromType, Type fieldType) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why this newly added method has totally same codes with above method?

julianhyde pushed a commit to julianhyde/calcite that referenced this pull request Jan 23, 2017
… Wang)

Date condition currently generates Integer == Integer, which is
always false.

Review comments from Julian Hyde: The fix isn't ideal. I'd rather
that we convert java.sql.Date values when they enter the system. And,
if we allow java.sql.Date values then we should treat java.util.Date,
java.sql.Time and java.sql.Timestamp values similarly. But, being
pragmatic, I'm going to accept the patch because it fixes cases that
didn't work previously. If we see further problems in this area, we
might back out the changes and do it properly.

Close apache#356
julianhyde pushed a commit to julianhyde/calcite that referenced this pull request Jan 23, 2017
… Wang)

Date condition currently generates Integer == Integer, which is
always false.

Review comments from Julian Hyde: The fix isn't ideal. I'd rather
that we convert java.sql.Date values when they enter the system. And,
if we allow java.sql.Date values then we should treat java.util.Date,
java.sql.Time and java.sql.Timestamp values similarly. But, being
pragmatic, I'm going to accept the patch because it fixes cases that
didn't work previously. If we see further problems in this area, we
might back out the changes and do it properly.

Close apache#356
@asfgit asfgit closed this in d335e48 Jan 25, 2017
ldming pushed a commit to ldming/mycalcite that referenced this pull request Sep 13, 2018
… Wang)

Date condition currently generates Integer == Integer, which is
always false.

Review comments from Julian Hyde: The fix isn't ideal. I'd rather
that we convert java.sql.Date values when they enter the system. And,
if we allow java.sql.Date values then we should treat java.util.Date,
java.sql.Time and java.sql.Timestamp values similarly. But, being
pragmatic, I'm going to accept the patch because it fixes cases that
didn't work previously. If we see further problems in this area, we
might back out the changes and do it properly.

Close apache/calcite#356
jamesstarr pushed a commit to jamesstarr/calcite that referenced this pull request Mar 16, 2026
Co-authored-by: Haisheng Yuan <h.yuan@alibaba-inc.com>
jamesstarr pushed a commit to jamesstarr/calcite that referenced this pull request Mar 16, 2026
Co-authored-by: Haisheng Yuan <h.yuan@alibaba-inc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants