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-1083] Updated thrift files and added check for protocol version#229

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

Merged
nithinkdb merged 5 commits intodatabricks:mainfromnithinkdb:PECO-1083
Sep 29, 2023
Merged
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
13 changes: 13 additions & 0 deletionssrc/databricks/sql/client.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
import requests
import json
import os
from databricks.sql.thrift_api.TCLIService import ttypes

from databricks.sql import __version__
from databricks.sql import *
Expand DownExpand Up@@ -225,6 +226,11 @@ def __del__(self):
def get_session_id(self):
return self.thrift_backend.handle_to_id(self._session_handle)

def get_session_protocol_version(self):
return self.thrift_backend.extract_protocol_version_from_handle(
self._session_handle
)

def get_session_id_hex(self):
return self.thrift_backend.handle_to_hex_id(self._session_handle)

Expand DownExpand Up@@ -501,6 +507,13 @@ def execute(
"""
if parameters is None:
parameters = []
elif (
self.connection.get_session_protocol_version()
< ttypes.TProtocolVersion.SPARK_CLI_SERVICE_PROTOCOL_V8
):
raise Error(
"Parameterized operations are not supported by this server. DBR 14.1 is required."
)
else:
parameters = named_parameters_to_tsparkparams(parameters)

Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp