Open shivamtundele opened 1 year ago
I also tried commit method on the presto connection but its not working either
query = f"CALL system.sync_partition_metadata(schema_name => '{schema_name}', table_name => '{table_name}', mode => 'add')" DebugLogger.info(f"Updating schema paritition for {schema_name}.{table_name}:\n {query}") presto_connection.commit() DebugLogger.info(f"Updated schema partition!") presto_connection.close()
Hi I am trying to run below query to update partitions of the schema after a table update. But fetchone and fetchall are causing errors as this updating partition statement is not getting executed and returns error coz its expecting rows to return with that query. Is there any other method to run this statement?