in dbt/adapters/maxcompute/relation_configs/_partition.py [0:0]
def post_validate(self):
if 0 < len(self.data_types) != len(self.fields):
raise dbt_common.exceptions.DbtValidationError(
f"Invalid partition_by config:\n"
f" Got: {self.fields}\n"
f" Got: {self.data_types}\n"
f" Expected the same number of fields and data types"
)
if self.auto_partition() and len(self.fields) > 1:
raise dbt_common.exceptions.DbtValidationError(
f"Invalid partition_by config:\n"
f" Got: {self.fields}\n"
f" Expected a single partition column for auto partitioning"
)