Skip to content

doc: add example for cache factory#19139

Merged
milenkovicm merged 1 commit intoapache:mainfrom
jizezhang:cache-eg
Dec 21, 2025
Merged

doc: add example for cache factory#19139
milenkovicm merged 1 commit intoapache:mainfrom
jizezhang:cache-eg

Conversation

@jizezhang
Copy link
Contributor

@jizezhang jizezhang commented Dec 7, 2025

Which issue does this PR close?

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@jizezhang jizezhang marked this pull request as ready for review December 7, 2025 04:36
Copy link
Contributor

@milenkovicm milenkovicm left a comment

Choose a reason for hiding this comment

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

thanks @jizezhang I had a quick look, it does make sense.
Will have a better look later.

@jizezhang
Copy link
Contributor Author

thanks @jizezhang I had a quick look, it does make sense. Will have a better look later.

Hi @milenkovicm , do you have any thoughts on this PR? Thanks.

@milenkovicm
Copy link
Contributor

apologies @jizezhang it slipped off my radar.
I think in general it looks good. do you plan adding something else to it as you mentioned in #18893 (comment)

@milenkovicm milenkovicm changed the title add example for cache factory doc: add example for cache factory Dec 16, 2025
Copy link
Contributor

@milenkovicm milenkovicm left a comment

Choose a reason for hiding this comment

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

I think this makes sense @jizezhang please just consider adding some documentation

match self {
Self::Dataframe => "dataframe",
Self::DeserializeToStruct => "deserialize_to_struct",
Self::CacheFactory => "cache_factory",
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe doc should be updated cargo run --example dataframe -- [dataframe|deserialize_to_struct|cache_factory]

.cache()
.await?;

println!("caching has not been executed");
Copy link
Contributor

Choose a reason for hiding this comment

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

is this print relevant?

@jizezhang
Copy link
Contributor Author

I think this makes sense @jizezhang please just consider adding some documentation

Hi @milenkovicm , thanks for reviewing. I added doc and a bit clean up. Please take a look again when you get a chance. Thanks!

Copy link
Contributor

@milenkovicm milenkovicm left a comment

Choose a reason for hiding this comment

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

i think this makes sense thanks @jizezhang

@milenkovicm milenkovicm added this pull request to the merge queue Dec 21, 2025
Merged via the queue into apache:main with commit 2c3566c Dec 21, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add example for using CacheFactory with DataFrame::cache

2 participants