VARIANT

All functions > CORE > VARIANT

Defines a variant of the given feature with the given replacements in its dependencies.

Syntax

VARIANT(base, origin, replacement)
sql

Arguments

ParameterTypeRequiredDescription
baseFEATUREYesThe base feature to create a variant of
originARRAYFEATUREYesArray of features to be replaced
replacementARRAYFEATUREYesArray of replacement features

Returns

A variant feature with substituted dependencies

Notes

  • Creates a variant of a feature with dependency substitution
  • Replaces specified origin features with replacement features
  • Useful for A/B testing and feature experimentation
  • Origin and replacement arrays must have matching length
  • Enables creating alternate versions of features
  • Part of the FeatureMesh core system
Last update at: 2025/10/13 10:23:46