code: func findTableByPartitionID(schema infoschema.InfoSchema, partitionID int64) (*model.TableInfo, *model.DBInfo) {
  	allDBs := schema.AllSchemas()
  	for _, db := range allDBs {
  		allTables := schema.SchemaTables(db.Name)
  		for _, tbl := range allTables {
  			if tbl.Meta().ID > partitionID || tbl.Meta().GetPartitionInfo() == nil {
  				continue
  			}
  			info := tbl.Meta().GetPartitionInfo()
  			tb := tbl.(table.PartitionedTable)
  			for _, def := range info.Definitions {
  				pid := def.ID
  				partition := tb.GetPartition(pid)
  				if partition.GetPhysicalID() == partitionID {
  					return tbl.Meta(), db
  				}
  			}
  		}
  	}
  	return nil, nil
  }
docs: // findTableByPartitionID finds the partition-table info by the partitionID.
  // This function will traverse all the tables to find the partitionID partition in which partition-table.