You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jackson Westeen (Jira)" <ji...@apache.org> on 2019/12/13 00:46:00 UTC
[jira] [Created] (SPARK-30244) Emit pre/post events for "Partition"
methods in ExternalCatalogWithListener
Jackson Westeen created SPARK-30244:
---------------------------------------
Summary: Emit pre/post events for "Partition" methods in ExternalCatalogWithListener
Key: SPARK-30244
URL: https://issues.apache.org/jira/browse/SPARK-30244
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 2.4.4
Reporter: Jackson Westeen
Many of the methods in `ExternalCatalogWithListener` support emitting pre/post events to the ListenerBus when delegating calls to the underlying ExternalCatalog implementation.
Is there a reason the "Partition" series of methods don't support this feature?
[https://github.com/apache/spark/blob/v2.4.4/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/ExternalCatalogWithListener.scala#L193]
We're looking to hook into post "ALTER TABLE ADD PARTITION" calls, so we can publish a message to Kafka for example, whenever new partitions are added to the metastore.
It appears there's already event hooks for createDatabase / createTable.. but not createPartition. Would you consider adding hooks here? Or is there a better way to hook into to successful "ALTER TABLE ADD PARTITION" calls and subscribe to changes in partition status?
Thank you!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org