

# QueryPlanningContext


A structure containing information about the query plan.

## Contents


 ** DatabaseName **   <a name="lakeformation-Type-QueryPlanningContext-DatabaseName"></a>
The database containing the table.  
Type: String  
Length Constraints: Minimum length of 1.  
Pattern: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*`   
Required: Yes

 ** CatalogId **   <a name="lakeformation-Type-QueryPlanningContext-CatalogId"></a>
The ID of the Data Catalog where the partition in question resides. If none is provided, the Amazon account ID is used by default.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*`   
Required: No

 ** QueryAsOfTime **   <a name="lakeformation-Type-QueryPlanningContext-QueryAsOfTime"></a>
The time as of when to read the table contents. If not set, the most recent transaction commit time will be used. Cannot be specified along with `TransactionId`.  
Type: Timestamp  
Required: No

 ** QueryParameters **   <a name="lakeformation-Type-QueryPlanningContext-QueryParameters"></a>
A map consisting of key-value pairs.  
Type: String to string map  
Required: No

 ** TransactionId **   <a name="lakeformation-Type-QueryPlanningContext-TransactionId"></a>
The transaction ID at which to read the table contents. If this transaction is not committed, the read will be treated as part of that transaction and will see its writes. If this transaction has aborted, an error will be returned. If not set, defaults to the most recent committed transaction. Cannot be specified along with `QueryAsOfTime`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[\p{L}\p{N}\p{P}]*`   
Required: No

## See Also


For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/lakeformation-2017-03-31/QueryPlanningContext) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/lakeformation-2017-03-31/QueryPlanningContext) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/lakeformation-2017-03-31/QueryPlanningContext) 