fix: create property for schema_perm for Query (#20871)

* create property for schema_perm

* update references
This commit is contained in:
Hugh A. Miles II 2022-07-26 21:18:59 -04:00 committed by GitHub
parent cd578d2865
commit 35184b2994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,6 +271,10 @@ class Query(Model, ExtraJSONMixin, ExploreMixin): # pylint: disable=abstract-me
def dttm_cols(self) -> List[Any]:
return [col.get("column_name") for col in self.columns if col.get("is_dttm")]
@property
def schema_perm(self) -> str:
return f"{self.database.database_name}.{self.schema}"
@property
def default_endpoint(self) -> str:
return ""