Skip to content

FileSourceMetadataAttribute

Cleaning Up Metadata

cleanupFileSourceMetadataInformation(
  attr: Attribute): Attribute
cleanupFileSourceMetadataInformation(
  field: StructField): StructField

cleanupFileSourceMetadataInformation removes internal metadata from (the metadata of) the given Attribute or StructField.


cleanupFileSourceMetadataInformation is used when:

removeInternalMetadata

removeInternalMetadata(
  metadata: Metadata)

removeInternalMetadata creates a new MetadataBuilder to build a metadata for the given Metadata but without the following metadata entries:

Creating Metadata AttributeReference

apply(
  name: String,
  dataType: DataType,
  nullable: Boolean = false): AttributeReference

apply creates an AttributeReference with the following metadata:

Metadata Key Value
__metadata_col true
__file_source_metadata_col true

apply is used when: