in dbt/adapters/maxcompute/relation_configs/_partition.py [0:0]
def render(self, with_type: bool = True) -> str:
default_value = len(self.data_types) == 0
res = ""
for i, field_name in enumerate(self.fields):
if with_type:
if default_value:
column = f"{field_name} string"
else:
column = f"{field_name} {self.data_types[i]}"
else:
column = field_name
res += f"{column}, "
res = res[:-2] # 去掉最后的逗号和空格
return res