Skip to content

Commit 6f6c011

Browse files
committed
Incorporate feedback
1 parent f9b0b36 commit 6f6c011

6 files changed

Lines changed: 311 additions & 384 deletions

File tree

datafusion-examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ cargo run --example dataframe -- dataframe
133133

134134
| Subcommand | File Path | Description |
135135
| ---------- | --------------------------------------------------------------------- | --------------------------------------------------------- |
136-
| event_id | [`extension_types/event_id.rs`](examples/extension_types/event_id.rs) | A custom wrapper around integers that represent event ids |
136+
| event_id | [`extension_types/event_id.rs`](examples/extension_types/temperature.rs) | A custom wrapper around integers that represent event ids |
137137

138138
## External Dependency Examples
139139

datafusion-examples/examples/extension_types/event_id.rs

Lines changed: 0 additions & 297 deletions
This file was deleted.

datafusion-examples/examples/extension_types/main.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
//!
2222
//! ## Usage
2323
//! ```bash
24-
//! cargo run --example extension_types -- [all|event_id]
24+
//! cargo run --example extension_types -- [all|temperature]
2525
//! ```
2626
//!
2727
//! Each subcommand runs a corresponding example:
2828
//! - `all` — run all examples included in this module
2929
//!
30-
//! - `event_id`
31-
//! (file: event_id.rs, desc: A custom wrapper around integers that represent event ids)
30+
//! - `temperature`
31+
//! (file: temperature.rs, desc: Extension type for temperature data.)
3232
33-
mod event_id;
33+
mod temperature;
3434

3535
use datafusion::error::{DataFusionError, Result};
3636
use strum::{IntoEnumIterator, VariantNames};
@@ -40,7 +40,7 @@ use strum_macros::{Display, EnumIter, EnumString, VariantNames};
4040
#[strum(serialize_all = "snake_case")]
4141
enum ExampleKind {
4242
All,
43-
EventId,
43+
Temperature,
4444
}
4545

4646
impl ExampleKind {
@@ -58,8 +58,8 @@ impl ExampleKind {
5858
Box::pin(example.run()).await?;
5959
}
6060
}
61-
ExampleKind::EventId => {
62-
event_id::event_id_example().await?;
61+
ExampleKind::Temperature => {
62+
temperature::temperature_example().await?;
6363
}
6464
}
6565
Ok(())

0 commit comments

Comments
 (0)