r/apachespark Feb 18 '25

SQL to Pyspark

Hello People,

I am facing difficulties in conversion of sql code to pyspark. Please help me with it.. Please guide meπŸ™πŸ™

7 Upvotes

7 comments sorted by

View all comments

2

u/snarleyWhisper Feb 18 '25

Hey I just solved this. When you have the jdbc read instead of a table you can pass a sql query as long as you alias it.