新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit a916f0e5 authored by guanchen's avatar guanchen

add debug log

No related merge requests found
......@@ -158,8 +158,9 @@ class PySdk():
return data
def write_output_to_mysql(self, mysql_url, mysql_prop, table_name, df):
# df.show()
df.show(10)
tmp_df = df.filter("1=0")
self.logger.log(f"connect mysql: {mysql_url}, {str(mysql_prop)}. \n 创建表: {table_name}")
tmp_df.write.jdbc(url=mysql_url, table="`" + table_name + "`", mode="overwrite", properties=mysql_prop)
mysql_ops.alter_table_charset(mysql_url, mysql_prop, table_name)
df.write.jdbc(url=mysql_url, table="`" + table_name + "`", mode="append", properties=mysql_prop)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment