[fix](ui) Fix boolean values (true/false) displaying as empty in table cells#60579
Open
qindongliang wants to merge 1 commit intoapache:masterfrom
Open
[fix](ui) Fix boolean values (true/false) displaying as empty in table cells#60579qindongliang wants to merge 1 commit intoapache:masterfrom
qindongliang wants to merge 1 commit intoapache:masterfrom
Conversation
…e cells Boolean values were not displayed in table cells because React does not render boolean values as visible text. This fix converts all cell values to strings using String() to ensure proper display. Affected components: - content-result.tsx: Query result table - data-prev.tsx: Data preview table
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Boolean values were not displayed in table cells because React does not render boolean values as visible text. This fix converts all cell values to strings using String() to ensure proper display.
Affected components:
Affected Version
current bug boolean column show :

fix bug boolean column show :

What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
When querying tables containing
BOOLEANtype columns in the Doris UI Playground, the valuestrueandfalsewere displayed as empty cells instead of displaying the actual text "true" or "false".Root Cause: In React/JSX, boolean values (
true/false) are not rendered as visible text when used directly as child elements. They need to be explicitly converted to strings.Solution: Use
String()to convert all cell values to strings before rendering, ensuring boolean values display correctly while preserving the existing behavior for other data types.Release note
Fixed an issue where boolean values (true/false) were displayed as empty in the query result table and data preview table in the Playground UI.
Check List (For Author)
SELECT * FROM table_with_boolean_columnin Playground or Click Data Preview on Select TableCheck List (For Reviewer who merge this PR)