get_unfiltered_partitions_metadata
async
¶
get_unfiltered_partitions_metadata(
catalog_id: CatalogIdString,
database_name: NameString,
table_name: NameString,
supported_permission_types: PermissionTypeList,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
region: Optional[ValueString] = None,
expression: Optional[PredicateString] = None,
audit_context: Optional[AuditContext] = None,
next_token: Optional[Token] = None,
segment: Optional[Segment] = None,
max_results: Optional[PageSize] = None,
query_session_context: Optional[QuerySessionContext] = None,
) -> GetUnfilteredPartitionsMetadataResponse
Retrieves partition metadata from the Data Catalog that contains unfiltered metadata.
For IAM authorization, the public IAM action associated with this API is glue:GetPartitions.
Parameters:
-
region(Optional[ValueString], default:None) –Specified only if the base tables belong to a different Amazon Web Services Region.
-
catalog_id(CatalogIdString) –The ID of the Data Catalog where the partitions in question reside. If none is provided, the AWS account ID is used by default.
-
database_name(NameString) –The name of the catalog database where the partitions reside.
-
table_name(NameString) –The name of the table that contains the partition.
-
expression(Optional[PredicateString], default:None) –An expression that filters the partitions to be returned.
The expression uses SQL syntax similar to the SQL
WHEREfilter clause. The SQL statement parser JSQLParser parses the expression.Operators: The following are the operators that you can use in the
ExpressionAPI call:- =
-
Checks whether the values of the two operands are equal; if yes, then the condition becomes true.
Example: Assume 'variable a' holds 10 and 'variable b' holds 20.
(a = b) is not true.
- < >
-
Checks whether the values of two operands are equal; if the values are not equal, then the condition becomes true.
Example: (a < > b) is true.
- >
-
Checks whether the value of the left operand is greater than the value of the right operand; if yes, then the condition becomes true.
Example: (a > b) is not true.
- <
-
Checks whether the value of the left operand is less than the value of the right operand; if yes, then the condition becomes true.
Example: (a < b) is true.
- >=
-
Checks whether the value of the left operand is greater than or equal to the value of the right operand; if yes, then the condition becomes true.
Example: (a >= b) is not true.
- <=
-
Checks whether the value of the left operand is less than or equal to the value of the right operand; if yes, then the condition becomes true.
Example: (a <= b) is true.
- AND, OR, IN, BETWEEN, LIKE, NOT, IS NULL
-
Logical operators.
Supported Partition Key Types: The following are the supported partition keys.
-
string -
date -
timestamp -
int -
bigint -
long -
tinyint -
smallint -
decimal
If an type is encountered that is not valid, an exception is thrown.
-
audit_context(Optional[AuditContext], default:None) –A structure containing Lake Formation audit context information.
-
supported_permission_types(PermissionTypeList) –A list of supported permission types.
-
next_token(Optional[Token], default:None) –A continuation token, if this is not the first call to retrieve these partitions.
-
segment(Optional[Segment], default:None) –The segment of the table's partitions to scan in this request.
-
max_results(Optional[PageSize], default:None) –The maximum number of partitions to return in a single response.
-
query_session_context(Optional[QuerySessionContext], default:None) –A structure used as a protocol between query engines and Lake Formation or Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.
Raises:
-
EntityNotFoundException–A specified entity does not exist
-
FederationSourceException–A federation source failed.
-
FederationSourceRetryableException–A federation source failed, but the operation may be retried.
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
PermissionTypeMismatchException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 | |