mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-14 04:29:21 +00:00
ISSUE-2422: Handled None datatype (#2423)
Co-authored-by: Mayur SIngal <mayursingal@Mayurs-MacBook-Pro.local>
This commit is contained in:
parent
c3fc763bdd
commit
cfca795edf
@ -506,7 +506,7 @@ class SQLSource(Source[OMetaDatabaseAndTable]):
|
||||
col_data_length = self._check_col_length(
|
||||
col_type, column["type"]
|
||||
)
|
||||
if col_type == "NULL":
|
||||
if col_type == "NULL" or col_type is None:
|
||||
col_type = "VARCHAR"
|
||||
data_type_display = "varchar"
|
||||
logger.warning(
|
||||
@ -567,7 +567,7 @@ class SQLSource(Source[OMetaDatabaseAndTable]):
|
||||
return None
|
||||
|
||||
def _check_col_length(self, datatype, col_raw_type):
|
||||
if datatype.upper() in {
|
||||
if datatype is not None and datatype.upper() in {
|
||||
"CHAR",
|
||||
"VARCHAR",
|
||||
"BINARY",
|
||||
|
Loading…
x
Reference in New Issue
Block a user