Skip to content

Commit

Permalink
Wrap the query with double quotes (#2565) (#2570)
Browse files Browse the repository at this point in the history
(cherry picked from commit 405068b)

Signed-off-by: Louis Chu <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent b4c5415 commit c205b6d
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 c205b6d

Please sign in to comment.