←back to thread

Getting AI to write good SQL

(cloud.google.com)
476 points richards | 2 comments | | HN request time: 0.447s | source
1. sgarland ◴[] No.44015136[source]
Given that their first query example has a leading wildcard as a predicate (WHERE p.product_name LIKE '%shoe%') and doesn't take case into account, I have doubts.
replies(1): >>44015304 #
2. rrrrrrrrrrrryan ◴[] No.44015304[source]
Yeah there's still a long way to go. Until these things actually try to consistently spit out SARGable queries, look at the query plans, check for covering indexes, etc. they're going to write worse queries than an entry level data engineer.

I'm certain they'll get there soon, they're just not there yet.