ide-best-practices icon indicating copy to clipboard operation
ide-best-practices copied to clipboard

Avoid a warning in covid_trends_job.py

Open lennartkats-db opened this issue 3 years ago • 2 comments

Using a PEP 484 "# type: ignore" annotation

I do wonder if we really want to use that global, though? Is that a best practice? In the past I used something like spark = SparkSession.builder.getOrCreate()

lennartkats-db avatar Oct 26 '22 16:10 lennartkats-db

I would rather replace this line with

spark = SparkSession.builder.getOrCreate() since this is the refactored code that should follow best practices.

fjakobs avatar Oct 28 '22 08:10 fjakobs

https://github.com/databricks/ide-best-practices/pull/9

fjakobs avatar Oct 31 '22 09:10 fjakobs