Skip to content

Conversation

@yaooqinn
Copy link
Member

What changes were proposed in this pull request?

Add zstandard as a candidate to fix the desc of spark.sql.avro.compression.codec

Why are the changes needed?

docfix

Does this PR introduce any user-facing change?

no

How was this patch tested?

doc build

Was this patch authored or co-authored using generative AI tooling?

no

@github-actions github-actions bot added the DOCS label Jan 18, 2024
Copy link
Contributor

@nchammas nchammas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I may advertise my own work for a moment, adopting either the approach in #44755 or #44756 will solve this problem of the HTML config docs getting out of sync with the source code. 😊

<td>
Compression codec used in writing of AVRO files. Supported codecs: uncompressed, deflate,
snappy, bzip2 and xz. Default codec is snappy.
snappy, bzip2, xz and zstandard. Default codec is snappy.
Copy link
Contributor

@nchammas nchammas Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest also removing this bit as it duplicates the information in the default column.

Suggested change
snappy, bzip2, xz and zstandard. Default codec is snappy.
snappy, bzip2, xz and zstandard.

Same here, of course:

"uncompressed, deflate, snappy, bzip2, xz and zstandard. Default codec is snappy.")

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. Thank you, @yaooqinn .

dongjoon-hyun pushed a commit that referenced this pull request Jan 18, 2024
…ql.avro.compression.codec

### What changes were proposed in this pull request?

Add zstandard as a candidate to fix the desc of spark.sql.avro.compression.codec

### Why are the changes needed?

docfix

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

doc build
### Was this patch authored or co-authored using generative AI tooling?

no

Closes #44783 from yaooqinn/avro_minor.

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit c040824)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
dongjoon-hyun pushed a commit that referenced this pull request Jan 18, 2024
…ql.avro.compression.codec

### What changes were proposed in this pull request?

Add zstandard as a candidate to fix the desc of spark.sql.avro.compression.codec

### Why are the changes needed?

docfix

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

doc build
### Was this patch authored or co-authored using generative AI tooling?

no

Closes #44783 from yaooqinn/avro_minor.

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit c040824)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
@dongjoon-hyun
Copy link
Member

Since it's supported since Spark 3.2.0 via SPARK-34479, I backported this to all live release branches. Merged to main/3.5/3.4.

@yaooqinn
Copy link
Member Author

Thank @dongjoon-hyun @nchammas

szehon-ho pushed a commit to szehon-ho/spark that referenced this pull request Feb 7, 2024
…ql.avro.compression.codec

### What changes were proposed in this pull request?

Add zstandard as a candidate to fix the desc of spark.sql.avro.compression.codec

### Why are the changes needed?

docfix

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

doc build
### Was this patch authored or co-authored using generative AI tooling?

no

Closes apache#44783 from yaooqinn/avro_minor.

Authored-by: Kent Yao <yao@apache.org>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit c040824)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants