Skip to content

Commit

Permalink
Wrap the query with double quotes (#2565)
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chu <[email protected]>
(cherry picked from commit 405068b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed Mar 19, 2024
1 parent b4c5415 commit 2f95f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ public Builder clusterName(String clusterName) {
}

public Builder query(String query) {
config.put(FLINT_JOB_QUERY, query);
String wrappedQuery = "\"" + query + "\""; // Wrap the query with double quotes
config.put(FLINT_JOB_QUERY, wrappedQuery);
return this;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,7 @@ private String constructExpectedSparkSubmitParameterString(
authParamConfigBuilder.append(authParams.get(key));
authParamConfigBuilder.append(" ");
}
query = "\"" + query + "\"";
return " --class org.apache.spark.sql.FlintJob --conf"
+ " spark.hadoop.fs.s3.customAWSCredentialsProvider=com.amazonaws.emr.AssumeRoleAWSCredentialsProvider"
+ " --conf"
Expand Down

0 comments on commit 2f95f44

Please sign in to comment.