apersilva commented on issue #738: URL: https://github.com/apache/iceberg-python/issues/738#issuecomment-2111047010
def update_table(database_target, table_target,database_name, table_name, partition_by,size, process_date, custom_partion): catalog =load_catalog('glue', **{ 'type': 'glue', 'verify' : False }) tabela = catalog.load_table(f"{database_target}.{table_target}") metadata = {} for doc in tabela.metadata.schemas[0].columns: metadata.update({doc.name: f"({doc.doc})"}) df = pa.Table.from_pylist( [ {"nome_tabela": table_name, "nome_base_dados": database_name, "particao": partition_by, "numero_registro": size, "process_date": process_date, "particao_customizada": custom_partion, "data_criacao": datetime.now().date() } ], metadata=metadata ) tabela.append(df) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org