You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: awswrangler/athena/_spark.py
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,7 @@ def create_spark_session(
94
94
default_executor_dpu_size: int=1,
95
95
additional_configs: dict[str, Any] |None=None,
96
96
spark_properties: dict[str, Any] |None=None,
97
+
notebook_version: str|None=None,
97
98
idle_timeout: int=15,
98
99
boto3_session: boto3.Session|None=None,
99
100
) ->str:
@@ -116,8 +117,11 @@ def create_spark_session(
116
117
spark_properties: Dict[str, Any], optional
117
118
Contains SparkProperties in the form of key-value pairs.Specifies custom jar files and Spark properties
118
119
for use cases like cluster encryption, table formats, and general Spark tuning.
120
+
notebook_version: str, optional
121
+
The notebook version. This value is supplied automatically for notebook sessions in the Athena console and is not required for programmatic session access.
122
+
The only valid notebook version is Athena notebook version 1. If you specify a value for NotebookVersion, you must also specify a value for NotebookId
119
123
idle_timeout : int, optional
120
-
The idle timeout in minutes for the session. The default is 15.
124
+
The idle timeout in minutes for the session. The default is 15.
121
125
boto3_session : boto3.Session(), optional
122
126
Boto3 Session. The default boto3 session will be used if boto3_session receive None.
Contains SparkProperties in the form of key-value pairs.Specifies custom jar files and Spark properties
194
202
for use cases like cluster encryption, table formats, and general Spark tuning.
203
+
notebook_version: str, optional
204
+
The notebook version. This value is supplied automatically for notebook sessions in the Athena console and is not required for programmatic session access.
205
+
The only valid notebook version is Athena notebook version 1. If you specify a value for NotebookVersion, you must also specify a value for NotebookId
195
206
idle_timeout : int, optional
196
207
The idle timeout in minutes for the session. The default is 15.
0 commit comments