-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jesse Whitehouse <[email protected]>
- Loading branch information
Jesse Whitehouse
committed
Sep 29, 2023
1 parent
5a2cb9e
commit ec7608a
Showing
4 changed files
with
62 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,43 @@ | ||
import unittest | ||
import pytest | ||
|
||
class DatabricksTypeTests(unittest.TestCase): | ||
from databricks.sqlalchemy import DatabricksDialect | ||
from sqlalchemy.types import ( | ||
BigInteger, | ||
Boolean, | ||
Date, | ||
DateTime, | ||
Double, | ||
Enum, | ||
Float, | ||
Integer, | ||
Interval, | ||
LargeBinary, | ||
MatchType, | ||
Numeric, | ||
PickleType, | ||
SchemaType, | ||
SmallInteger, | ||
String, | ||
Text, | ||
Time, | ||
Unicode, | ||
UnicodeText, | ||
Uuid, | ||
) | ||
|
||
|
||
class TesteDatabricksTypeTests: | ||
def test_basic_example(self): | ||
assert False | ||
|
||
|
||
class TestCamelCaseTypes: | ||
"""Per the sqlalchemy documentation here: https://docs.sqlalchemy.org/en/20/core/type_basics.html#generic-camelcase-types | ||
These are the default types that are expected to work across all dialects. These tests verify that they render as expected. | ||
""" | ||
|
||
def test_bigint(self): | ||
|
||
target = BigInteger().compile(dialect=DatabricksDialect) | ||
assert False |