Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEA] Support basic schema evolution for AVRO reading #5691

Open
Tracked by #4831
sperlingxx opened this issue May 30, 2022 · 0 comments
Open
Tracked by #4831

[FEA] Support basic schema evolution for AVRO reading #5691

sperlingxx opened this issue May 30, 2022 · 0 comments
Assignees
Labels
feature request New feature or request

Comments

@sperlingxx
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Currently, we can't read more columns than the file schema of AVRO, which is supported under PARQUET/ORC reading.

def test_read_avro_with_empty_clipped_schema(spark_tmp_path, v1_enabled_list, reader_type):
    data_path = spark_tmp_path + '/AVRO_DATA'
    with_cpu_session(
        lambda spark: gen_df(spark, [('a', int_gen)], length=100
                             ).write.format("avro").save(data_path))
    schema = StructType([StructField('a', IntegerType()), StructField('c', StringType())])
    assert_gpu_and_cpu_are_equal_collect(
        lambda spark: spark.read.schema(schema).format("avro").load(data_path),
        conf=all_confs)

To support this feature, we need to add transformations to fill the gap between read schema and file schema, just like what we did for PARQUET reading and ORC reading.

@sperlingxx sperlingxx added feature request New feature or request ? - Needs Triage Need team to review and classify labels May 30, 2022
@sameerz sameerz removed the ? - Needs Triage Need team to review and classify label May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants