Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Conversation

@DaveBirdsall
Copy link
Contributor

When an interval literal was referenced twice or more in an INSERT/SELECT in expressions with different INTERVAL types, the PCode optimizer was incorrectly treating the code to produce the interval literal value as a common subexpression, so the INSERT/SELECT would insert incorrect values.

This has been fixed. The PCode optimizer common subexpression elimination logic now checks for commonality in datatype, scale and precision for INTERVAL conversions.

A test case that demonstrates the problem (with correct behavior with the fix) has been added to core/TEST038.

@Traf-Jenkins
Copy link

Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3060/

@Traf-Jenkins
Copy link

@asfgit asfgit merged commit 8b4e533 into apache:master Dec 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants