added explore database for ctas/cvas (#10174)

Co-authored-by: Jason Davis <@dropbox.com>
This commit is contained in:
Jason Davis
2020-06-29 11:13:54 -07:00
committed by GitHub
parent 4342c33d0e
commit 72fc581b15
6 changed files with 27 additions and 2 deletions

View File

@@ -195,6 +195,10 @@ class Database(
return bool(extra.get("allows_virtual_table_explore", True))
@property
def explore_database_id(self) -> int:
return self.get_extra().get("explore_database_id", self.id)
@property
def data(self) -> Dict[str, Any]:
return {
@@ -205,6 +209,7 @@ class Database(
"allows_subquery": self.allows_subquery,
"allows_cost_estimate": self.allows_cost_estimate,
"allows_virtual_table_explore": self.allows_virtual_table_explore,
"explore_database_id": self.explore_database_id,
}
@property