rdblue commented on a change in pull request #26740: [SPARK-30053][SQL] Add the
ability for v2 datasource so specify a vacuum action on the table
URL: https://github.com/apache/spark/pull/26740#discussion_r355228488
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/connector/InMemoryTable.scala
##########
@@ -163,6 +164,12 @@ class InMemoryTable(
override def deleteWhere(filters: Array[Filter]): Unit =
dataMap.synchronized {
dataMap --= InMemoryTable.filtersToKeys(dataMap.keys, partFieldNames,
filters)
}
+
+ var vacuumed = false
Review comment:
I'm okay with this for tests. You could also keep track of something (like a
list of former operations) and clean that up using VACUUM.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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]