suedschwede commented on issue #14671:
URL: https://github.com/apache/superset/issues/14671#issuecomment-864767949
I would use Datatypes without NULLABLE in Superset
NULLABLE(DateTime) = DateTime
I use as workaround (clickhouse.py)
` @classmethod
def get_datatype(cls, type_code: Any) -> Optional[str]:
"""
Change column type code from cursor description to string
representation.
:param type_code: Type code from cursor description
:return: String representation of type code
"""
type_code = type_code.upper()
if (type_code.find('NULLABLE(') != -1):
type_code = type_code.replace("NULLABLE(", "")
type_code = type_code.replace(")", "",1)
if isinstance(type_code, str) and type_code != "":
return type_code.upper()
return None
`
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]