-
Notifications
You must be signed in to change notification settings - Fork 14.9k
The "with as select" syntax cannot be used when querying the odps database #33075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The error message "ODPS error: InstanceTunnel cannot be opened at a non-select SQL Task" suggests that the ODPS database does not support executing non-select SQL tasks using the "WITH AS SELECT" syntax. This could be due to limitations in the ODPS SQL dialect or the way Superset handles query execution contexts for ODPS databases. Unfortunately, specific details about how Superset manages ODPS connections or handles such queries are not available in the repository [1][2][3][4]. To address this issue, you might consider checking the ODPS documentation for any restrictions on SQL syntax or exploring alternative query structures that are compatible with ODPS. Additionally, reviewing Superset's configuration settings related to ODPS might provide insights into any adjustments needed for successful query execution. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
I don't know anything about ODPS... can you tell us a bit more about what DB driver / engine spec you're using here? Without steps we can reproduce, this isn't likely to get solved. CC @betodealmeida in case they have some insight here and I'm mistaken :) |
ODPS, also known as MaxCompute, is a distributed, big data processing engine developed by Alibaba Cloud. It is designed for large-scale data warehousing and analytics, offering high performance, reliability, and scalability for processing petabyte-level datasets. Key Features of ODPS: Serverless Architecture – No infrastructure management required; users pay for storage and computation resources used. SQL Support – Compatible with standard SQL syntax, along with extensions for big data scenarios. Batch & Interactive Processing – Handles both long-running batch jobs and interactive queries efficiently. Security & Compliance – Provides fine-grained access control, encryption, and compliance with enterprise security standards. Cost-Effective Storage – Uses columnar storage and compression to optimize costs. Integration with Ecosystem – Works seamlessly with Alibaba Cloud services like DataWorks (for workflow management) and PAI (AI platform). |
I am currently using the pyodps driver to connect to superset for data analysis. However, it does not support the "with as select" syntax. https://github.com/aliyun/aliyun-odps-python-sdk?tab=readme-ov-file |
Bug description
The "with as select" syntax cannot be used when querying the odps database
I'm curious what caused it.
Screenshots/recordings
ODPS 异常
odps error: InstanceTunnel cannot be opened at a non-select SQL Task.
这可能由以下因素触发:
Issue 1002 - 数据库返回意外错误。
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: