Skip to content

Commit

Permalink
Fix code samples for jupyter notebook in readme-template (GoogleCloud…
Browse files Browse the repository at this point in the history
  • Loading branch information
isha97 authored Oct 25, 2023
1 parent 7a38afa commit e16669c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -1133,15 +1133,15 @@ using the following code:
**Python:**
```python
from pyspark.sql import SparkSession
spark = SparkSession.builder
.config("spark.jars.packages", "com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:${next-release-tag}")
spark = SparkSession.builder \
.config("spark.jars.packages", "com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:${next-release-tag}") \
.getOrCreate()
df = spark.read.format("bigquery")
df = spark.read.format("bigquery") \
.load("dataset.table")
```

**Scala:**
```python
```scala
val spark = SparkSession.builder
.config("spark.jars.packages", "com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:${next-release-tag}")
.getOrCreate()
Expand Down

0 comments on commit e16669c

Please sign in to comment.