Skip to content

Column Name Validations

Run validations on the column names to check for column name count of existence of column names.

Count Equal

Ensure column name count is equal to certain number.

validation().columnNames().countEqual(3)
validation.columnNames.countEqual(3)
- columnNameType: "columnCountEqual"
  count: "3"

Not Equal

Ensure column name count is between two numbers.

validation().columnNames().countBetween(10, 12)
validation.columnNames.countBetween(10, 12)
- columnNameType: "columnCountBetween"
  minCount: "10"
  maxCount: "12"

Match Order

Ensure all column names match particular ordering and is complete.

validation().columnNames().matchOrder("account_id", "amount", "name")
validation.columnNames.matchOrder("account_id", "amount", "name")
- columnNameType: "columnNameMatchOrder"
  names: ["account_id", "amount", "name"]

Match Set

Ensure column names contains set of expected names. Order is not checked.

validation().columnNames().matchSet("account_id", "first_name")
validation.columnNames.matchSet("account_id", "first_name")
- columnNameType: "columnNameMatchSet"
  names: ["account_id", "first_name"]