test: show that we ingest float32 series without much thinking
1 files changed, 20 insertions(+), 1 deletions(-)

M test/test_tsio.py
M test/test_tsio.py +20 -1
@@ 29,7 29,6 @@ def utcdt(*dt):
     return pd.Timestamp(datetime(*dt), tz='UTC')
 
 
-
 def test_tzaware_non_monotonic(engine, tsh):
     ts1 = pd.Series(
         [1, 2, 3],

          
@@ 66,6 65,26 @@ def test_naive_vs_tzaware_query(engine, 
     # we did not crash :)
 
 
+def test_float32_dtype(engine, tsh):
+    ts = pd.Series(
+        [1, 2, 3],
+        index=pd.date_range(utcdt(2021, 1, 1), freq='D', periods=3),
+        dtype='float32'
+    )
+    tsh.update(engine, ts, 'float32', 'Babar')
+
+    assert tsh.metadata(
+        engine,
+        'float32'
+    ) == {
+        'index_dtype': '|M8[ns]',
+        'index_type': 'datetime64[ns, UTC]',
+        'tzaware': True,
+        'value_dtype': '<f4',
+        'value_type': 'float32'
+    }
+
+
 def test_tzaware_vs_naive_query(engine, tsh):
     ts = pd.Series(
         [1, 2, 3],