You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The intention seems to be to copy values from fileConf to resConfig. However, it only copies values when the resConfig fields are empty. Since doctopt sets default values in resConfig, the values read from the file are ignored when a default value already exists.
For example, I set Output: "json" in my config YAML, but this has no effect because resConfig.Output already has a default value of "text".
Is the below better? But which one has precedence when command line args has non-default value, and file config exists for the same option?
The text was updated successfully, but these errors were encountered:
knoguchi
changed the title
config files from yaml file is ignored when docopt has default values
config values from yaml file are ignored when docopt has default values
Mar 6, 2025
Apache Iceberg version
None
Please describe the bug 🐞
Does this really work?
https://github.com/apache/iceberg-go/blob/ba883bdb1d26cc8ea0505e3910ffee0f9c74f315/cmd/iceberg/main.go#L412C1-L428C2
The intention seems to be to copy values from fileConf to resConfig. However, it only copies values when the resConfig fields are empty. Since doctopt sets default values in resConfig, the values read from the file are ignored when a default value already exists.
For example, I set Output: "json" in my config YAML, but this has no effect because resConfig.Output already has a default value of "text".
Is the below better? But which one has precedence when command line args has non-default value, and file config exists for the same option?
The text was updated successfully, but these errors were encountered: