Created
February 27, 2019 15:30
-
-
Save ijan10/43dd164d986e5c1a73831eca20d0c4df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sql_query = '''SELECT col1, col2,… ,count(1) as weight from left_table_name group by col1,col2,… order by weight desc''' | |
df_join_key_count = spark.sql(sql_query) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment