prestodb / presto-python-client

Python DB-API client for Presto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to insert data

hhhzt opened this issue · comments

commented

My table creation statement is:
create table test(word string)
PARTITIONED by(dt string, hour string)
STORED as orc
Execute in my code:
cursor = conn.cursor()
sql = f'''
insert into table auto_diagnose.test
PARTITION(dt="2023-03-23" ,hour="10")
values ("test7")
'''

cursor.execute(sql)
conn.commit()
The code did not report an error, but no new data was added to the hive table

hello, were you able to solve this issue?

我也是,解决了吗