Table of Contents

Class MetricViewVersion

Inheritance
MetricViewVersion
Inherited Members
Namespace
TabularEditor.SemanticBridge.Platforms.Databricks.MetricView
Assembly
SemanticBridge.dll

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

Default version when not specified in YAML (Databricks defaults to 1.1)

public const string Default = "1.1"

Field Value

Type Description
string

KnownVersions

Known metric view specification versions in order

public static readonly string[] KnownVersions

Field Value

Type Description
string[]

V01

Version 0.1 - Initial release (Databricks Runtime 16.4 through 17.1)

public const string V01 = "0.1"

Field Value

Type Description
string

V11

Version 1.1 - Adds semantic metadata, comments (Databricks Runtime 17.2+)

public const string V11 = "1.1"

Field Value

Type Description
string

Methods

IsAtLeast(string?, string)

Returns true if the version is at least the specified minimum version.

public static bool IsAtLeast(string? version, string minimumVersion)

Parameters

Type Name Description
string version
string minimumVersion

Returns

Type Description
bool

IsGreaterThan(string, string)

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

Type Name Description
string version
string other

Returns

Type Description
bool

IsKnown(string?)

Returns true if the version string is a known version.

public static bool IsKnown(string? version)

Parameters

Type Name Description
string version

Returns

Type Description
bool