mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
check for valid name in kafka-config (#2321)
This commit is contained in:
parent
c10762220a
commit
ada48be181
1 changed files with 3 additions and 0 deletions
|
|
@ -67,6 +67,9 @@ func ValidateConfig(c Config) error {
|
|||
if c.Fields[i].PrimaryKey {
|
||||
found++
|
||||
}
|
||||
if c.Fields[i].Name == "" {
|
||||
return errors.Errorf("a name attribute (which isn't equal to \"\") should exist for all fields")
|
||||
}
|
||||
}
|
||||
if found != 1 {
|
||||
return errors.Errorf("exactly one primary key field is required")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue