CPC G06F 16/2423 (2019.01) [G06F 3/0605 (2013.01); G06F 3/067 (2013.01); G06F 3/0644 (2013.01); G06F 3/0653 (2013.01); G06F 9/542 (2013.01); G06F 16/164 (2019.01); G06F 16/2282 (2019.01); G06F 16/2358 (2019.01); G06F 16/2393 (2019.01); G06F 16/24557 (2019.01); G06F 16/256 (2019.01)] | 25 Claims |
1. A method performed by a database platform executing instructions on at least one hardware processor, the method comprising:
receiving a query directed at least in part to external data in an external table stored on a data storage platform external to the database platform, the external table comprising a plurality of partitions, the plurality of partitions being organized in the external table based on information located in a source directory, the source directory defining folders and folder locations, the folders storing files corresponding to particular partitions;
identifying, from external-table metadata, a subset of the plurality of partitions of the external table to be scanned for data that satisfies the query, the external-table metadata being stored by the database platform, the identifying of the subset of the plurality of partitions to be scanned for data that satisfies the query comprising:
using the query to identify multiple instances of partition-grouping external-table metadata among the external-table metadata, each instance of partition-grouping external-table metadata comprising collective metadata regarding a distinct group of partitions in the plurality of partitions;
identifying the identified subset of the plurality of partitions as those partitions that correspond to the identified multiple instances of partition-grouping external-table metadata;
identifying data that satisfies the query by scanning the identified subset of the plurality of partitions based on application of the query to the source directory; and
responding to the query at least in part with the identified data that satisfies the query.
|