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

[PECO-1117] Allow legacy codepath for parameterized queries to be used.#241

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
nithinkdb wants to merge2 commits intodatabricks:mainfromnithinkdb:PECO-1117
Closed
Show file tree
Hide file tree
Changes fromall commits
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
6 changes: 6 additions & 0 deletionssrc/databricks/sql/client.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,6 +18,7 @@
ExecuteResponse,
ParamEscaper,
named_parameters_to_tsparkparams,
inject_parameters
)
from databricks.sql.types import Row
from databricks.sql.auth.auth import get_python_sql_connector_auth_provider
Expand DownExpand Up@@ -501,6 +502,11 @@ def execute(
"""
if parameters is None:
parameters = []
elif self.thrift_backend._use_inline_parameters:
operation = inject_parameters(
operation, self.escaper.escape_args(parameters)
)
parameters = []
else:
parameters = named_parameters_to_tsparkparams(parameters)

Expand Down
3 changes: 3 additions & 0 deletionssrc/databricks/sql/thrift_backend.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -152,6 +152,9 @@ def __init__(
self._use_arrow_native_timestamps = kwargs.get(
"_use_arrow_native_timestamps", True
)
self._use_inline_parameters= kwargs.get(
"_use_inline_parameters", False
)

# Cloud fetch
self.max_download_threads = kwargs.get("max_download_threads", 10)
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp