Comments (6)
I don't think this is something we can fix in Superset, it's not doing anything special with Select queries.
from superset.
@rusackas - I think ticket could be closed. The problem will not be fixed on Superset (#28007 (comment)) neither on ClickHouse (ClickHouse/ClickHouse#62604 (comment)) side. Fortunately we have a workaround.
About Documentation PR... Is this suggestion to me? I think this info is useless on this page. If anyone will have this problem he/she will googling and find this post.
from superset.
I received workaround for this issue from @den-crane - ClickHouse/ClickHouse#62604 (comment)
TLDR: add sleep(1) to SELECT query. So, instead this "SELECT * FROM t" I should write this: "SELECT sleep(1),* FROM t"
from superset.
OK, I fixed it with workaround:
- in
superset/sql_lab.py
add this:
import re -- row №25
sql = add_sleep_to_selects_in_sql(sql)
-- row №264 in execute_sql_statement
before 'try: query.executed_sql = sql
'
def add_sleep_to_selects_in_sql(
sql: str
) -> str:
if ( (re.search(r"\bINSERT\b", sql, flags=re.IGNORECASE) == None)
and (re.search(r"\bUPDATE\b", sql, flags=re.IGNORECASE) == None)
and (re.search(r"\bDELETE\b", sql, flags=re.IGNORECASE) == None)):
return re.sub(r"\bSELECT\b", "SELECT sleep(1), ", sql, flags=re.IGNORECASE)
return sql
-- row №324
- in
superset/result_set.py
add this:
if "sleep(1)" in column_names:
column_names.remove("sleep(1)")
for i, s in enumerate(data):
data[i] = s[1:]
-- row №123 in class SupersetResultSet
before comment '# fix cursor descriptor with the deduped names
'
from superset.
If we have a workaround and can't fix this in Superset, we should probably close it. Before I/we do, would anyone want to open a Documentation PR (or at least suggestion) on this page to help others?
from superset.
Right @berlicon - I think you (or anyone who understands this issue) would be helping others by making a change on that page, if it's "useless". The more we document rather than have people go fishing through issues, the better.
from superset.
Related Issues (20)
- Logarithmic Axis in Apache Superset Charts
- Adjusting Font Size of Legend, Axes, and Value Labels in Apache Superset Dashboard HOT 1
- Dashboards should be loaded with current user access rights, not with dashboard owner's access rights HOT 9
- [ENABLE_TEMPLATE_PROCESSING] BaseTemplateProcessor interface (process_template) is misused HOT 1
- Helm installation bug: "Deployment is not ready: superset/superset-worker" HOT 1
- Not able to enable DASHBOARD_RBAC in helm chart ? HOT 4
- Helm: import_datasources.yaml - 'TypeError: 'str' object does not support item deletion'
- Superset Kubernetes documentation resource offline HOT 4
- Add Missing Stacktrace information on errors, SQL lab query execution HOT 1
- Hiding Force refresh in Dashboard HOT 6
- "There was an error connecting to the database" ... and general database connection woes! HOT 1
- Can't enter commas into database configuration setup
- Slider step size is incorrect in some cases
- Elements of markdown not supported by Text layout Element HOT 3
- Error is not precise when 2 database connexions use the same display name HOT 2
- Filter / Column of Dataset HOT 1
- Superset app loads infinitely or throws unexpected error occasionally. Ver. 3.1.2 HOT 8
- Can not Connect to AWS Redis Serverless HOT 4
- [SIP-129] POC - Real-time Dashboards powered by data streams HOT 2
- Drag and drop of metrics in chart interface does not allow movement of order of metrics once placed (was previously able) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.