Servers return wrong column types in case of empty results (everything defaults to STRING)
- Dominant language
- Java
- Stars
- 6.1k
- Forks
- 1.5k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 189
Description
**Non-empty results (correct types):**

**Empty results (incorrect types):**

This part of the code needs to be changed:
https://github.com/apache/incubator-pinot/blob/master/pinot-core/src/main/java/org/apache/pinot/core/common/datatable/DataTableUtils.java#L121
Contributor guide
Research direction
Start by reading pinot-core/src/main/java/org/apache/pinot/core/common/datatable/DataTableUtils.java around line 121 and compare how column types are determined for empty and non-empty results. Reproduce an empty-result query, then verify that its returned column types match the corresponding non-empty result types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100