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

exec: Bug fixes in vectorized casts #40495

Merged
merged 1 commit into from
Sep 5, 2019

Conversation

rohany
Copy link
Contributor

@rohany rohany commented Sep 4, 2019

  • Fixed a bug where the appropriate setters and getters were not being
    generated for the casts.

  • Fixed a bug where columns were not getting sliced, causing column
    length mismatches.

Fixes #40461.

Release note: None

@rohany rohany requested review from jordanlewis and a team September 4, 2019 22:50
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rohany
Copy link
Contributor Author

rohany commented Sep 4, 2019

@jordanlewis this should fix that decimal casting business. I think when we flipped the fromtyp to totype it was somehow reading decimals in as floats and things were going wrong.

@rohany
Copy link
Contributor Author

rohany commented Sep 4, 2019

re #40461, i can't repro this on here, but I'll try again tomorrow on a GCE worker.

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. Let's see if this fixes the problem I was seeing locally too.

@rohany
Copy link
Contributor Author

rohany commented Sep 5, 2019

JK, i was able to repo #40461 on this branch :(. This is still should fix the problems you were having.

bors r+

@craig
Copy link
Contributor

craig bot commented Sep 5, 2019

Build failed

@rohany
Copy link
Contributor Author

rohany commented Sep 5, 2019

bors r+

@rohany
Copy link
Contributor Author

rohany commented Sep 5, 2019

bors r-

@craig
Copy link
Contributor

craig bot commented Sep 5, 2019

Canceled

@rohany
Copy link
Contributor Author

rohany commented Sep 5, 2019

@jordanlewis PTAL on this pr -- based on the templating it made more sense to do both changes here.

@rohany rohany changed the title exec: Fix a templating bug in vectorized cast exec: Bug fixes in vectorized casts Sep 5, 2019
* Fixed a bug where the appropriate setters and getters were not being
generated for the casts.

* Fixed a bug where columns were not getting sliced, causing column
length mismatches.

Fixes cockroachdb#40461.

Release note: None
Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

LGTM. Can you figure out a way to test this, or not until the decimal thing gets merged?

@rohany
Copy link
Contributor Author

rohany commented Sep 5, 2019

I can’t right now, due to every supported cast having the same set, get and slice operators :(

@rohany
Copy link
Contributor Author

rohany commented Sep 5, 2019

bors r+

craig bot pushed a commit that referenced this pull request Sep 5, 2019
40495: exec: Bug fixes in vectorized casts r=rohany a=rohany

* Fixed a bug where the appropriate setters and getters were not being
generated for the casts.

* Fixed a bug where columns were not getting sliced, causing column
length mismatches.

Fixes #40461.

Release note: None

Co-authored-by: Rohan Yadav <rohany@alumni.cmu.edu>
@craig
Copy link
Contributor

craig bot commented Sep 5, 2019

Build succeeded

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.

roachtest: tpchbench/tpch/nodes=3/cpu=4/sf=1 failed
3 participants