Skip to content

Conversation

@hawk9821
Copy link
Contributor

Purpose of this pull request

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

Copy link
Contributor

@chl-wxp chl-wxp left a comment

Choose a reason for hiding this comment

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

LGTM

public void testPiamonQuoteIdentifier() {
String query =
"SELECT `decimal_col`, `int_col`, `char_col`, `timestamp_col`, `boolean_col` FROM table WHERE `int_col` > 3 OR `double_col` < 6.6 ";

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add another field without the quote symbol as a comparative test, such as boolean_col

columnNames.stream()
.mapToInt(
columnName -> {
String fieldName = columnName.replace("`", "");
Copy link
Contributor

@LiJie20190102 LiJie20190102 Dec 20, 2025

Choose a reason for hiding this comment

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

FYI, can you extract a method from columnName.replace("`", ""), such as the method name "extendedSupport()", and then put other supported characters into this method later

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.

3 participants