We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263eaf3 commit 6596b6aCopy full SHA for 6596b6a
tests/test_db.py
@@ -735,3 +735,18 @@ def test_postgresql_out_of_bound():
735
"""
736
df = wr.db.read_sql_query(sql=sql, con=engine, safe=False)
737
assert df.shape == (1, 1)
738
+
739
740
+def test_mysql_datetime():
741
+ engine = wr.catalog.get_engine(connection="aws-data-wrangler-mysql")
742
+ sql = """
743
+ SELECT
744
+ DATE '2020-01-01' AS col0,
745
+ TIME '01:01:01' AS col1,
746
+ TIMESTAMP '2020-01-01 01:01:01' AS col2,
747
+ NOW() AS col3
748
+ """
749
+ df = wr.db.read_sql_query(sql=sql, con=engine, safe=False)
750
+ print(df)
751
+ print(df.info(verbose=True))
752
+ assert df.shape == (1, 4)
0 commit comments