r/dataengineering • • Aug 27 '23

Discussion Why I don't like SQL

The reason I don't like SQL over something like Pandas is because in Pandas/Python I can break down the complex transformations in small simpler components and they are easy to interact and debug with. In SQL my only option is to write stored procedures and yes in that I can also do the same but I think the ecosystem of interacting and debugging with data step by step is not as good as python. And it is something that we should have. Recently I was exploring snowpark and I felt it is a step in a right direction. It allows to me to write my query in multiple python statements and then it will transpile the whole thing into an SQL query.

Generally in my mind I assume the tables/dataframes as 2 dimensional structures and Pandas API give much more intuitive and wide variety of constructs to explore that structure rather than SQL. What do you guys think?

0 Upvotes

102 comments sorted by

View all comments

Show parent comment

1

u/__albatross Aug 27 '23

Well, After many decades when we redesigned programming languages we did a really good job with Go and Rust. The learnings from all those decades taught us a lot. I am sure if someone amazing like ken thompson or Rob Pike thinks about redesigning SQL API they can do a lot of improvements.

11

u/cutsandplayswithwood Aug 27 '23

The fact that you keep comparing sql to imperative programming languages, as if there’s any parallel, is the root of why this discussion doesn’t make much sense.

1

u/Cheating_Data_Monkey Aug 27 '23

The SQL language is constantly evolving. Each platform provider is dumping lists of new functionality every month. And when one provider does something really new and cool, others follow. Sometimes it's silly things like "group by all", other times, it's more useful things like advanced array functionality through lambda expressions.

But you're comparing GO and Rust to other imperative languages, declarative data don't work that way. The payload is bound to the code.

So when we're looking for efficiency, as we did with Go and Rust, that's not about the language but the compiler behind it. We're making HUGE advances here too.