Skip to content

Commit c2a676a

Browse files
committed
NETFLIX-BUILD: Handle empty filters in DSv2ScanExec.
1 parent 7232130 commit c2a676a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2ScanExec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ case class DataSourceV2ScanExec(
7171
override protected def doExecute(): RDD[InternalRow] = {
7272
Events.sendScan(
7373
tableName,
74-
pushedFilters.reduce(And).sql,
74+
if (pushedFilters.nonEmpty) pushedFilters.reduce(And).sql else "true",
7575
V2Util.columns(reader.readSchema()).asJava,
7676
options.asJava)
7777

0 commit comments

Comments
 (0)