主权项 |
1. A computer-implemented method for federated query processing comprising:
receiving one or more source queries associated with a data set; storing the one or more source queries as one or more historical queries; determining one or more column constant pairs associated with the one or more historical queries; based on the one or more column constant pairs, determining a partitioning column constant pair; determining a first subset of the one or more column constant pairs that has a first pre-defined relation to the partitioning column constant pair; determining a second subset of the one or more column constant pairs that has a second pre-defined relation to the partitioning column constant pair; based on the partitioning column constant pair, partitioning the data set into a first subset of the data set and a second subset of the data set; receiving a source query; determining a source column constant pair associated with the source query; comparing the source column constant pair to the partitioning column constant pair; and based on the comparing, generating a result of the source query from at least one of the following: a view, the first subset of the data set, and the second subset of the data set. |