Standing-Man commented on code in PR #19672:
URL: https://github.com/apache/datafusion/pull/19672#discussion_r2674557535
##########
datafusion/sql/src/query.rs:
##########
@@ -170,6 +170,7 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
name: alias,
// Apply to all fields
columns: vec![],
+ explicit: true,
Review Comment:
I tested this using `datafusion-cli`, see the example below:
```
> CREATE TABLE t (v1 int);
0 row(s) fetched.
Elapsed 0.018 seconds.
> INSERT TABLE t VALUE (1), (2), (3);
+-------+
| count |
+-------+
| 3 |
+-------+
1 row(s) fetched.
Elapsed 0.017 seconds.
> SELECT * FROM t AS new_t;
+----+
| v1 |
+----+
| 1 |
| 2 |
| 3 |
+----+
3 row(s) fetched.
Elapsed 0.006 seconds.
> SELECT * FROM t new_t;
+----+
| v1 |
+----+
| 1 |
| 2 |
| 3 |
+----+
3 row(s) fetched.
Elapsed 0.004 seconds.
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]