Skip to content

Commit 6524633

Browse files
authored
[BUGFIX] BuildScan need add quote to columns which is keyword (StarRocks#103)
Signed-off-by: xuzifu666 <[email protected]>
1 parent 9310839 commit 6524633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/com/starrocks/connector/spark/sql/StarrocksRelation.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private[sql] class StarrocksRelation(
7979
requiredColumns.map(Utils.quote).mkString(","))
8080
} else {
8181
paramWithScan += (ConfigurationOptions.STARROCKS_READ_FIELD ->
82-
lazySchema.fields.map(f => f.name).mkString(","))
82+
lazySchema.fields.map(f => Utils.quote(f.name)).mkString(","))
8383
}
8484

8585
if (filters != null && filters.length > 0) {

0 commit comments

Comments
 (0)