@@ -36,32 +36,32 @@ def rollup_blob_path(repoid: int, branch: str | None = None) -> str:
3636# so from the time you deprecate an old schema, you only have to keep handling it
3737# for 60 days
3838NO_VERSION_POLARS_SCHEMA = [
39- "computed_name" ,
39+ ( "computed_name" , pl . String ) ,
4040 ("flags" , pl .List (pl .String )),
41- "failing_commits" ,
42- "last_duration" ,
43- "avg_duration" ,
44- "pass_count" ,
45- "fail_count" ,
46- "flaky_fail_count" ,
47- "skip_count" ,
41+ ( "failing_commits" , pl . Int64 ) ,
42+ ( "last_duration" , pl . Float64 ) ,
43+ ( "avg_duration" , pl . Float64 ) ,
44+ ( "pass_count" , pl . Int64 ) ,
45+ ( "fail_count" , pl . Int64 ) ,
46+ ( "flaky_fail_count" , pl . Int64 ) ,
47+ ( "skip_count" , pl . Int64 ) ,
4848 ("updated_at" , pl .Datetime (time_zone = UTC )),
49- "timestamp_bin" ,
49+ ( "timestamp_bin" , pl . Date ()) ,
5050]
5151
5252V1_POLARS_SCHEMA = [
53- "computed_name" ,
54- "testsuite" ,
53+ ( "computed_name" , pl . String ) ,
54+ ( "testsuite" , pl . String ) ,
5555 ("flags" , pl .List (pl .String )),
56- "failing_commits" ,
57- "last_duration" ,
58- "avg_duration" ,
59- "pass_count" ,
60- "fail_count" ,
61- "flaky_fail_count" ,
62- "skip_count" ,
56+ ( "failing_commits" , pl . Int64 ) ,
57+ ( "last_duration" , pl . Float64 ) ,
58+ ( "avg_duration" , pl . Float64 ) ,
59+ ( "pass_count" , pl . Int64 ) ,
60+ ( "fail_count" , pl . Int64 ) ,
61+ ( "flaky_fail_count" , pl . Int64 ) ,
62+ ( "skip_count" , pl . Int64 ) ,
6363 ("updated_at" , pl .Datetime (time_zone = UTC )),
64- "timestamp_bin" ,
64+ ( "timestamp_bin" , pl . Date ()) ,
6565]
6666
6767
0 commit comments