MetadataColumnHelper Implicit Class¶
MetadataColumnHelper is a Scala implicit class of Attribute class.
Creating Instance¶
MetadataColumnHelper takes the following to be created:
isMetadataCol¶
isMetadataCol: Boolean
isMetadataCol takes the Metadata of the Attribute and checks if there is the __metadata_col key with true value.
isMetadataCol is used when:
- AddMetadataColumns logical resolution rule is executed
markAsQualifiedAccessOnly¶
markAsQualifiedAccessOnly(): Attribute
markAsQualifiedAccessOnly propagates hidden columns by adding the following entries to the metadata of this Attribute:
| Metadata Key | Value |
|---|---|
| __metadata_col | The name of this Attribute |
| __qualified_access_only | true |
markAsQualifiedAccessOnly is used when:
Analyzeris requested to commonNaturalJoinProcessing
markAsAllowAnyAccess¶
markAsAllowAnyAccess(): Attribute
Only with qualifiedAccessOnly enabled, markAsAllowAnyAccess removes __qualified_access_only metadata key from this Attribute.
Otherwise, markAsAllowAnyAccess does nothing (a noop) and returns this Attribute intact.
markAsAllowAnyAccess is used when:
- AddMetadataColumns logical resolution rule is executed (to addMetadataCol)
UnresolvedStarexpression is requested to expand- others