Show HN: Natural-SQL-7B, a strong text-to-SQL model
141–150 of 171 posts
Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model
#142Earlier quoted context omitted.
I’ve been working in this industry professionally for close to 25 years now. By far the most valuable and useful language I have learned is SQL.
I have been working in this industry for 30 years now. SQL is one of the most ugliest programming language I have ever working with. Like Perl, it's write once, hope you never need to read, language. SQL was created in 60s. It has not really kept up with the pace of modern programming language ergonomics. It was made for a single person executing a batch job query pulling data from the database. On the other hand, I…
The IBM System R and SEQUEL paper was 1974, while Oracle 2 was the first commercial database which added it in 1979.
Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model
#143Earlier quoted context omitted.
I’ve been working in this industry professionally for close to 25 years now. By far the most valuable and useful language I have learned is SQL.
I actually work in the Data/AI space and SQL has been of limited use to me. Whilst Snowflake is pretty popular the days of elaborately modelled EDWs are long gone. And so typically I find I am doing queries, transformations etc in some abstraction layer e.g. Spark on a data lake, ORM for web applications etc.
They're more prevalent than ever in my experience. Consider the popularity of dbt.
Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model
#144Earlier quoted context omitted.
For those people who would rather use an ORM, its worth mentioning that ORMs write very bad, un-performant SQL under the hood. They may save you a bit of time initially but when your company gets bigger, the ORMs will become a bottleneck.
"Bad" and "un-performant" are relative terms and as your company gets bigger, you're increasingly more and more likely to have colleagues who write even worse queries than an ORM would. For example I've encountered queries that are not only slow, but they generate several hundred megabytes of output all of which is sent to the user's web browser where JavaScript selects the relevant two kilobytes of data to show the…
Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model
#145Earlier quoted context omitted.
Could you give an example?
This will be useful if you have a table with some related history records, e.g., products with product price history, and you want to get the latest price. The lateral join would get all prices for the current product, sort them by date and then pick the top row.
Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model
#146I don't think any of those text-to-sql models are solving the right problems. The hard part is not syntax or I don't know how to write a group by query. Most data scientists and engineers spend more time on understanding the meaning of the data. One cannot simply look at a 50 columns table in Snowflake and guess what columns are by their names. For example, we have 10 columns in one tables, all named ...price. We hav…
Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model
#147Earlier quoted context omitted.
I actually work in the Data/AI space and SQL has been of limited use to me. Whilst Snowflake is pretty popular the days of elaborately modelled EDWs are long gone. And so typically I find I am doing queries, transformations etc in some abstraction layer e.g. Spark on a data lake, ORM for web applications etc.
> the days of elaborately modelled EDWs are long gone They're more prevalent than ever in my experience. Consider the popularity of dbt.
Don't forget the models other's create for you - often hilariously slow code to present a set of facets that often barely align with your business delivery needs; and don't forget to sync it even more slowly with Fivetran, the DE platform of the future!
Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model
#148Earlier quoted context omitted.
1) OpenAI has consistently gone back on commitments it has made 2) Sam Altman has a shady track record publicly, and if you believe the things people say privately he has consistently done business very dishonestly throughout his career. He is the CEO, and virtually the entire executive team are people he brought in from his network. It’s his company. 3) To give one example of many, OpenAI recently changed the terms…
Hm. I disagree that executive level shenanigans translate to real world non-compliance with privacy law when there is an explicit request to delete/not store data.
Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model
#149Re: Show HN: Natural-SQL-7B, a strong text-to-SQL model
#150Earlier quoted context omitted.
> the days of elaborately modelled EDWs are long gone They're more prevalent than ever in my experience. Consider the popularity of dbt.
dbt is not elaborately modeled at all, it eschews all the up front work of data modeling with ... well basically a lot of code and poorly maintained balls of mud. Don't forget the models other's create for you - often hilariously slow code to present a set of facets that often barely align with your business delivery needs; and don't forget to sync it even more slowly with Fivetran, the DE platform of the future!
This doesn't make any sense, or I'm guessing you've never actually used it. Modeling is something you can do with dbt, not what dbt does (or is, or can be?). I've used it to create data marts and EDW's with hundreds of tables, no differently than I would have created a decade ago with other tools.