Skip to content

Commit

Permalink
fix: create property for schema_perm for Query (#20871)
Browse files Browse the repository at this point in the history
* create property for schema_perm

* update references
  • Loading branch information
hughhhh authored Jul 27, 2022
1 parent cd578d2 commit 35184b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions superset/models/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,10 @@ def main_dttm_col(self) -> Optional[str]:
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 ""
Expand Down

0 comments on commit 35184b2

Please sign in to comment.