in dbt/adapters/maxcompute/impl.py [0:0]
def create_schema(self, relation: MaxComputeRelation) -> None:
logger.debug(f"create_schema: '{relation.project}.{relation.schema}'")
# Although the odps client has a check schema exist method, it will have a considerable delay,
# so that it is impossible to judge how many seconds it should wait.
# The same purpose is achieved by directly deleting and capturing the schema does not exist exception.
try:
self.get_odps_client().create_schema(relation.schema, relation.database)
except ODPSError as e:
if is_schema_not_found(e):
return
else:
raise e