Skip to content

HIVE-23818: Use String Switch-Case Statement in StatUtills#1229

Merged
belugabehr merged 2 commits intoapache:masterfrom
belugabehr:HIVE-23818
Jul 17, 2020
Merged

HIVE-23818: Use String Switch-Case Statement in StatUtills#1229
belugabehr merged 2 commits intoapache:masterfrom
belugabehr:HIVE-23818

Conversation

@belugabehr
Copy link
Contributor

No description provided.

Copy link
Contributor

@pgaref pgaref left a comment

Choose a reason for hiding this comment

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

changes LG

} else if (colTypeLowerCase.equals(serdeConstants.BIGINT_TYPE_NAME)
|| colTypeLowerCase.equals("long")) {
case serdeConstants.BIGINT_TYPE_NAME:
case "long":
Copy link
Member

Choose a reason for hiding this comment

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

interesting...do we accept long as a typename?
I see that we have KW_LONG defined ; but not used at all...we may have it as an alias for BIGINT....

anyway...I don't think this line is doing anything here...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since this JIRA is about using the switch / clean up, I don't really want to change any behaviors. Can you please open a JIRA to explore this?

Copy link
Member

Choose a reason for hiding this comment

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

yes; it's unrelated - opened HIVE-23828

@kgyrtkirk
Copy link
Member

tests show that this change causes a slight change in datasize estimation

@belugabehr
Copy link
Contributor Author

@kgyrtkirk Thanks a million for pointing that out. I addressed the issue, tests pass, and I have merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments