get_unfiltered_partitions_metadata
¶
get_unfiltered_partitions_metadata(
catalog_id: CatalogIdString,
database_name: NameString,
table_name: NameString,
supported_permission_types: PermissionTypeList,
*,
config_overrides: Optional[GlueClientConfig] = 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/glue.py
12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 | |