We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b50a410 + ba1fe41 commit 813e9e5Copy full SHA for 813e9e5
1 file changed
backend/apps/datasource/models/datasource.py
@@ -99,7 +99,7 @@ def to_dict(self):
99
class TableSchema:
100
def __init__(self, attr1, attr2):
101
self.tableName = attr1
102
- self.tableComment = attr2 if isinstance(attr2, str) else attr2.decode("utf-8")
+ self.tableComment = attr2 if attr2 is None or isinstance(attr2, str) else attr2.decode("utf-8")
103
104
tableName: str
105
tableComment: str
@@ -109,7 +109,7 @@ class ColumnSchema:
109
def __init__(self, attr1, attr2, attr3):
110
self.fieldName = attr1
111
self.fieldType = attr2
112
- self.fieldComment = attr3 if isinstance(attr3, str) else attr3.decode("utf-8")
+ self.fieldComment = attr3 if attr3 is None or isinstance(attr3, str) else attr3.decode("utf-8")
113
114
fieldName: str
115
fieldType: str
0 commit comments