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

[Test] Add backticks to column identifiers to fix queries for column names with . #343

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ddesilva12
Copy link

@ddesilva12 ddesilva12 commented Mar 6, 2024

As title

Not production ready yet - need to make this solution a little bit cleaner and ensure no regressions occur

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@@ -33,7 +33,7 @@ check_flink_version_supported $flink_minor_version
flink_version="$(get_flink_version $flink_minor_version)"
kafka_connector_version="$(get_kafka_connector_version $flink_minor_version)"

${MVN_CMD} clean package -DskipTests \
${MVN_CMD} clean package -DskipTests -Drat.skip=true \
Copy link
Author

Choose a reason for hiding this comment

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

disable rat to get build to work

@@ -376,7 +376,7 @@ limitations under the License.
<execution>
<phase>package</phase>
<goals>
<goal>jar</goal>
<goal>test-jar</goal>
Copy link
Author

Choose a reason for hiding this comment

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

hack to get build to work

for (int index : curProjectedFields) {
String columnName = flinkSchema.getFieldName(index).get();
String columnName = "`" + flinkSchema.getFieldName(index).get() + "`";
Copy link
Author

Choose a reason for hiding this comment

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

backtick added here

@@ -85,7 +85,7 @@ public String visit(ValueLiteralExpression valueLiteral) {

@Override
public String visit(FieldReferenceExpression fieldReference) {
return fieldReference.getName();
return "`" + fieldReference.getName() + "`";
Copy link
Author

Choose a reason for hiding this comment

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

backtick added here

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.

None yet

2 participants