Skip to content

Commit 69003c8

Browse files
committed
Spark/Databricks: Implement suggestions by CodeRabbit
1 parent 2f0a595 commit 69003c8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

docs/integrate/databricks/azure-databricks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This is a quick intro into getting started with [Azure Databricks](https://azure
1818
1. Create a new notebook of default language Python
1919
2. Add the following code and run the notebook
2020

21-
```
21+
```python
2222
crateUsername = "<username>"
2323
cratePassword = "<password>"
2424
postgresqlUrl = "jdbc:postgresql://<url-to-server>:5432/?sslmode=require";
@@ -43,7 +43,7 @@ jdbcDF.head(n=10)
4343
1. Create a new notebook with default language Scala
4444
2. Add the following code and run the notebook
4545

46-
```
46+
```scala
4747
val crateUsername = "<username>"
4848
val cratePassword = "<password>"
4949
val postgresqlUrl = "jdbc:postgresql://<url-to-server>:5432/?sslmode=require";

docs/integrate/spark/usage.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Prerequisites:
99

1010
1. Running instance of [CrateDB](https://console.cratedb.cloud/)
1111
2. Python 3.x
12+
3. Java 11 or later
1213

1314
## Provision seed data to CrateDB
1415

@@ -65,7 +66,8 @@ This usage guide will work with a single-node Apache Spark installation running
6566
pyspark --version
6667
```
6768

68-
4. Finally, as CrateDB communicates with Spark via JDBC, download the [Postgres JDBC driver](https://jdbc.postgresql.org/download/) in your working directory. In this usage guide, we use the `postgresql-42.6.0.jar` driver.
69+
4. Finally, as CrateDB communicates with Spark via JDBC, download the [Postgres JDBC driver](https://jdbc.postgresql.org/download/) in your working directory.
70+
In this usage guide, we use the `postgresql-42.6.0.jar` driver.
6971

7072

7173
## Data analysis

0 commit comments

Comments
 (0)