Skip to content

Commit

Permalink
Bump version + minor change (#7)
Browse files Browse the repository at this point in the history
* Bump version + minor change

* Fix tests
  • Loading branch information
nahuelverdugo authored Mar 8, 2023
1 parent 664a345 commit b1bcad8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sqllineage/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os


NAME = "sqllineage"
VERSION = "1.3.7"
NAME = "openmetadata-sqllineage"
VERSION = "1.0.2"
DEFAULT_LOGGING = {
"version": 1,
"disable_existing_loggers": False,
Expand Down
2 changes: 1 addition & 1 deletion sqllineage/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class LineageRunner(object):
def __init__(
self,
sql: str,
dialect: str = "ansi",
dialect: str = SQLPARSE_DIALECT,
encoding: Optional[str] = None,
verbose: bool = False,
draw_options: Optional[Dict[str, str]] = None,
Expand Down
6 changes: 4 additions & 2 deletions tests/test_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ def test_select_without_table():

def test_unsupported_query_type_in_sqlfluff():
with pytest.raises(UnsupportedStatementException):
LineageRunner("WRONG SELECT FROM tab1")._eval()
LineageRunner("WRONG SELECT FROM tab1", dialect="ansi")._eval()


def test_partial_unparsable_query_in_sqlfluff():
with pytest.raises(InvalidSyntaxException):
LineageRunner("SELECT * FROM tab1 AS FULL FULL OUTER JOIN tab2")._eval()
LineageRunner(
"SELECT * FROM tab1 AS FULL FULL OUTER JOIN tab2", dialect="ansi"
)._eval()

0 comments on commit b1bcad8

Please sign in to comment.