dosubot[bot] commented on issue #34718:
URL: https://github.com/apache/superset/issues/34718#issuecomment-3191457074

   <!-- Answer -->
   The reason your FLOAT column shows a ? icon (not #) in the chart builder UI 
is that Superset 5.0.0 uses strict backend regex matching to decide if a column 
is numeric. Even if SQL Lab shows the type as FLOAT (using SQLAlchemy's 
mapping), the chart builder relies on the raw type string from DuckDB. If that 
string isn't an exact match for patterns like ^float, ^double, ^decimal, or 
^numeric (for example, if it's DOUBLE PRECISION or DECIMAL(18,4)), Superset 
doesn't recognize it as numeric and marks it with a ? icon. Only columns 
recognized as numeric by this logic get the # icon and can be used in 
numeric-only fields like histograms. This is a backend limitation, not a UI 
bug, and was relaxed in newer Superset versions to support more type strings. 
In 5.0.0, the only workaround is to patch the engine spec or upgrade to a newer 
version where this is fixed.  
   [Reference: Superset type mapping 
logic](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/db_engine_specs/base.py)
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/a6d2345d-e5ef-4dc2-bc45-357edd680742?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/a6d2345d-e5ef-4dc2-bc45-357edd680742?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/a6d2345d-e5ef-4dc2-bc45-357edd680742?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/a6d2345d-e5ef-4dc2-bc45-357edd680742?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/a6d2345d-e5ef-4dc2-bc45-357edd680742?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/a6d2345d-e5ef-4dc2-bc45-357edd680742?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/a6d2345d-e5ef-4dc2-bc45-357edd680742?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=githu
 b)&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/34718)


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