honeysql

john-shaffer 2023-10-21T22:15:34.004619Z

https://honeysql.fly.dev/ prototype SQL to HoneySQL translator

❤️ 1
seancorfield 2023-10-21T22:18:14.751899Z

I typed in select a from x and got nothing -- is there some button or action to trigger the translator?

john-shaffer 2023-10-21T22:18:34.505649Z

oh sorry, i always do ctrl-enter

john-shaffer 2023-10-21T22:18:40.617329Z

was going to add a button and just forgot

seancorfield 2023-10-21T22:20:22.716789Z

seancorfield 2023-10-21T22:21:26.161439Z

It looks a bit LLM-ish -- is that how it works behind the scenes? Ask for HoneySQL expression to generate the given SQL, then run it through format to see if it produces the right output?

john-shaffer 2023-10-21T22:22:48.624769Z

yes, it is a fine-tuned gpt-3.5

john-shaffer 2023-10-21T22:24:28.768579Z

hopefully more training data will help with those cases

john-shaffer 2023-10-21T22:24:57.052819Z

it doesn't do insert into x select yet either

seancorfield 2023-10-21T22:27:29.189729Z

Interesting approach...

john-shaffer 2023-10-21T22:30:09.196239Z

So far I'm seeing it get SELECT a AS b and INSERT INTO a SELECT ... wrong. Postgres operators like -> too

seancorfield 2023-10-21T23:30:32.557929Z

I plan to cut a new HoneySQL release before the end of the month with https://github.com/seancorfield/honeysql/issues/510 and https://github.com/seancorfield/honeysql/issues/511 both addressed. A first cut of both is available on the latest develop branch and as the latest 2.4.9999-SNAPSHOT if folks would like to test the new features and a) make sure they work and b) provide feedback. The NRQL dialect is very much a "first cut". It doesn't support all of the NRQL extensions to SQL: I want to see what sort of stuff people want/need before I spend effort on extensions that "no one uses" 🙂

nate 2023-10-22T22:06:42.622429Z

I think the initial NRQL support is sufficient for my needs. I’ll double check tomorrow.

👍🏻 1
seancorfield 2023-10-23T14:31:28.582599Z

@markaddleman How's the improved BigQuery support working for you?

markaddleman 2023-10-23T14:32:48.772329Z

Works great. I have a very simple use case and I’m not sure how complicated it gets but the implementation looks good to go

👍🏻 1
seancorfield 2023-10-23T15:22:18.052349Z

Thank you, both. I'll probably cut the release mid-week.

🙏 1
nate 2023-10-23T21:39:20.878069Z

I double checked, and it's good for me for now. Thank you Sean!

👍🏻 1