Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/databricks/labs/lakebridge/transpiler/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _process_non_mime_result(context: TranspilingContext, error_list: list[Trans
output_path = cast(Path, context.output_path)

if any(err.kind == ErrorKind.PARSING for err in error_list):
output_code = context.source_code or ""
output_code = context.transpiled_code or ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should remove the whole if

elif output_path.suffix == ".sql":
output_code = _validate_transpiled_sql(context, output_code, error_list)
with output_path.open("w") as w:
Expand Down
Loading