Reputation: 103
I'm using impyla==0.16.2 on python 3.8.3
Tried to execute set mem_limit=1G
and after running query it does still give the error of mem_limit.
That should be resolved because If I follow the same steps on Dbeaver it works as expected.
Not sure why its not working in impyla.
Can someone guide me on this.
Upvotes: 0
Views: 975
Reputation: 103
To Setup mem_limit using impala, pass it as confiruration parameter in cursor.execute statements.
cursor = conn.cursor()
cursor.execute(query, configuration={'mem_limit': '1G'})
Query will run successfully.
Upvotes: 1