sazary opened a new issue #10574:
URL: https://github.com/apache/incubator-superset/issues/10574


   When I try to render some polygons using deck.gl, it shows an error, noting 
that `TypeError: Cannot use 'in' operator to search for 'geometry' in 
undefined`.
   
   ### Expected results
   
   Render polygons on screen. The datasource that I'm trying to render is this:
   
   ```
   SELECT 
       now() as datetime, 
       name as name,
       ST_AsGeoJSON(polygon) AS polygon
   FROM public.area_driverarea
   WHERE 
       polygon IS NOT NULL 
       and not archived
   limit 1
   ```
   
   And the result is this:
   
   ```
   2020-08-11T14:31:29.670272+04:30     اکباتان 
{"type":"Polygon","coordinates":[[[51.302861661377,35.7162896874761],[51.310581661377,35.7169196869251],[51.3356516613769,35.7117596914374],[51.3371016613769,35.7024896995422],[51.3341916613769,35.6999797017365],[51.301661661377,35.6993497022872],[51.302861661377,35.7162896874761]]]}
   ```
   
   Please note that I've included the `datetime` column just to make sure that 
lacking a time column isn't the source of error.
   
   ### Actual results
   
   It shows an error. You can see it in the screenshot below and this is 
printed in the browser's console:
   
   ```
   react_devtools_backend.js:2273 TypeError: Cannot use 'in' operator to search 
for 'geometry' in undefined
       at I (27.2a2d76d7d2deda70e1c0.chunk.js:1)
       at Array.flatMap (<anonymous>)
       at Function.getDerivedStateFromProps (27.2a2d76d7d2deda70e1c0.chunk.js:1)
       at new V (27.2a2d76d7d2deda70e1c0.chunk.js:1)
       at yo (explore.e9de4d7e8c553ec56a7b.entry.js:2)
       at Ii (explore.e9de4d7e8c553ec56a7b.entry.js:2)
       at gs (explore.e9de4d7e8c553ec56a7b.entry.js:2)
       at lu (explore.e9de4d7e8c553ec56a7b.entry.js:2)
       at su (explore.e9de4d7e8c553ec56a7b.entry.js:2)
       at $s (explore.e9de4d7e8c553ec56a7b.entry.js:2)
   ```
   
   
   #### Screenshots
   
   
![image](https://user-images.githubusercontent.com/1304109/89883783-e4235e80-dbdd-11ea-879f-a7cdb8b5a644.png)
   
   #### How to reproduce the bug
   
   1. Explore a chart with deck.gl polygon type.
   2. Set it's polygon type to JSON
   4. See error
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `0.36.0`
   - python version: `3.6.11`
   
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [X] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [X] 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.
   


----------------------------------------------------------------
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.

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