File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed
Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change @@ -50,25 +50,16 @@ volumes:
50503. Restart the containers: ` docker compose down && docker compose up`
5151
5252# ### Querying data using Spark
53- To set the session timezone in Spark, add the following configuration under the `configs` section in `docker-compose-spark-iceberg.yaml` :
54-
55- ` ` ` yaml
56- configs:
57- - spark.sql.session.timeZone=America/Chicago
53+ To set the session timezone in spark, uncomment and set the value for the variable `spark.sql.session.timeZone`
54+ under the section.
55+ ```
56+ configs:
57+ spark-defaults.conf:
58+ content: |
5859```
5960
60- Replace `America/Chicago` with your desired timezone.
61-
62- For example, your Spark service definition might look like :
63-
64- ` ` ` yaml
65- spark-iceberg:
66- image: ...
67- environment:
68- - ...
69- configs:
70- - spark.sql.session.timeZone=America/Chicago
71- ...
61+ ```
62+ # spark.sql.session.timeZone America/Chicago
7263```
7364
7465This ensures that Spark SQL sessions will use the specified timezone.
You can’t perform that action at this time.
0 commit comments