@@ -76,7 +76,7 @@ def test_from_arrow_units(self):
7676
7777 def test_nested_projection (self ):
7878 schema = Schema ({"_id" : int64 (), "obj" : {"a" : int64 (), "b" : int64 ()}})
79- self .assertEqual (schema ._get_projection (), {"_id" : True , "obj" : { " a" : True , "b" : True } })
79+ self .assertEqual (schema ._get_projection (), {"_id" : True , "obj. a" : True , "obj. b" : True })
8080
8181 def test_list_projection (self ):
8282 schema = Schema (
@@ -85,7 +85,7 @@ def test_list_projection(self):
8585 "list" : list_ (struct ([field ("a" , int64 ()), field ("b" , int64 ())])),
8686 }
8787 )
88- self .assertEqual (schema ._get_projection (), {"_id" : True , "list" : { " a" : True , "b" : True } })
88+ self .assertEqual (schema ._get_projection (), {"_id" : True , "list. a" : True , "list. b" : True })
8989
9090 def test_list_of_list_projection (self ):
9191 schema = Schema (
@@ -94,14 +94,14 @@ def test_list_of_list_projection(self):
9494 "list" : list_ (list_ (struct ([field ("a" , int64 ()), field ("b" , int64 ())]))),
9595 }
9696 )
97- self .assertEqual (schema ._get_projection (), {"_id" : True , "list" : { " a" : True , "b" : True } })
97+ self .assertEqual (schema ._get_projection (), {"_id" : True , "list. a" : True , "list. b" : True })
9898
9999 def test_py_list_projection (self ):
100100 schema = Schema (
101101 {"_id" : ObjectId , "list" : [(struct ([field ("a" , int64 ()), field ("b" , float64 ())]))]}
102102 )
103103
104- self .assertEqual (schema ._get_projection (), {"_id" : True , "list" : { " a" : True , "b" : True } })
104+ self .assertEqual (schema ._get_projection (), {"_id" : True , "list. a" : True , "list. b" : True })
105105
106106 def test_py_list_with_multiple_fields_raises (self ):
107107 with pytest .raises (
0 commit comments