aliyun / aliyun-odps-python-sdk

ODPS Python SDK and data analysis framework
http://pyodps.readthedocs.io
Apache License 2.0
434 stars 97 forks source link

如何更新字段注释 #218

Closed cpzt closed 11 months ago

cpzt commented 11 months ago
cols = df.schema.columns
cols[0].comment = "this is comment"

df.persist("table_name", odps=odps)

采用这种方式提交时,字段注释会丢失。有什么办法可以更新字段注释吗

wjsi commented 11 months ago

Try take a look at alter table command in MaxCompute documentations.