code: def getPartitions(tableName, schema, cursor):
      query = "show partitions " + tableName
      result = runHiveQuery(cursor, query)
      partitions = {}
      for partition in result[0]:
          columnPartitions = []
          for columnPartition in partition:
              for columnData in columnPartition.split("/"):
                  columnName = columnData.split("=")[0]
                  for column in schema["columns"]:
                      if column[0] == columnName:
                          columnValue = columnData.split("=")[1]
                          columnPartitions.append(
                              (columnName, columnValue)
                          )
          partitions[partition[0]] = columnPartitions
      return partitions
  
file_path: blazingsql/pyblazing/pyblazing/apiv2/hive.py
imports: from itertools import repeat
  import cudf
  from TCLIService.ttypes import TOperationState
label_desc: Use image node_id 2 for calling a global function with example usage: getPartitions(tableName, schema, cursor) and returns: partitions