Skip to content

Conversation

tsamaras
Copy link
Contributor

@tsamaras tsamaras commented Oct 3, 2025

Documentation:

I validated that the test case output were considered syntactically valid by their respective engines.

@georgesittas
Copy link
Collaborator

Thanks, we'll take a look soon.

Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Left some comments.

 * updated syntax handling constant name
 * Inherit ALTER_PARSERS from parser.Parser
 * fix column name parsing
 * revised rename handling
Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

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

Looks reasonable. Thanks for addressing the comments!

if new_name == this:
if comment:
return f"ALTER COLUMN {this} COMMENT {comment}"
return super(Hive.Generator, self).altercolumn_sql(expression)
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can simplify this a bit right?

Suggested change
return super(Hive.Generator, self).altercolumn_sql(expression)
return super().altercolumn_sql(expression)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ended up reverting this, it seems like it didn't like it.

@georgesittas georgesittas merged commit 56c8b3b into tobymao:main Oct 8, 2025
1 of 6 checks passed
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