We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 459057e commit 224b4a6Copy full SHA for 224b4a6
backend/apps/datasource/api/datasource.py
@@ -301,6 +301,11 @@ def inner():
301
302
303
def insert_pg(df, tableName, engine):
304
+ # fix field type
305
+ for i in range(len(df.dtypes)):
306
+ if str(df.dtypes[i]) == 'uint64':
307
+ df[str(df.columns[i])] = df[str(df.columns[i])].astype('string')
308
+
309
conn = engine.raw_connection()
310
cursor = conn.cursor()
311
try:
0 commit comments