Skip to content

Commit

Permalink
fix(dremio): Fixes issue with Dremio SQL generation for Charts with S…
Browse files Browse the repository at this point in the history
…eries Limit (#25657)

(cherry picked from commit be82657)
  • Loading branch information
OskarNS authored and michael-s-molina committed Oct 19, 2023
1 parent b380495 commit 293568a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions superset/db_engine_specs/dremio.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ class DremioEngineSpec(BaseEngineSpec):
engine = "dremio"
engine_name = "Dremio"

allows_alias_in_select = False

_time_grain_expressions = {
None: "{col}",
TimeGrain.SECOND: "DATE_TRUNC('second', {col})",
Expand Down
2 changes: 1 addition & 1 deletion superset/views/sql_lab/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def activate( # pylint: disable=no-self-use

@has_access_api
@expose("<int:tab_state_id>", methods=("PUT",))
def put(self, tab_state_id: int) -> FlaskResponse: # pylint: disable=no-self-use
def put(self, tab_state_id: int) -> FlaskResponse:
if _get_owner_id(tab_state_id) != get_user_id():
return Response(status=403)

Expand Down

0 comments on commit 293568a

Please sign in to comment.