Skip to content

Is it possible to directly connect to Azure Datalake Gen 2 using OPENROWSET from superset? #32309

Answered by dosubot bot
surajsrivathsa asked this question in Q&A / Help
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 2 replies

Comment options

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

@dosubot
Comment options

Answer selected by surajsrivathsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant