We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0689d07 commit 51888a1Copy full SHA for 51888a1
1 file changed
datafusion-examples/examples/parquet_sql.rs
@@ -34,10 +34,15 @@ async fn main() -> Result<()> {
34
ParquetReadOptions::default(),
35
)
36
.await?;
37
- let sql = "select now() - interval '1' day from alltypes_plain limit 2";
38
- let sql = "select now()::date + interval '1 hour'";
+
39
// execute the query
40
- let df = ctx.sql(sql).await?;
+ let df = ctx
+ .sql(
41
+ "SELECT int_col, double_col, CAST(date_string_col as VARCHAR) \
42
+ FROM alltypes_plain \
43
+ WHERE id > 1 AND tinyint_col < double_col",
44
+ )
45
+ .await?;
46
47
// print the results
48
df.show().await?;
0 commit comments