tanmayrauth commented on code in PR #927:
URL: https://github.com/apache/iceberg-go/pull/927#discussion_r3127366557


##########
cmd/iceberg/main.go:
##########
@@ -552,3 +580,53 @@ func mergeConf(fileConf *config.CatalogConfig, resConfig 
*Config, explicitFlags
                resConfig.Warehouse = fileConf.Warehouse
        }
 }
+
+func schemaFromFile(path string) (*iceberg.Schema, error) {
+       ext := strings.ToLower(filepath.Ext(path))
+
+       switch ext {
+       case ".parquet", ".parq":
+               return schemaFromParquetFile(path)
+       default:
+               return nil, fmt.Errorf("unsupported file format %q for %q: only 
.parquet files are currently supported", ext, path)

Review Comment:
   Done ✅



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to