Skip to content

Commit

Permalink
chore: add a test for quoted aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymao committed Apr 25, 2024
1 parent 589c4bf commit 719d394
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_expressions.py
Expand Up @@ -871,6 +871,8 @@ def test_comment_alias(self):
FROM foo""",
)

self.assertEqual(parse_one('max(x) as "a b" -- comment').comments, [" comment"])

def test_to_interval(self):
self.assertEqual(exp.to_interval("1day").sql(), "INTERVAL '1' DAY")
self.assertEqual(exp.to_interval(" 5 months").sql(), "INTERVAL '5' MONTHS")
Expand Down

0 comments on commit 719d394

Please sign in to comment.