clintropolis opened a new issue, #14339:
URL: https://github.com/apache/druid/issues/14339
### Affected Version
26.0.0+
### Description
'json' columns improperly classify this column as a `STRING` type, which
results in scan queries being broken (e.g `select * from table`) with errors of
the form:
```Cannot coerce [java.util.LinkedHashMap] to VARCHAR```
'auto' columns consider this case incorrectly as `null`, and so will write
out a null column instead of preserving the empty objects, which is incorrect,
though there is likely very low use for preserving them, it does change the
original data, which is counter the purpose of 'auto'.
Both of these cases should instead recognize that the empty object is a
'nested' structure and consider the type `COMPLEX<json>`.
--
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]