You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by 李响 <wa...@gmail.com> on 2023/11/14 13:47:32 UTC
Why create/drop/alter/rename partition does not post listener event in ExternalCatalogWithListener?
Dear Spark Community:
In ExternalCatalogWithListener
<https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/ExternalCatalogWithListener.scala>,
I see postToAll() is called for create/drop/alter/rename
database/table/function to post DatabaseEvent/TableEvent/FunctionEvent
<https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/events.scala>
to
all registered listeners.
But I do not see any event posted when doing so toward "partition".
Is there any deliberate reason why Spark is not doing so? How about posting
TableEvent (already have) or PartitionEvent (a new sub-trait of TableEvent)?
--
李响 Xiang Li
手机 cellphone :+86-136-8113-8972
邮件 e-mail :waterlx@gmail.com