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

Commit25e9da7

Browse files
author
Jesse
authored
Fix SQLAlchemy timestamp converter + docs (#117)
---------Signed-off-by: Jesse Whitehouse <jesse.whitehouse@databricks.com>
1 parent398ab44 commit25e9da7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎examples/sqlalchemy.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
more of the Databricks API, particularly around table reflection, Alembic usage, and data
55
ingestion with pandas.
66
7+
Expected URI format is: databricks+thrift://token:dapi***@***.cloud.databricks.com?http_path=/sql/***
8+
79
Because of the extent of SQLAlchemy's capabilities it isn't feasible to provide examples of every
810
usage in a single script, so we only provide a basic one here. More examples are found in our test
911
suite at tests/e2e/sqlalchemy/test_basic.py and in the PR that implements this change:

‎src/databricks/sqlalchemy/dialect/__init__.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class DatabricksTimestamp(types.TypeDecorator):
4747
impl=types.TIMESTAMP
4848

4949
defprocess_result_value(self,value,dialect):
50-
returnprocessors.str_to_datetime(value)
50+
returnvalue
5151

5252
defadapt(self,impltype,**kwargs):
5353
returnself.impl
@@ -59,7 +59,7 @@ class DatabricksDate(types.TypeDecorator):
5959
impl=types.DATE
6060

6161
defprocess_result_value(self,value,dialect):
62-
returnprocessors.str_to_date(value)
62+
returnvalue
6363

6464
defadapt(self,impltype,**kwargs):
6565
returnself.impl

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp