Skip to content

Commit

Permalink
feat: removed uneeded files and updated example.py and .env.example
Browse files Browse the repository at this point in the history
  • Loading branch information
broomva committed Nov 7, 2023
1 parent 01c5f5d commit 57e3af0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 297 deletions.
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
databricks_experiment_name=''
databricks_experiment_id=''
databricks_host=''
databricks_token=''
databricks_username=''
databricks_password=''
databricks_cluster_id=''
databricks_sql_http_path=''
270 changes: 0 additions & 270 deletions CONTRIBUTING.rst

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ databricks_token=''
databricks_username=''
databricks_password=''
databricks_cluster_id=''
databricks_sql_http_path=''
```

```python
Expand Down
21 changes: 0 additions & 21 deletions SECURITY.md

This file was deleted.

6 changes: 3 additions & 3 deletions it.py → example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
# %%
spark_sql = DatabricksSQLSession()
# %%
pdf = spark_sql.sql("select * from microchip_logs limit 10")
pdf = spark_sql.sql("select * from samples.nyctaxi.trips limit 10")
print(pdf.head())
# %%
sqlalchemy_engine = spark_sql.get_session()
# %%
df = spark_sql.read(sqlalchemy_engine, "microchip_logs")
df = spark_sql.read(sqlalchemy_engine, "samples.nyctaxi.trips")

# %%
from databricks_session import DatabricksJDBCSession
Expand All @@ -28,7 +28,7 @@
spark = DatabricksSparkSession().get_session()

# %%
sdf = spark.read.table("microchip_logs")
sdf = spark.read.table("samples.nyctaxi.trips")
print(sdf.show())
# %%

Expand Down
3 changes: 0 additions & 3 deletions package.json

This file was deleted.

0 comments on commit 57e3af0

Please sign in to comment.