Closed lmangani closed 12 months ago
still does not work for me replace view with table and it does stop working
https://colab.research.google.com/drive/1o07UEUUAxcdR9WCdYt53mVZBvqqbqzxn?usp=sharing
from chdb import session as chs
sess = chs.Session("xxxx")
sess.query("CREATE DATABASE IF NOT EXISTS db_xxx ENGINE = Atomic ; use db_xxx")
for tbl in ['nation','region','customer','supplier','lineitem','orders','partsupp','part'] :
sess.query(f'CREATE OR REPLACE view {tbl} as select * from file("./{sf}/{tbl}/*.parquet", Parquet)')
never mind forgot to add ENGINE = Log
Example
Let's use the following script to reproduce our issue:
test.py
The inserted line is returned correctly.
When running the same script again, the following error is produced over the results:
The issue seems caused by the
CREATE OR REPLACE TABLE
query.Note the results are actually returned after the exception, which seems to have no apparent effect on the query itself.