Skip to content

Commit 4f5d299

Browse files
committed
Update README
1 parent f5a87ee commit 4f5d299

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,17 @@ from py_boilingdata import BoilingData
1919
async def main():
2020
boiling = BoilingData()
2121
await boiling.connect()
22-
q = "SELECT first_name, email FROM parquet_scan('s3://boilingdata-demo/test.parquet') LIMIT 10"
23-
resp = await boiling.execute(q)
24-
print(resp)
25-
26-
loop = asyncio.get_event_loop()
27-
loop.run_until_complete(main())
22+
results = await boiling.execute(
23+
"""
24+
SELECT first_name, email
25+
FROM parquet_scan('s3://boilingdata-demo/test.parquet')
26+
LIMIT 2
27+
"""
28+
)
29+
print(results)
30+
await boiling.close()
31+
32+
asyncio.new_event_loop().run_until_complete(main())
2833
```
2934

3035
## Development

0 commit comments

Comments
 (0)