@@ -582,9 +582,9 @@ def test_partition_schema_field_name_conflict(catalog: Catalog) -> None:
582582 )
583583 table = _create_table_with_schema (catalog , schema , "2" )
584584
585- with pytest .raises (ValueError , match = "Cannot create partition from name that exists in schema: another_ts" ):
585+ with pytest .raises (ValueError , match = "Cannot create partition with a name that exists in schema: another_ts" ):
586586 table .update_spec ().add_field ("event_ts" , YearTransform (), "another_ts" ).commit ()
587- with pytest .raises (ValueError , match = "Cannot create partition from name that exists in schema: id" ):
587+ with pytest .raises (ValueError , match = "Cannot create partition with a name that exists in schema: id" ):
588588 table .update_spec ().add_field ("event_ts" , DayTransform (), "id" ).commit ()
589589
590590 with pytest .raises (ValueError , match = "Cannot create identity partition sourced from different field in schema: another_ts" ):
@@ -609,7 +609,7 @@ def test_partition_validation_during_table_creation(catalog: Catalog) -> None:
609609 partition_spec = PartitionSpec (
610610 PartitionField (source_id = 2 , field_id = 1000 , transform = YearTransform (), name = "another_ts" ), spec_id = 1
611611 )
612- with pytest .raises (ValueError , match = "Cannot create partition from name that exists in schema: another_ts" ):
612+ with pytest .raises (ValueError , match = "Cannot create partition with a name that exists in schema: another_ts" ):
613613 _create_table_with_schema (catalog , schema , "2" , partition_spec )
614614
615615 partition_spec = PartitionSpec (
@@ -633,14 +633,14 @@ def test_schema_evolution_partition_conflict(catalog: Catalog) -> None:
633633 )
634634 table = _create_table_with_schema (catalog , schema , "2" , partition_spec )
635635
636- with pytest .raises (ValueError , match = "Cannot create partition from name that exists in schema: event_year" ):
636+ with pytest .raises (ValueError , match = "Cannot create partition with a name that exists in schema: event_year" ):
637637 table .update_schema ().add_column ("event_year" , StringType ()).commit ()
638638 with pytest .raises (ValueError , match = "Cannot create identity partition sourced from different field in schema: first_name" ):
639639 table .update_schema ().add_column ("first_name" , StringType ()).commit ()
640640
641641 table .update_schema ().add_column ("other_field" , StringType ()).commit ()
642642
643- with pytest .raises (ValueError , match = "Cannot create partition from name that exists in schema: event_year" ):
643+ with pytest .raises (ValueError , match = "Cannot create partition with a name that exists in schema: event_year" ):
644644 table .update_schema ().rename_column ("other_field" , "event_year" ).commit ()
645645 with pytest .raises (ValueError , match = "Cannot create identity partition sourced from different field in schema: first_name" ):
646646 table .update_schema ().rename_column ("other_field" , "first_name" ).commit ()
0 commit comments