You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/03/14 13:40:15 UTC
[GitHub] [arrow-datafusion] doki23 opened a new pull request #2012: Qualified wildcard
doki23 opened a new pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012
# Which issue does this PR close?
<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123.
-->
Closes #1994.
# What changes are included in this PR?
Add enum Expr::QualifiedWildcard
Add function: expand_qualified_wildcard
Add some tests
# Are there any user-facing changes?
It's a small patch of the functionality.
Users can write select statement using qualified wildcard.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] doki23 commented on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
doki23 commented on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1075194168
> Upon further thought, I wonder if it would make sense to expand out all qualified wildcards in the `Sql` -> `LogicalPlan` planner rather than having an `Expr` 🤔 and have to error when we encountered it.
>
> Though I suppose if we did that then we couldn't support wild cards in the DataFrame API 🤔
We should support wildcard in any kinds of api, including DataFrame.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] doki23 edited a comment on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
doki23 edited a comment on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1070808839
Would you please find time to review this pr?
@alamb @houqp @yjshen @xudong963
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] doki23 commented on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
doki23 commented on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1070808839
Can someone find time to review this pr?
@alamb @houqp @yjshen @xudong963
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb commented on a change in pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
alamb commented on a change in pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#discussion_r832681202
##########
File path: datafusion-expr/src/expr.rs
##########
@@ -228,6 +228,8 @@ pub enum Expr {
},
/// Represents a reference to all fields in a schema.
Wildcard,
+ /// Represents a reference to all fields in a specific schema.
Review comment:
I personally have a slight preference for a single `Expr::Wildcard` with optional qualifier
```rust
Wildcard { qualifier: Option<String>}
```
but that is a personal preference and there is nothing wrong with this approach
##########
File path: datafusion/tests/sql/wildcard.rs
##########
@@ -0,0 +1,149 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+use super::*;
+
+#[tokio::test]
+async fn select_qualified_wildcard() -> Result<()> {
+ let mut ctx = SessionContext::new();
+ register_aggregate_simple_csv(&mut ctx).await?;
+
+ let sql = "SELECT agg.* FROM aggregate_simple as agg order by c1";
+ let results = execute_to_batches(&ctx, sql).await;
+
+ let expected = vec![
+ "+---------+----------------+-------+",
+ "| c1 | c2 | c3 |",
+ "+---------+----------------+-------+",
+ "| 0.00001 | 0.000000000001 | true |",
+ "| 0.00002 | 0.000000000002 | false |",
+ "| 0.00002 | 0.000000000002 | false |",
+ "| 0.00003 | 0.000000000003 | true |",
+ "| 0.00003 | 0.000000000003 | true |",
+ "| 0.00003 | 0.000000000003 | true |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "+---------+----------------+-------+",
+ ];
+
+ assert_batches_eq!(expected, &results);
+
+ Ok(())
+}
+
+#[tokio::test]
+async fn select_non_alias_qualified_wildcard() -> Result<()> {
+ let mut ctx = SessionContext::new();
+ register_aggregate_simple_csv(&mut ctx).await?;
+
+ let sql = "SELECT aggregate_simple.* FROM aggregate_simple order by c1";
+ let results = execute_to_batches(&ctx, sql).await;
+
+ let expected = vec![
+ "+---------+----------------+-------+",
+ "| c1 | c2 | c3 |",
+ "+---------+----------------+-------+",
+ "| 0.00001 | 0.000000000001 | true |",
+ "| 0.00002 | 0.000000000002 | false |",
+ "| 0.00002 | 0.000000000002 | false |",
+ "| 0.00003 | 0.000000000003 | true |",
+ "| 0.00003 | 0.000000000003 | true |",
+ "| 0.00003 | 0.000000000003 | true |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "+---------+----------------+-------+",
+ ];
+
+ assert_batches_eq!(expected, &results);
+
+ Ok(())
+}
+
+#[tokio::test]
+async fn select_qualified_wildcard_join() -> Result<()> {
+ let ctx = create_join_context("t1_id", "t2_id")?;
+ let sql =
+ "SELECT tb1.*, tb2.* FROM t1 tb1 JOIN t2 tb2 ON t2_id = t1_id ORDER BY t1_id";
+ let expected = vec![
+ "+-------+---------+-------+---------+",
+ "| t1_id | t1_name | t2_id | t2_name |",
+ "+-------+---------+-------+---------+",
+ "| 11 | a | 11 | z |",
+ "| 22 | b | 22 | y |",
+ "| 44 | d | 44 | x |",
+ "+-------+---------+-------+---------+",
+ ];
+
+ let results = execute_to_batches(&ctx, sql).await;
+
+ assert_batches_eq!(expected, &results);
+
+ Ok(())
+}
+
+#[tokio::test]
+async fn select_non_alias_qualified_wildcard_join() -> Result<()> {
+ let ctx = create_join_context("t1_id", "t2_id")?;
+ let sql = "SELECT t1.*, tb2.* FROM t1 JOIN t2 tb2 ON t2_id = t1_id ORDER BY t1_id";
+ let expected = vec![
+ "+-------+---------+-------+---------+",
+ "| t1_id | t1_name | t2_id | t2_name |",
+ "+-------+---------+-------+---------+",
+ "| 11 | a | 11 | z |",
+ "| 22 | b | 22 | y |",
+ "| 44 | d | 44 | x |",
+ "+-------+---------+-------+---------+",
+ ];
+
+ let results = execute_to_batches(&ctx, sql).await;
+
+ assert_batches_eq!(expected, &results);
+
+ Ok(())
+}
+
+#[tokio::test]
+async fn select_wrong_qualified_wildcard() -> Result<()> {
+ let mut ctx = SessionContext::new();
+ register_aggregate_simple_csv(&mut ctx).await?;
+
+ let sql = "SELECT agg.* FROM aggregate_simple order by c1";
+ let result = ctx.create_logical_plan(sql);
+ match result {
+ Ok(_) => panic!("unexpected OK"),
+ Err(err) => assert_eq!(
+ err.to_string(),
+ "Error during planning: Invalid qualifier agg"
Review comment:
👍
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] xudong963 commented on a change in pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
xudong963 commented on a change in pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#discussion_r830490270
##########
File path: datafusion-expr/src/expr.rs
##########
@@ -696,6 +700,9 @@ fn create_name(e: &Expr, input_schema: &DFSchema) -> Result<String> {
Expr::Wildcard => Err(DataFusionError::Internal(
"Create name does not support wildcard".to_string(),
)),
+ Expr::QualifiedWildcard { .. } => Err(DataFusionError::Internal(
Review comment:
Maybe we can create a name for `QualifiedWildcard`?
##########
File path: datafusion-expr/src/expr.rs
##########
@@ -228,6 +228,9 @@ pub enum Expr {
},
/// Represents a reference to all fields in a schema.
Wildcard,
+ QualifiedWildcard {
Review comment:
It will be better to add extra annotation for `QualifiedWildcard`
##########
File path: datafusion/src/physical_plan/planner.rs
##########
@@ -206,6 +206,9 @@ fn create_physical_name(e: &Expr, is_first_expr: bool) -> Result<String> {
Expr::Wildcard => Err(DataFusionError::Internal(
"Create physical name does not support wildcard".to_string(),
)),
+ Expr::QualifiedWildcard { .. } => Err(DataFusionError::Internal(
Review comment:
ditto
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] xudong963 commented on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
xudong963 commented on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1070922258
Thanks @doki23, will take a look tomorrow :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] doki23 commented on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
doki23 commented on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1075189261
I think it's ready for review
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] doki23 commented on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
doki23 commented on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1070808839
Can someone find time to review this pr?
@alamb @houqp @yjshen @xudong963
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb commented on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
alamb commented on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1076686959
Thanks again @doki23
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] doki23 commented on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
doki23 commented on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1076978636
Thanks @xudong963 @alamb ! ❤️
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] doki23 edited a comment on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
doki23 edited a comment on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1070808839
Would you please find time to review this pr?
@alamb @houqp @yjshen @xudong963
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb commented on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
alamb commented on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1074319674
Upon further thought, I wonder if it would make sense to expand out all qualified wildcards in the `Sql` -> `LogicalPlan` planner rather than having an `Expr` 🤔 and have to error when we encountered it.
Though I suppose if we did that then we couldn't support wild cards in the DataFrame API 🤔
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] xudong963 commented on pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
xudong963 commented on pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#issuecomment-1070922258
Thanks @doki23, will take a look tomorrow :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb merged pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
alamb merged pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] xudong963 commented on a change in pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
xudong963 commented on a change in pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#discussion_r831778171
##########
File path: datafusion-expr/src/expr.rs
##########
@@ -228,6 +228,9 @@ pub enum Expr {
},
/// Represents a reference to all fields in a schema.
Wildcard,
+ QualifiedWildcard {
Review comment:
No, just add comments to the QualifiedWildcard that distinguish it from the Wildcard
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb commented on a change in pull request #2012: Qualified wildcard
Posted by GitBox <gi...@apache.org>.
alamb commented on a change in pull request #2012:
URL: https://github.com/apache/arrow-datafusion/pull/2012#discussion_r831451367
##########
File path: datafusion-common/src/dfschema.rs
##########
@@ -222,6 +222,16 @@ impl DFSchema {
}
}
+ pub fn fields_with_qualified(&self, qualifier: &str) -> Vec<&DFField> {
Review comment:
It would be nice to add a docstring (`/// comment`) to this function explaining what it does
##########
File path: datafusion-common/src/dfschema.rs
##########
@@ -222,6 +222,16 @@ impl DFSchema {
}
}
+ pub fn fields_with_qualified(&self, qualifier: &str) -> Vec<&DFField> {
+ self.fields
+ .iter()
+ .filter(|field| {
+ field.qualifier().is_some()
+ && field.qualifier.as_ref().unwrap().eq(qualifier)
Review comment:
I think you can write this a bit more concisely / rusty like
```rust
field.qualifier
.map(|q| q.eq(qualifier))
.unwrap_or(false)
```
##########
File path: datafusion/tests/sql/wildcard.rs
##########
@@ -0,0 +1,97 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+use super::*;
+
+#[tokio::test]
+async fn select_qualified_wildcard() -> Result<()> {
+ let mut ctx = SessionContext::new();
+ register_aggregate_simple_csv(&mut ctx).await?;
+
+ let sql = "SELECT agg.* FROM aggregate_simple as agg order by c1";
+ let results = execute_to_batches(&ctx, sql).await;
+
+ let expected = vec![
+ "+---------+----------------+-------+",
+ "| c1 | c2 | c3 |",
+ "+---------+----------------+-------+",
+ "| 0.00001 | 0.000000000001 | true |",
+ "| 0.00002 | 0.000000000002 | false |",
+ "| 0.00002 | 0.000000000002 | false |",
+ "| 0.00003 | 0.000000000003 | true |",
+ "| 0.00003 | 0.000000000003 | true |",
+ "| 0.00003 | 0.000000000003 | true |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00004 | 0.000000000004 | false |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "| 0.00005 | 0.000000000005 | true |",
+ "+---------+----------------+-------+",
+ ];
+
+ assert_batches_eq!(expected, &results);
+
+ Ok(())
+}
+
+#[tokio::test]
+async fn select_qualified_wildcard_join() -> Result<()> {
+ let ctx = create_join_context("t1_id", "t2_id")?;
+ let sql =
+ "SELECT tb1.*, tb2.* FROM t1 tb1 JOIN t2 tb2 ON t2_id = t1_id ORDER BY t1_id";
+ let expected = vec![
+ "+-------+---------+-------+---------+",
+ "| t1_id | t1_name | t2_id | t2_name |",
+ "+-------+---------+-------+---------+",
+ "| 11 | a | 11 | z |",
+ "| 22 | b | 22 | y |",
+ "| 44 | d | 44 | x |",
+ "+-------+---------+-------+---------+",
+ ];
+
+ let results = execute_to_batches(&ctx, sql).await;
+
+ assert_batches_eq!(expected, &results);
+
+ Ok(())
+}
+
+#[tokio::test]
+async fn select_non_alias_qualified_wildcard_join() -> Result<()> {
+ let ctx = create_join_context("t1_id", "t2_id")?;
+ let sql =
+ "SELECT t1.*, tb2.* FROM t1 tb1 JOIN t2 tb2 ON t2_id = t1_id ORDER BY t1_id";
+ let expected = vec![
+ "+-------+---------+-------+---------+",
+ "| t1_id | t1_name | t2_id | t2_name |",
+ "+-------+---------+-------+---------+",
+ "| 11 | a | 11 | z |",
+ "| 22 | b | 22 | y |",
+ "| 44 | d | 44 | x |",
+ "+-------+---------+-------+---------+",
+ ];
+
+ let results = execute_to_batches(&ctx, sql).await;
+
+ assert_batches_eq!(expected, &results);
+
+ Ok(())
+}
Review comment:
I wonder if an error test might be useful too
like `SELECT foo.* from t1` I would expect to return an error
##########
File path: datafusion/tests/sql/wildcard.rs
##########
@@ -0,0 +1,97 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+use super::*;
+
+#[tokio::test]
+async fn select_qualified_wildcard() -> Result<()> {
+ let mut ctx = SessionContext::new();
+ register_aggregate_simple_csv(&mut ctx).await?;
+
+ let sql = "SELECT agg.* FROM aggregate_simple as agg order by c1";
Review comment:
👍
##########
File path: datafusion-expr/src/expr.rs
##########
@@ -228,6 +228,9 @@ pub enum Expr {
},
/// Represents a reference to all fields in a schema.
Wildcard,
+ QualifiedWildcard {
Review comment:
Do you mean
```rust
Wildcard {
qualifier: Option<String>
}
```
?
##########
File path: datafusion-expr/src/expr.rs
##########
@@ -696,6 +700,9 @@ fn create_name(e: &Expr, input_schema: &DFSchema) -> Result<String> {
Expr::Wildcard => Err(DataFusionError::Internal(
"Create name does not support wildcard".to_string(),
)),
+ Expr::QualifiedWildcard { .. } => Err(DataFusionError::Internal(
Review comment:
I agree including the name of the qualifier in the message might be helpful
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org