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

release-19.2: colexec: add timestamp type #42416

Merged
merged 3 commits into from
Nov 12, 2019

Conversation

yuzefovich
Copy link
Member

Backport 3/3 commits from #41662.

/cc @cockroachdb/release


This PR is the rebased version of #40250 with a modification of how we're creating DTimestamp in PhysicalTypeColElemToDatum.

colexec,coldata: support timestamp type

This commit adds support for the TIMESTAMP type to the coldata and colexec
packages.

Release note (sql change): vectorized execution engine now supports
TIMESTAMP type.

colexec: add random projection tests for all types

This test randomly runs binary comparisons against all types with random
data, verifying that the result of Datum.Compare matches the result of
the exec projection.

This found the bug with date infinity matching tracked in #40354, and
immediately found a bug with the timestamp implementation in the
previous commit, so I'm fairly sure it's a useful random test to have
around.

Release note: None

colserde: add simple serialization for TIMESTAMP

This commit adds simple (and quite inefficient) serialization
for TIMESTAMP type which uses the provided marshalling and
unmarshalling methods.

Release note: None

This commit adds support for the TIMESTAMP type to the coldata and colexec
packages.

Release note (sql change): vectorized execution engine now supports
TIMESTAMP type.
@yuzefovich yuzefovich requested a review from a team as a code owner November 12, 2019 18:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

jordanlewis and others added 2 commits November 12, 2019 12:09
This test randomly runs binary comparisons against all types with random
data, verifying that the result of Datum.Compare matches the result of
the exec projection.

This found the bug with date infinity matching tracked in cockroachdb#40354, and
immediately found a bug with the timestamp implementation in the
previous commit, so I'm fairly sure it's a useful random test to have
around.

Release note: None
This commit adds simple (and quite inefficient) serialization
for TIMESTAMP type which uses the provided marshalling and
unmarshalling methods.

Release note: None
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.

4 participants