You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "gabotechs (via GitHub)" <gi...@apache.org> on 2025/06/06 08:08:15 UTC
[I] [substrait] [sqllogictest] Only literal types and aliases are supported in Virtual Tables, got: ScalarFunction [datafusion]
gabotechs opened a new issue, #16276:
URL: https://github.com/apache/datafusion/issues/16276
### Describe the bug
~40 sqllogictest cases are failing in Substrait round-trip mode because of the following error:
```
query failed: DataFusion error: Substrait error: Only literal types and aliases are supported in Virtual Tables, got: ScalarFunction
```
### To Reproduce
```
cargo test --test sqllogictests -- --substrait-round-trip map.slt:389
```
### Expected behavior
The sqllogictest passes in Substrait round-trip mode
### Additional context
This is part of a broader initiative to improve the reliability of Substrait-to-DataFusion logical plan conversions.
- https://github.com/apache/datafusion/issues/16248
--
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@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] [substrait] [sqllogictest] Only literal types and aliases are supported in Virtual Tables, got: ScalarFunction [datafusion]
Posted by "kosiew (via GitHub)" <gi...@apache.org>.
kosiew commented on issue #16276:
URL: https://github.com/apache/datafusion/issues/16276#issuecomment-3561760796
On [main f1ecaccd1](https://github.com/apache/datafusion/commit/f1ecaccd183367086ecb5b7736d93b3aba109e01),
I am getting an additional `Unsupported plan type: DescribeTable` error at map.slt:43.
```
❯ cargo test --test sqllogictests -- --substrait-round-trip map.slt:388
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.66s
Running bin/sqllogictests.rs (target/debug/deps/sqllogictests-d29eafa7e841495b)
Completed 1 test files in 0 seconds External error: 2 errors in file /Users/kosiew/GitHub/datafusion/datafusion/sqllogictest/test_files/map.slt
1. query failed: DataFusion error: This feature is not implemented: Unsupported plan type: DescribeTable { schema: Schema ...
[SQL] describe data;
at /Users/kosiew/GitHub/datafusion/datafusion/sqllogictest/test_files/map.slt:43
2. query failed: DataFusion error: Substrait error: Only literal types and aliases are supported in Virtual Tables, got: ScalarFunction
[SQL] VALUES (MAP(['a'], [1])), (MAP(['b'], [2])), (MAP(['c', 'a'], [3, 1]))
at /Users/kosiew/GitHub/datafusion/datafusion/sqllogictest/test_files/map.slt:388
```
--
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@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] [substrait] [sqllogictest] Only literal types and aliases are supported in Virtual Tables, got: ScalarFunction [datafusion]
Posted by "kosiew (via GitHub)" <gi...@apache.org>.
kosiew commented on issue #16276:
URL: https://github.com/apache/datafusion/issues/16276#issuecomment-3557432207
hi @gabotechs
I am getting a different error message with the above reproduction step.
I guess the line number shifted for this issue too.
May I know the correct line number?
--
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@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] [substrait] [sqllogictest] Only literal types and aliases are supported in Virtual Tables, got: ScalarFunction [datafusion]
Posted by "kosiew (via GitHub)" <gi...@apache.org>.
kosiew closed issue #16276: [substrait] [sqllogictest] Only literal types and aliases are supported in Virtual Tables, got: ScalarFunction
URL: https://github.com/apache/datafusion/issues/16276
--
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@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] [substrait] [sqllogictest] Only literal types and aliases are supported in Virtual Tables, got: ScalarFunction [datafusion]
Posted by "gabotechs (via GitHub)" <gi...@apache.org>.
gabotechs commented on issue #16276:
URL: https://github.com/apache/datafusion/issues/16276#issuecomment-3558192302
> May I know the correct line number?
It's 388 now, updated!
--
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@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org