apache / apache/datafusion

[substrait] [sqllogictest] Error during planning: No table named 'generate_series()'

Open
#16,279 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Describe the bug

~35 sqllogictest cases are failing in Substrait round-trip mode because of the following error:
```
query failed: DataFusion error: Error during planning: No table named 'generate_series()'
```

### To Reproduce

```
cargo test --test sqllogictests -- --substrait-round-trip array.slt:6471
```

### 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

Contributor guide

Open the contributing guide

Research direction

Start by running `cargo test --test sqllogictests -- --substrait-round-trip array.slt:6471` and trace the Substrait round-trip planning path that handles `generate_series()`. Done means the affected sqllogictest cases pass in Substrait round-trip mode without the missing-table planning error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
databases, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.