shuttle-hq / synth

The Declarative Data Generator
https://www.getsynth.com/
Apache License 2.0
1.38k stars 109 forks source link

empty range error does not include column and table name #379

Open zvif-orca opened 2 years ago

zvif-orca commented 2 years ago

Describe the bug Synth exits with error of an empty range during import from postgres. Although the error is crystal-clear, it is not clear which table/column raised it. As a result, I cannot verify that the range is indeed empty.

To Reproduce Steps to reproduce the behavior:

  1. Add i32 range column that starts and ends at the same number - (1000, 1000) in my case
  2. Run import
  3. See error
    Error: i32 range with low=1000 (inclusive) high=1000 (exclusive) step=1 is empty

Expected behavior The error message should include the table and column name.

Environment (please complete the following information):

meena-erian commented 1 year ago

Are there any updates on how I can address this error?

hepivax commented 1 year ago

Try to set the CARGO_LOG environment variable to debug