get_plan
async
¶
get_plan(
mapping: MappingList,
source: CatalogEntry,
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
sinks: Optional[CatalogEntries] = None,
location: Optional[Location] = None,
language: Optional[Language] = None,
additional_plan_options_map: Optional[AdditionalPlanOptionsMap] = None,
) -> GetPlanResponse
Gets code to perform a specified mapping.
Parameters:
-
mapping(MappingList) –The list of mappings from a source table to target tables.
-
source(CatalogEntry) –The source table.
-
sinks(Optional[CatalogEntries], default:None) –The target tables.
-
location(Optional[Location], default:None) –The parameters for the mapping.
-
language(Optional[Language], default:None) –The programming language of the code to perform the mapping.
-
additional_plan_options_map(Optional[AdditionalPlanOptionsMap], default:None) –A map to hold additional optional key-value parameters.
Currently, these key-value pairs are supported:
-
inferSchema— Specifies whether to setinferSchemato true or false for the default script generated by an Glue job. For example, to setinferSchemato true, pass the following key value pair:--additional-plan-options-map '{"inferSchema":"true"}'
-
Raises:
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–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
11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 | |