Esempio n. 1
0
 def test_column_type_datetime_from_thrift(self):
     self.assertEqual(
         types.ColumnType.from_thrift(
             ttypes.ColumnType(datetime_type=ttypes.ColumnTypeDatetime())
         ),
         types.ColumnType.Datetime(),
     )
Esempio n. 2
0
 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()),
     )