gatorsmile commented on a change in pull request #23606: [SPARK-26666][SQL] 
Support DSv2 overwrite and dynamic partition overwrite.
URL: https://github.com/apache/spark/pull/23606#discussion_r255318671
 
 

 ##########
 File path: sql/core/src/main/scala/org/apache/spark/sql/sources/filters.scala
 ##########
 @@ -218,3 +218,23 @@ case class StringEndsWith(attribute: String, value: 
String) extends Filter {
 case class StringContains(attribute: String, value: String) extends Filter {
   override def references: Array[String] = Array(attribute)
 }
+
+/**
+ * A filter that always evaluates to `true`.
+ */
+case class AlwaysTrue() extends Filter {
+  override def references: Array[String] = Array.empty
+}
+
+object AlwaysTrue extends AlwaysTrue {
+}
+
+/**
+ * A filter that always evaluates to `false`.
+ */
+case class AlwaysFalse() extends Filter {
 
 Review comment:
   Mark them `@Evolving`? See the other APIs in the same file.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to