def test_column_type_datetime_from_thrift(self): self.assertEqual( types.ColumnType.from_thrift( ttypes.ColumnType(datetime_type=ttypes.ColumnTypeDatetime()) ), types.ColumnType.Datetime(), )
def test_column_type_datetime_to_thrift(self): self.assertEqual( types.arrow_column_type_to_thrift(types.ColumnType.Datetime()), ttypes.ColumnType(datetime_type=ttypes.ColumnTypeDatetime()), )