Class MetricViewVersion
- Inheritance
-
MetricViewVersion
- Inherited Members
-
Provides version comparison utilities for Databricks Metric View specifications.
Unknown versions are treated as greater than all known versions (forward compatible).
public static class MetricViewVersion
Fields
Default version when not specified in YAML (Databricks defaults to 1.1)
public const string Default = "1.1"
Field Value
Known metric view specification versions in order
public static readonly string[] KnownVersions
Field Value
Version 0.1 - Initial release (Databricks Runtime 16.4 through 17.1)
public const string V01 = "0.1"
Field Value
Version 1.1 - Adds semantic metadata, comments (Databricks Runtime 17.2+)
public const string V11 = "1.1"
Field Value
Methods
Returns true if the version is at least the specified minimum version.
public static bool IsAtLeast(string? version, string minimumVersion)
Parameters
Returns
Returns true if version is strictly greater than
other, using full version-number comparison.
Patch-level strings ("1.1.1") ARE greater than their parent
minor version ("1.1") — any version bump from Databricks
means a spec change we should respect. Unparseable strings on
either side fall back to the array-index ordering used by
IsAtLeast(string?, string).
public static bool IsGreaterThan(string version, string other)
Parameters
Returns
Returns true if the version string is a known version.
public static bool IsKnown(string? version)
Parameters
| Type |
Name |
Description |
| string |
version |
|
Returns