Skip to content

Commit f3e8429

Browse files
authored
Improve python scripts for parquet to delta conversion
`from package_name import *` is considered a [bad coding practice](https://docs.python.org/3/tutorial/modules.html#more-on-modules) in python, because it may import unneeded classes and obstructs static code analysis.
1 parent 3fc7dc8 commit f3e8429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/synapse-analytics/sql/query-delta-lake-format.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If you don't have this subfolder, you are not using Delta Lake format. You can c
4949

5050
```python
5151
%%pyspark
52-
from delta.tables import *
52+
from delta.tables import DeltaTable
5353
deltaTable = DeltaTable.convertToDelta(spark, "parquet.`abfss://[email protected]/covid`")
5454
```
5555

@@ -168,7 +168,7 @@ If you don't have this subfolder, you are not using Delta Lake format. You can c
168168

169169
```python
170170
%%pyspark
171-
from delta.tables import *
171+
from delta.tables import DeltaTable
172172
deltaTable = DeltaTable.convertToDelta(spark, "parquet.`abfss://[email protected]/yellow`", "year INT, month INT")
173173
```
174174

0 commit comments

Comments
 (0)