diff --git a/CHANGELOG.md b/CHANGELOG.md index 38dbe0b..fa961fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ CHANGELOG ========= +0.5.6 +----- + - DynamoDB table names can now be MixedCased + 0.5.5 ----- - Add JsonParser to public API diff --git a/py_partiql_parser/__init__.py b/py_partiql_parser/__init__.py index 64d8997..7c97683 100644 --- a/py_partiql_parser/__init__.py +++ b/py_partiql_parser/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.5.5" +__version__ = "0.5.6" from ._internal.parser import DynamoDBStatementParser, S3SelectParser # noqa diff --git a/py_partiql_parser/_internal/parser.py b/py_partiql_parser/_internal/parser.py index 80be380..b0034ed 100644 --- a/py_partiql_parser/_internal/parser.py +++ b/py_partiql_parser/_internal/parser.py @@ -105,7 +105,7 @@ def _parse_select( # FROM from_parser = DynamoDBFromParser(from_clause=clauses[2]) - source_data = self.documents[list(from_parser.clauses.values())[0].lower()] + source_data = self.documents[list(from_parser.clauses.values())[0]] # WHERE if len(clauses) > 3: diff --git a/pyproject.toml b/pyproject.toml index 957ef4c..ad90e35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "py-partiql-parser" -version = "0.5.5" +version = "0.5.6" description = "Pure Python PartiQL Parser" readme = "README.md" keywords = ["pypartiql", "parser"] diff --git a/tests/test_dynamodb_examples.py b/tests/test_dynamodb_examples.py index f439a71..369c19f 100644 --- a/tests/test_dynamodb_examples.py +++ b/tests/test_dynamodb_examples.py @@ -32,8 +32,8 @@ def test_table_with_single_row() -> None: - query = "select * from msgs" - source = {"msgs": simple_doc} + query = "select * from Msgs" + source = {"Msgs": simple_doc} assert _get_result(query, source) == [input_object1]