wanghong1314 commented on code in PR #22635:
URL: https://github.com/apache/superset/pull/22635#discussion_r1065568926
##########
superset/config.py:
##########
@@ -1129,8 +1129,10 @@ def CSV_TO_HIVE_UPLOAD_DIRECTORY_FUNC( # pylint:
disable=invalid-name
TRACKING_URL_TRANSFORMER = lambda url: url
-# Interval between consecutive polls when using Hive Engine
-HIVE_POLL_INTERVAL = int(timedelta(seconds=5).total_seconds())
+# customize the polling time of each engine. The default time is 5 seconds
+DB_POLL_INTERVAL_SECONDS = {
+ "hive": int(timedelta(seconds=5).total_seconds()),
+}
Review Comment:
I changed it to this way. It's true that mypy failed
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]