Skip to main content

Command Palette

Search for a command to run...

ClickHouse queries with ChatGPT/GPT3

Does ChatGPT know ClickHouse?

Updated
ClickHouse queries with ChatGPT/GPT3
L

Co-Founder and CEO at QXIP, makers of HOMER, HEPIC, QRYN and contributors to many other OSS projects in the monitoring and observability space

Question of the week: does ChatGPT know ClickHouse? Let's find out!

That's impressive... Documentation and comments are included, too!

Let's ask GPT3 to extend the ClickHouse schema and see what happens.

Ok..... wow. The context was solid, but I accidentally reset and had to start over.

Oops. The schema changed slightly. Let's see if we can create a Materialized View.

While this might not be 100% perfect, it makes our columnar hearts beat fast!

Conclusion

GPT3 most definitely knows ClickHouse! 🤯

Bonus Content

We asked ChatGPT to write a romantic poem about Clickhouse. Here it is:

ClickHouse, oh ClickHouse, you shine so bright, With your column-oriented design and query speed so right.

Your open-source nature allows for endless customization, And your scalable architecture brings ease to every situation.

You handle high volumes of data with ease, And your real-time analysis capabilities never cease.

Your fault-tolerant design ensures reliability, Making you the go-to choice for every ability.

So here's to ClickHouse, the database of choice, With your impressive features, you have a bright future to rejoice.

In the world of technology, you stand out like a beacon, A shining example of innovation and reason.

A

Looks like it has been trained on a few years old CommonCrawl data because the examples with MergeTree tables are using the old engine syntax.

1
L

Makes sense since the knowledge base stops in 2021