You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "xavier-GitHub76 (via GitHub)" <gi...@apache.org> on 2025/06/03 07:14:22 UTC

[I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

xavier-GitHub76 opened a new issue, #33669:
URL: https://github.com/apache/superset/issues/33669

   > I reproduce the issue with deck.gl.polygon on Superset v4.0.2 > 
   > ![image](https://github.com/user-attachments/assets/d7093937-52a3-43ef-bb8e-83f75f1c0024) > 
   >  > 
   > With a different column name the chart is OK > 
   > ![image](https://github.com/user-attachments/assets/49ae2206-c025-4bb9-afef-4d3d32c41a1f) > 
   > ![image](https://github.com/user-attachments/assets/aa678887-12eb-4e32-823c-0718240fea17) > 
   > ![image](https://github.com/user-attachments/assets/8e1d543a-ccf0-4189-91b0-30c4a94b9dc4) > 
   > ![image](https://github.com/user-attachments/assets/b1f53707-1a5b-46f7-95a1-6ab9fca03a24) > 
   >  > 
   >  
   
    _Originally posted by @xavier-GitHub76 in [#15965](https://github.com/apache/superset/issues/15965#issuecomment-2431462689)_


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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #33669:
URL: https://github.com/apache/superset/issues/33669#issuecomment-2933850284

   <!-- Answer -->
   The issue with deck.gl Polygon not working when the column name is "Polygon" or "polygon" in Superset v4.0.2 appears to be related to how Superset and deck.gl process column names and GeoJSON properties. The code for the Polygon layer distinguishes between the property/column name "polygon" (lowercase, typically a data column or GeoJSON property) and the GeoJSON geometry type "Polygon" (capitalized). If there is a mismatch or conflict—such as using "Polygon" as a column name—this can cause errors like `TypeError: right-hand side of 'in' should be an object, got undefined` because the code expects a specific structure and case for these fields. This is a case-sensitive issue and can lead to parsing or rendering failures if the conventions are not followed end-to-end ([source](https://github.com/apache/superset/blob/fc13a0fde5b775f6734a0280742f44ddc2acdadb/superset-frontend/plugins/legacy-preset-chart-deckgl/src/utils/getPointsFromPolygon.ts)).
   
   There is no official documentation or open issue directly addressing this specific problem, but it is a known pattern that using reserved words or names that overlap with internal identifiers (like "Polygon") can cause conflicts in visualization tools.
   
   A workaround is to avoid naming your column "Polygon" or "polygon". If you must use these names, ensure you escape them properly in SQL queries (using double quotes and matching the exact case), but even then, the visualization code may still misinterpret the field due to the way it checks for geometry types and properties ([source](https://github.com/apache/superset/issues/33336)). Renaming the column to something unique (e.g., "poly_geom" or "shape") is the most reliable solution.
   
   It's also important to note that the DeckGL graph feature in Superset is deprecated and no longer maintained, so issues like this may not be resolved in future releases ([source](https://github.com/apache/superset/issues/32592)). If possible, consider using alternative visualization options for polygon data.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention my name [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/70d88256-3fd7-4554-8c35-cb153e0cf95b?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/70d88256-3fd7-4554-8c35-cb153e0cf95b?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/70d88256-3fd7-4554-8c35-cb153e0cf95b?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/70d88256-3fd7-4554-8c35-cb153e0cf95b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/70d88256-3fd7-4554-8c35-cb153e0cf95b?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/70d88256-3fd7-4554-8c35-cb153e0cf95b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/70d88256-3fd7-4554-8c35-cb153e0cf95b?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[!
 [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/33669)


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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

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

   Your dataset is working fine on Preset instances... we might have cherried in a few more fixes than are available in the latest official releases, but I'm reasonably confident this works well unless it's a database-specific issue.
   
   <img width="1988" alt="Image" src="https://github.com/user-attachments/assets/8754d9c9-d04e-4e73-93f6-cfd5e30479a1" />


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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

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

   Can you check in a newer version? I'm unable to reproduce on Preset, which is effectively 4.1.2 plus many more recent fixes. 
   


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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

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

   My previous tests were done on 4.0.2, 4.1.2 and 5.0.0-RC2
   
   Can you import the CSV to create a dataset with just one polygon and retry to reproduce it
   
   [1 polygon.csv](https://github.com/user-attachments/files/20628145/1.polygon.csv)
   
   


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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

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

   Can you check in a newer version? I'm unable to reproduce on Preset, which is effectively 4.1.2 plus many more recent fixes. 
   
   <!-- Failed to upload "image.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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

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

   There is a small error in your test, it is with deck.gl Polygon that the error occurs.
   The dataset works well with the Deck.gl.GeoJSON graph.
   
   Could you please redo your test using the dataset on a deck.gl Polygon chart ?


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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

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

   Can you check in a newer version? I'm unable to reproduce on Preset, which is effectively 4.1.2 plus many more recent fixes. 
   
   <!-- Failed to upload "image.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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

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

   The issue is present in 4.1.2
   
   ![Image](https://github.com/user-attachments/assets/c8e5ee92-90b1-4d4f-a822-dc3470e2e2f9)


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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

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

   Also in 5.0.0-RC2
   
   ![Image](https://github.com/user-attachments/assets/bc1bc8a7-a384-46ae-abc3-84a7e48be7a8)


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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #33669: deck.gl Polygon does not work when column name is "Polygon" or "polygon"
URL: https://github.com/apache/superset/issues/33669


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


Re: [I] deck.gl Polygon does not work when column name is "Polygon" or "polygon" [superset]

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

   Sorry, I mis-tested this one, I used a GeoJSON chart instead of deck.gl Polygon specifically. I'll retest against an actual Polygon chart with that column name and see if it still reproduces... PR forthcoming.


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