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

[TRAFODION-2575] Truncate long strings when computing USTAT aggregates #1044

Merged
merged 1 commit into from
Apr 5, 2017

Conversation

DaveBirdsall
Copy link
Contributor

This change affects the SELECTs that UPDATE STATISTICS generates when computing aggregates on long character and varchar columns. We now truncate the string before doing aggregation. (Note: We already do this in other code paths in UPDATE STATISTICS -- namely internal sorts and sample table population. This particular code path was overlooked.)

Besides improving performance, this will avoid UPDATE STATISTICS failing due to lingering engine issues concerning long varchars and sorts.

@Traf-Jenkins
Copy link

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

@Traf-Jenkins
Copy link

Copy link
Contributor

@zellerh zellerh left a comment

Choose a reason for hiding this comment

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

+1

@asfgit asfgit merged commit ca7c9c5 into apache:master Apr 5, 2017
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.

5 participants