Cannot fix the following Python code (code below)
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
I am trying to execute: databricks --debug labs ucx migrate-local-code on small py file:
#content of file table_name = 'test01.table01' df = spark.read.format('delta').table(table_name) record_count = df.count() print(f'Record count: {record_count}')
I got an error: 10:38:18 WARN [d.l.u.s.linters.pyspark] Cannot fix the following Python code: spark.read.format('delta').table(table_name). Please report this issue at https://github.com/databrickslabs/ucx/issues/new?type=Feature&title=Autofix+the+following+Python+code&body=%23+Desired+behaviour%0A%0AAutofix+following+Python+code%0A%0A%60%60%60+python%0ATODO%3A+Add+relevant+source+code%0Aspark.read.format%28%27delta%27%29.table%28table_name%29%0A%60%60%60&labels=needs-triage
Expected Behavior
table_name = ' dap_kk_07_dev.test01.table01' df = spark.read.format('delta').table(table_name) record_count = df.count() print(f'Record count: {record_count}')
Steps To Reproduce
No response
Cloud
Azure
Operating System
Windows
Version
latest via Databricks CLI
Relevant log output