table-partitioning

How to find out the type of partitioning in a table in google bigquery using python apis

How to find out the type of partitioning in a table in google bigquery using python apis Question: def partition(dataset1, dataset2): try: client.get_dataset(dataset2) print("Dataset {} already exists".format(dataset2)) except NotFound: print("Dataset {} not found".format(dataset2)) createDataset(dataset2) table = client.get_table(dataset1) # get the source dataset partition_column = table.time_partitioning.field #get the column name I tried using get_table description but …

Total answers: 1