Skip to content

ORC-688: Allow CHAR to be promoted to STRING#572

Merged
dongjoon-hyun merged 1 commit intoapache:masterfrom
pgaref:ORC-688
Nov 27, 2020
Merged

ORC-688: Allow CHAR to be promoted to STRING#572
dongjoon-hyun merged 1 commit intoapache:masterfrom
pgaref:ORC-688

Conversation

@pgaref
Copy link
Copy Markdown
Contributor

@pgaref pgaref commented Nov 26, 2020

What changes were proposed in this pull request?

Enable String conversion from varchar.
Currently createStringConvertTreeReader in ConvertTreeReaderFactory is missing that opportunity

Why are the changes needed?

Modify createStringConvertTreeReader to handle char, varchar and string as part of the same group.

How was this patch tested?

TestSchemaEvolution.testCharToStringEvolution

Change-Id: I0364faee166f0130abaf5b5ecd749733b9a8fedd
Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @pgaref .

@dongjoon-hyun dongjoon-hyun merged commit 48cba3b into apache:master Nov 27, 2020
pgaref added a commit to pgaref/orc that referenced this pull request Nov 30, 2020
### What changes were proposed in this pull request?

Enable String conversion from varchar. 
Currently createStringConvertTreeReader in ConvertTreeReaderFactory is missing that opportunity

### Why are the changes needed?

Modify createStringConvertTreeReader to handle char, varchar and string as part of the same group.

### How was this patch tested?

TestSchemaEvolution.testCharToStringEvolution

(cherry picked from commit 48cba3b)
pgaref added a commit to pgaref/orc that referenced this pull request Nov 30, 2020
### What changes were proposed in this pull request?

Enable String conversion from varchar.
Currently createStringConvertTreeReader in ConvertTreeReaderFactory is missing that opportunity

### Why are the changes needed?

Modify createStringConvertTreeReader to handle char, varchar and string as part of the same group.

### How was this patch tested?

TestSchemaEvolution.testCharToStringEvolution

(cherry picked from commit 48cba3b)
Change-Id: Ibf1daa60665784c21dc7d25066d85e1b7193b155
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