You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm taking a crack at improving support for some of the quirks of Hive's alter commands and was hoping for some feedback on what the preferred approach is for solving a few problems.
Rather than ALTER COLUMN Hive uses CHANGE COLUMN with the following syntax
which means that every CHANGE is potentially a rename and data type update. Would it make more sense to define a new ChangeColumn expression or decompose the statement into an AlterColumn and RenameColumn expression that gets stitched back together in the generator? And the other thing i'm not sure if is what's the right way to deal with incompatible translations like a RenameColumn without a data type specified. My personal interest is in improving hive <-> spark2 translation so the implementation gets inherited either way but I'd like to make it as flexible as possible.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm taking a crack at improving support for some of the quirks of Hive's alter commands and was hoping for some feedback on what the preferred approach is for solving a few problems.
Rather than
ALTER COLUMN
Hive usesCHANGE COLUMN
with the following syntaxwhich means that every
CHANGE
is potentially a rename and data type update. Would it make more sense to define a newChangeColumn
expression or decompose the statement into an AlterColumn and RenameColumn expression that gets stitched back together in the generator? And the other thing i'm not sure if is what's the right way to deal with incompatible translations like a RenameColumn without a data type specified. My personal interest is in improving hive <-> spark2 translation so the implementation gets inherited either way but I'd like to make it as flexible as possible.Beta Was this translation helpful? Give feedback.
All reactions