@@ -508,7 +508,7 @@ def test_df_info(scalars_dfs):
508508 expected = (
509509 "<class 'bigframes.dataframe.DataFrame'>\n "
510510 "Index: 9 entries, 0 to 8\n "
511- "Data columns (total 13 columns):\n "
511+ "Data columns (total 14 columns):\n "
512512 " # Column Non-Null Count Dtype\n "
513513 "--- ------------- ---------------- ------------------------------\n "
514514 " 0 bool_col 8 non-null boolean\n "
@@ -524,8 +524,9 @@ def test_df_info(scalars_dfs):
524524 " 10 string_col 8 non-null string\n "
525525 " 11 time_col 6 non-null time64[us][pyarrow]\n "
526526 " 12 timestamp_col 6 non-null timestamp[us, tz=UTC][pyarrow]\n "
527- "dtypes: Float64(1), Int64(3), binary[pyarrow](1), boolean(1), date32[day][pyarrow](1), decimal128(38, 9)[pyarrow](1), geometry(1), string(1), time64[us][pyarrow](1), timestamp[us, tz=UTC][pyarrow](1), timestamp[us][pyarrow](1)\n "
528- "memory usage: 1269 bytes\n "
527+ " 13 duration_col 7 non-null duration[us][pyarrow]\n "
528+ "dtypes: Float64(1), Int64(3), binary[pyarrow](1), boolean(1), date32[day][pyarrow](1), decimal128(38, 9)[pyarrow](1), duration[us][pyarrow](1), geometry(1), string(1), time64[us][pyarrow](1), timestamp[us, tz=UTC][pyarrow](1), timestamp[us][pyarrow](1)\n "
529+ "memory usage: 1341 bytes\n "
529530 )
530531
531532 scalars_df , _ = scalars_dfs
@@ -4086,6 +4087,9 @@ def test_df_to_json_local_str(scalars_df_index, scalars_pandas_df_index):
40864087def test_df_to_json_local_file (scalars_df_index , scalars_pandas_df_index ):
40874088 # TODO: supply a reason why this isn't compatible with pandas 1.x
40884089 pytest .importorskip ("pandas" , minversion = "2.0.0" )
4090+ # duration not fully supported at pandas level
4091+ scalars_df_index = scalars_df_index .drop ("duration_col" )
4092+ scalars_pandas_df_index = scalars_pandas_df_index .drop ("duration_col" )
40894093 with tempfile .TemporaryFile () as bf_result_file , tempfile .TemporaryFile () as pd_result_file :
40904094 scalars_df_index .to_json (bf_result_file , orient = "table" )
40914095 # default_handler for arrow types that have no default conversion
@@ -4197,6 +4201,7 @@ def test_df_to_orc(scalars_df_index, scalars_pandas_df_index):
41974201 "time_col" ,
41984202 "timestamp_col" ,
41994203 "geography_col" ,
4204+ "duration_col" ,
42004205 ]
42014206
42024207 bf_result_file = tempfile .TemporaryFile ()
0 commit comments