-
Notifications
You must be signed in to change notification settings - Fork 454
-
let say i have value in python variable call a= 'something'
in
%%sql
select * from table_name where field = variable_a
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I don't think this is possible. Instead, I would use regular pyspark to create a temp view matching the condition you need, like so
someDf.where(F.col('field') == x).createTempView('tmp')
and then separately run
%%sql
select * from tmp
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment