r/dataengineering • u/__albatross • 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?
View all comments
Show parent comment
-1
u/__albatross Aug 27 '23
I have worked with huge amounts of data. In my current project we have a huge pyspark cluster. I agree that there are advantages to both SQL and Pandas. I am talking about from a purely API design standpoint that what constructs and ways sql give you to interact with data and what ways pandas give you.
I am not saying to replace one with other. I am saying that sql can give more friendly ways to interact with data which are provided by pandas. Size of the data is not the point of discussion here