apache / iceberg-go

Apache Iceberg - Go
https://iceberg.apache.org/
Apache License 2.0
112 stars 23 forks source link

Config File Handling #62

Open zeroshade opened 7 months ago

zeroshade commented 7 months ago

Feature Request / Improvement

Similar to pyiceberg's config file we should add handling for a config file to make it easier to manipulate the available options for the CLI and library usage.

alex-kar commented 9 hours ago

@zeroshade What's the initial structure for configuration file would look like? Something similar to pyiceberg's config:

catalog:
  default:
    catalog: rest
    uri: http://localhost:8181/
    output: text
    credential: client-id:client-secret
    warehouse: catalog_name

  custom-catalog:
    catalog: rest
    uri: http://localhost:8181/
    output: text
    credential: client-id:client-secret
    warehouse: catalog_name

What about path? ~/iceberg-go.yaml?

I'd like to work on this, but I need a bit more clarity on the expected config structure.