aminghadersohi commented on code in PR #36245:
URL: https://github.com/apache/superset/pull/36245#discussion_r2566727014
##########
superset/commands/dataset/export.py:
##########
@@ -78,6 +78,16 @@ def _file_content(model: SqlaTable) -> str:
payload["version"] = EXPORT_VERSION
payload["database_uuid"] = str(model.database.uuid)
+ # Always set cache_timeout from the property to ensure correct value
+ payload["cache_timeout"] = model.cache_timeout
+
+ # SQLAlchemy returns column names as quoted_name objects which PyYAML
cannot
+ # serialize. Convert all keys to regular strings to fix YAML
serialization.
+ try:
+ payload = {str(key): value for key, value in payload.items()}
+ except ImportError:
Review Comment:
this loop throws ImportError?
--
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]