-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
error: database error or network error/ why sql query can't use union to connect two sql statement #32258
Comments
Hey there, @shqcheng! I'm here to help you with any bugs, questions, or contributions you have for Superset. Let's get to the bottom of this together! I found a similar closed issue related to Oracle database errors in Apache Superset. The issue titled "SQL Lab: Oracle Error (cx_Oracle.DatabaseError) ORA-12505: TNS:listener does not currently know of SID given in connect descriptor" did not have a solution found in the comments [1]. For your specific issue with the UNION operation and the use of SYSDATE resulting in "Database error" or "Network error," common causes could include:
These errors are mapped to specific issue codes that provide more detailed descriptions of the problems encountered [2][3]. You might want to check the database connection settings, ensure that the database server is reachable, and verify that there are no syntax errors in your SQL queries. 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 |
Thanks for your response.@dosu Sorry it's not the mentioned cause as i don't use union, the sql query can run correctly. |
hi there, what database do you use for these erroneous queries? |
oracle.
走走停停
***@***.***
…------------------ 原始邮件 ------------------
发件人: "Đỗ Trọng ***@***.***>;
发送时间: 2025年2月15日(星期六) 中午12:08
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [apache/superset] error: database error or network error/ why sql query can't use union to connect two sql statement (Issue #32258)
hi there, what database do you use for these erroneous queries?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
hainenber left a comment (apache/superset#32258)
hi there, what database do you use for these erroneous queries?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Bug description
In sql lab, when use "union" to connect two sql statement and run the sql query, there is an error "database error"/"network error".
by the way, when using "sysdate" in sql query, the error is the same.
the database connection parameters is below:
superset version is 4.1.1
does anyone encounter it and solve it? Thanks for help!
Screenshots/recordings
No response
Superset version
4.1.1
Python version
3.10
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: