Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4a7588a

Browse files
author
Jesse Whitehouse
committed
Lint fix
Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
1 parent2c305bf commit4a7588a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/databricks/sql/utils.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,13 +559,15 @@ def infer_types(params: list[DbSqlParameter]):
559559
# figure out what type to use
560560
_type=type_lookup_table.get(type(_value),False)
561561
ifnot_type:
562-
raiseValueError(f"Could not infer parameter type from{type(param.value)} -{param.value}")
562+
raiseValueError(
563+
f"Could not infer parameter type from{type(param.value)} -{param.value}"
564+
)
563565

564566
# Decimal require special handling because one column type in Databricks can have multiple precisions
565567
if_type==DbSqlType.DECIMAL:
566568
cast_exp=calculate_decimal_cast_string(param.value)
567569
_type=DbsqlDynamicDecimalType(cast_exp)
568-
570+
569571
# VOID / NULL types must be passed in a unique way as TSparkParameters with no value
570572
if_type==DbSqlType.VOID:
571573
new_params.append(DbSqlParameter(name=_name,type=DbSqlType.VOID))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp