@@ -572,6 +572,19 @@ func dictFromList(pairs [][]interface{}) map[string]interface{} {
572572 return result
573573}
574574
575+ // stringMapFromPairs builds map[string]string from (prop key value) pair rows.
576+ func stringMapFromPairs (pairs [][]interface {}) map [string ]string {
577+ out := make (map [string ]string )
578+ for _ , pair := range pairs {
579+ if len (pair ) >= 2 {
580+ k , _ := pair [0 ].(string )
581+ v , _ := pair [1 ].(string )
582+ out [k ] = v
583+ }
584+ }
585+ return out
586+ }
587+
575588// dictGetValue retrieves a Value from the config dict with type assertion
576589func dictGetValue (m map [string ]interface {}, key string ) * pb.Value {
577590 if v , ok := m [key ]; ok {
@@ -843,11 +856,11 @@ func (p *Parser) construct_export_csv_config_with_source(path string, csv_source
843856}
844857
845858func (p * Parser ) construct_iceberg_config (catalog_uri string , scope_opt * string , property_pairs [][]interface {}, auth_property_pairs [][]interface {}) * pb.IcebergConfig {
846- props := dictFromList (property_pairs )
847- auth_props := dictFromList (auth_property_pairs )
859+ props := stringMapFromPairs (property_pairs )
860+ auth_props := stringMapFromPairs (auth_property_pairs )
848861 _t2098 := p .iceberg_optional_string_field (scope_opt )
849862 scope_pb := _t2098
850- _t2099 := & pb.IcebergConfig {CatalogUri : catalog_uri , Scope : deref ( scope_pb , "" ) , Properties : props , AuthProperties : auth_props }
863+ _t2099 := & pb.IcebergConfig {CatalogUri : catalog_uri , Scope : scope_pb , Properties : props , AuthProperties : auth_props }
851864 return _t2099
852865}
853866
@@ -862,7 +875,7 @@ func (p *Parser) iceberg_optional_string_field(s *string) *string {
862875
863876func (p * Parser ) construct_export_iceberg_config_full (locator * pb.IcebergLocator , config * pb.IcebergConfig , columns []* pb.IcebergExportColumn , config_dict [][]interface {}) * pb.ExportIcebergConfig {
864877 prefix := ""
865- target_file_size_bytes := 0
878+ target_file_size_bytes := int64 ( 0 )
866879 compression := ""
867880 if config_dict != nil {
868881 cfg := dictFromList (config_dict )
0 commit comments