mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-31 21:27:58 +00:00
Support SingleStore metadata ingestion (JSON type fields) (#12623)
* Support SingleStore metadata ingestion (JSON type fields) * Removing Collate Keyword all datatypes --------- Co-authored-by: Vanshika Kabra <vanshikakabra@Vanshikas-MacBook-Pro.local> Co-authored-by: Mayur Singal <39544459+ulixius9@users.noreply.github.com>
This commit is contained in:
parent
786dde170e
commit
a0dd821bd1
@ -65,7 +65,7 @@ def parse_column(self, line, state):
|
||||
name, type_, args = spec["name"], spec["coltype"], spec["arg"]
|
||||
|
||||
try:
|
||||
col_type = self.dialect.ischema_names[type_]
|
||||
col_type = self.dialect.ischema_names[type_.lower()]
|
||||
except KeyError:
|
||||
util.warn(f"Did not recognize type '{type_}' of column '{name}'")
|
||||
col_type = sqltypes.NullType
|
||||
@ -88,9 +88,9 @@ def parse_column(self, line, state):
|
||||
for ikw in ("unsigned", "zerofill"):
|
||||
if spec.get(ikw, False):
|
||||
type_kw[ikw] = True
|
||||
for ikw in ("charset", "collate"):
|
||||
if spec.get(ikw, False):
|
||||
type_kw[ikw] = spec[ikw]
|
||||
if spec.get("charset", False):
|
||||
type_kw["charset"] = spec["charset"]
|
||||
|
||||
if issubclass(col_type, (ENUM, SET)):
|
||||
type_args = _strip_values(type_args)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user