Skip to content

Remove metadata associated with column  #590

@kbarathi

Description

@kbarathi

Background [Optional]

I'm using Cobrix v2.6.2 to convert the cobol file to parquet. I noticed that recently your team has added the 'maxLength' metadata for spark schema string fields in v2.6.0. This addition of metadata is causing validation issues for us during dataframe transformations and we are having hard time in removing this metadata associated with each fields.

scala> df.schema("CODE").metadata
res0: org.apache.spark.sql.types.Metadata = {"maxLength":2}

Question

I do not need this metadata info to be associated with the field. Is there a way to disable metadata generation? something like .option("metadata", false)
Appreciate your response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedAccepted for implementationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions