Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support single line comments starting with '#' for Hive #1654

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

wugeer
Copy link
Contributor

@wugeer wugeer commented Jan 13, 2025

The code of Apache Hive reveals that beeline also supports shell-style "#" prefix. Currently, Hive mainly uses Beeline to execute SQL, so it might be necessary to support this here as well.
See https://github.com/apache/hive/blob/62ad7d42d6fd4e10ef5b86545ae41011554fd2f5/common/src/java/org/apache/hive/common/util/HiveStringUtils.java#L1170

@wugeer wugeer force-pushed the feat/beeline_comment branch from 19079e9 to 70750a8 Compare January 13, 2025 13:57
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @wugeer!
cc @alamb

@iffyio iffyio merged commit 6507484 into apache:main Jan 13, 2025
9 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