Kontinuation opened a new pull request, #1:
URL: https://github.com/apache/sedona-db/pull/1

   This patch revamped the implementation of `sd_format` to work on any input 
types, and format the spatial columns recursively while leaving non-spatial 
columns untouched.
   
   Before applying this patch:
   
   ```
   > SELECT [ST_POINT(1,2), ST_POINT(3,4)];
   
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
   │                                                                         
make_array(st_point(Int64(1),Int64(2)),st_point(Int64(3),Int64(4)))             
                                                           │
   │ list(field { name: "item", data_type: struct([field { name: 
"geoarrow.wkb", data_type: binary, nullable: true, dict_id: 0, dict_is_ordered: 
false, metadata: {"arrow:extension:name": "geoarrow.wkb", "arrow:exte… │
   
╞════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
   │ [{geoarrow.wkb: 0101000000000000000000f03f0000000000000040}, 
{geoarrow.wkb: 010100000000000000000008400000000000001040}]                     
                                                                      │
   
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
   
   > SELECT struct(ST_POINT(3,4) as a , ST_POINT(3,4) as b)
   
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
   │                    
named_struct(Utf8("a"),st_point(Int64(3),Int64(4)),Utf8("b"),st_point(Int64(3),Int64(4)))
                   │
   │                              struct(a struct(geoarrow.wkb binary), b 
struct(geoarrow.wkb binary))                              │
   
╞════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
   │ {a: {geoarrow.wkb: 010100000000000000000008400000000000001040}, b: 
{geoarrow.wkb: 010100000000000000000008400000000000001040}} │
   
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
   ```
   
   After applying this patch:
   
   ```
   > SELECT [ST_POINT(1,2), ST_POINT(3,4)];
   
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
   │                                                                        
make_array(st_point(Int64(1),Int64(2)),st_point(Int64(3),Int64(4)))             
                                                           │
   │ list(field { name: "item", data_type: struct([field { name: 
"geoarrow.wkb", data_type: binary, nullable: true, dict_id: 0, dict_is_ordered: 
false, metadata: {"arrow:extension:name": "geoarrow.wkb", "arrow:ext… │
   
╞═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
   │ [POINT(1 2), POINT(3 4)]                                                   
                                                                                
                                                       │
   
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
   
   > SELECT struct(ST_POINT(3,4) as a , ST_POINT(3,4) as b);
   
┌───────────────────────────────────────────────────────────────────────────────────────────┐
   │ 
named_struct(Utf8("a"),st_point(Int64(3),Int64(4)),Utf8("b"),st_point(Int64(3),Int64(4)))
 │
   │            struct(a struct(geoarrow.wkb binary), b struct(geoarrow.wkb 
binary))           │
   
╞═══════════════════════════════════════════════════════════════════════════════════════════╡
   │ {a: POINT(3 4), b: POINT(3 4)}                                             
               │
   
└───────────────────────────────────────────────────────────────────────────────────────────┘
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to