Skip to content

Allow specifying expressions for record size #569

@yruslan

Description

@yruslan

Background

This is an idea that instead of defining a record length column it sometimes could be useful to define a record length expression based on a column ore more than one column.

Feature

A description of the requested feature.

Proposed Solution

      01  R.
                03 RECORD-LEN        PIC 9(3).
                03 FIELDS                    PIC X(100).
      val df = spark.read
        .format("cobol")
        .option("copybook_contents", copyBook)
        .option("record_format", "F")
        .option("record_length_expresion", "500 + @RECORD_LEN * 10")
        .load(filePath)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions