pysql-beam-org / pysql-beam

MIT License
25 stars 13 forks source link

Script crashes when query is not provided #5

Open ameenudheenirshad opened 3 years ago

ameenudheenirshad commented 3 years ago

I tried to run script with passing table name only, which resulted in crash with error

File "/home/ameen/.virtualenvs/data-warehousing-exploration/lib/python3.8/site-packages/pysql_beam/sql_io/sql.py", line 242, in process source.query = source.query.strip(";") AttributeError: 'NoneType' object has no attribute 'strip' [while running 'Read from postgres/ReadFromSQL/SplitQuery']

yesdeepakverma commented 2 years ago

Can you provide the steps to reproduce ? I'll prioritize to fix this.