jinghua-qa opened a new issue #15810:
URL: https://github.com/apache/superset/issues/15810


   Data will be 'undefined' if edit custom sql (long sql) and do not change 
metric label, this issue can be reproduced in time-series chart and line chart
   
   ### Expected results
   
   data will show correctly even using default label after custom sql
   
   ### Actual results
   
   data will show 'undefined' if using default label after custom sql
   
   #### Screenshots
   ### using default name:
   <img width="1788" alt="Screen Shot 2021-07-20 at 6 16 06 PM" 
src="https://user-images.githubusercontent.com/81597121/126420498-450bbd91-c4e8-46c7-9d3f-9506a4b47853.png";>
   
   ### changed metric label 
   <img width="1220" alt="Screen Shot 2021-07-20 at 6 26 37 PM" 
src="https://user-images.githubusercontent.com/81597121/126421088-b4571254-4186-4c2e-b48f-e259d6c6868c.png";>
   
   #### How to reproduce the bug
   
   1. open cleaned sales data in line chart or time series chart
   2. select sum(sales) and edit custom sql with long sql, for example 
   case
   when cast(SUM(sales) as INTEGER) = 12133 then null
   else cast(SUM(sales) as INTEGER)
   end
   3. do not change metric label and save
   4. See error
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `master`
   - python version: `python --version`
   - node.js version: `node -v`
   
   ### 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.
   - [x] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to