I am using snowflake.connector to run four queries one after another. All queries should return some results, but only the first two return results. If I comment out the first two, then the next two queries would successfully return results. It seems like there is a soft limit of two somewhere. Any idea what is wrong?
self.cnxn = snowflake.connector.connect(
user=self.username,
password=self.password,
account=self.account,
warehouse=self.warehouse)
self.cursor = self.cnxn.cursor()
self.cursor.execute("SELECT * FROM db.schema.table1")
rows = self.cursor.fetchall()
self.cursor.execute("SELECT * FROM db.schema.table2")
rows = self.cursor.fetchall()
self.cursor.execute("SELECT * FROM db.schema.table3")
rows = self.cursor.fetchall() # returns empty resultset
self.cursor.execute("SELECT * FROM db.schema.table4")
rows = self.cursor.fetchall() # returns empty resultset
Note that I don't get any error messages.