Skip to content
Discussion options

You must be logged in to vote
  1. SQLAlchemy itself doesn't directly support OPENROWSET as it is a SQL Server-specific function. However, you can execute raw SQL queries using SQLAlchemy, which allows you to use OPENROWSET if your database connection supports it.

  2. In Superset, you can execute raw SQL queries through SQL Lab, but the issue you're facing is related to Superset's SQL parsing and read-only query validation. Superset needs to confirm that a query is read-only, and if it can't parse the query to confirm this, it will reject it. This is controlled by the allow_dml attribute of the Database object. If allow_dml is set to False, Superset will not allow queries it cannot confirm as read-only [1].

  3. To use OPENR…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@surajsrivathsa
Comment options

@dosubot
Comment options

Answer selected by surajsrivathsa
@luimgmv
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants