You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/11/25 08:46:22 UTC

[GitHub] [superset] winglight opened a new issue, #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

winglight opened a new issue, #22223:
URL: https://github.com/apache/superset/issues/22223

   A clear and concise description of what the bug is.
   
   #### How to reproduce the bug
   
   1. create a dataset from any ES index with temporal columns
   2. create a chart based on the dataset previous created and select TABLE mode
   3. check the default datetime column(let's say, default_date) of the dataset, and choose another temporal column(let's say, second_date) as time column 
   4. choose any TIME RANGE filter, such as previous calendar week and update chart
   5. click the right top button "..." and click the button "View query"
   6. in SQL, you'll see:
   ```
   WHERE default_date>= '2022-11-14 00:00:00.000000'
     AND default_date< '2022-11-21 00:00:00.000000'
     AND second_date>= '2022-11-14 00:00:00.000000'
     AND second_date< '2022-11-21 00:00:00.000000'
   ```
   As contrast, if the dataset comes from mysql, it works as expected. So, I certainly confirm that's a bug.
   
   ### Expected results
   
   The SQL should be:
   ```
   WHERE 
     AND second_date>= '2022-11-14 00:00:00.000000'
     AND second_date< '2022-11-21 00:00:00.000000'
   ```
   
   ### Actual results
   
   ```
   WHERE default_date>= '2022-11-14 00:00:00.000000'
     AND default_date< '2022-11-21 00:00:00.000000'
     AND second_date>= '2022-11-14 00:00:00.000000'
     AND second_date< '2022-11-21 00:00:00.000000'
   ```
   
   #### Screenshots
   
   If applicable, add screenshots to help explain your problem.
   
   
   ### Environment
   (please complete the following information):
   
   - browser type and version: chrome 107
   - superset version: `k8s helm chart version: 0.7.7 app version: 1.0`
   - python version: `3.8.13`
   - node.js version: `N/A`
   - any feature flags active:
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [☑️] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [☑️ ] I have reproduced the issue with at least the latest released version of superset.
   - [☑️] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   
   Add any other context about the problem here.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Always-prog commented on issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

Posted by "Always-prog (via GitHub)" <gi...@apache.org>.
Always-prog commented on issue #22223:
URL: https://github.com/apache/superset/issues/22223#issuecomment-1697034568

   The issue with Superset 2.1.1 and Clickhouse database 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] volhahedranovich commented on issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

Posted by GitBox <gi...@apache.org>.
volhahedranovich commented on issue #22223:
URL: https://github.com/apache/superset/issues/22223#issuecomment-1359436193

   I'm experiencing the same issue.
   ![image](https://user-images.githubusercontent.com/11491329/208687694-ceac29ed-60a4-4ca9-81e5-a6362e5ebef7.png)
   
   'day' is default datetime column, but if I select another time column, shouldn't the query be filtered only by the selected one?
   ![image](https://user-images.githubusercontent.com/11491329/208688057-583877a7-a99e-42d0-9e63-3df34e6d5094.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] maunke commented on issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

Posted by GitBox <gi...@apache.org>.
maunke commented on issue #22223:
URL: https://github.com/apache/superset/issues/22223#issuecomment-1368954451

   I am also experiencing the bug.
   
   Superset: apache/superset:2.0.1
   ClickHouse: yandex/clickhouse-server:21.11.2.2
   clickhouse-sqlalchemy: 0.1.10
   
   **See where section on generated sql query**
   
   ```sql
   WHERE created_at >= toDateTime('2022-12-01 00:00:00')
     AND created_at < toDateTime('2023-01-01 00:00:00')
     AND delivered_at >= '2022-12-01 00:00:00'
     AND delivered_at < '2023-01-01 00:00:00'
   ```
   **superset dataset**
   created_at: is temporal and default datetime
   delivered_at: is temporal and nullable datetime


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] betodealmeida closed issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

Posted by "betodealmeida (via GitHub)" <gi...@apache.org>.
betodealmeida closed issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column
URL: https://github.com/apache/superset/issues/22223


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] rusackas commented on issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

Posted by GitBox <gi...@apache.org>.
rusackas commented on issue #22223:
URL: https://github.com/apache/superset/issues/22223#issuecomment-1343671393

   CC @lauderbaugh holler if you're willing to help repro/triage this one!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] mohamed-artal commented on issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

Posted by "mohamed-artal (via GitHub)" <gi...@apache.org>.
mohamed-artal commented on issue #22223:
URL: https://github.com/apache/superset/issues/22223#issuecomment-1469579479

   I'm experiencing the same issue.
   with version 2.0.1.
   
   ![image](https://user-images.githubusercontent.com/127905327/225252622-12269855-1bdd-4f63-8580-4ffe04b997c3.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] eloymc98 commented on issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

Posted by "eloymc98 (via GitHub)" <gi...@apache.org>.
eloymc98 commented on issue #22223:
URL: https://github.com/apache/superset/issues/22223#issuecomment-1481437645

   I'm experiencing the same issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Always-prog commented on issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

Posted by "Always-prog (via GitHub)" <gi...@apache.org>.
Always-prog commented on issue #22223:
URL: https://github.com/apache/superset/issues/22223#issuecomment-1700507063

   As I see - this is the **time secondary column** feature - https://github.com/apache/superset/blob/master/superset/db_engine_specs/README.md#time_secondary_columns--false.
   And it's enabled on clickhouse: https://github.com/apache/superset/blob/master/superset/db_engine_specs/clickhouse.py#L55.
   
   But, it can be disabled without changing the source code?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] Always-prog commented on issue #22223: ES dataset will auto add default datetime column to sql though chart already has another datetime column as time column

Posted by "Always-prog (via GitHub)" <gi...@apache.org>.
Always-prog commented on issue #22223:
URL: https://github.com/apache/superset/issues/22223#issuecomment-1700988486

   Hello @rusackas @lauderbaugh!
   How about adding a checkbox for feature time secondary column to the dataset? i think it would be better than hardcoding it for all database connections (Clickhouse, elasticsearch, Kusto). It would also allow the ability to add a second time column to other databases.
   
   I can create PR for it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org