Skip to content

Instantly share code, notes, and snippets.

@kvnkho
Created February 11, 2022 06:27
Show Gist options
  • Select an option

  • Save kvnkho/5fe153fbecc43e813226c54cf332c92d to your computer and use it in GitHub Desktop.

Select an option

Save kvnkho/5fe153fbecc43e813226c54cf332c92d to your computer and use it in GitHub Desktop.
from fugue_sql import fsql
fsql("""SELECT col1, col2
FROM data
TRANSFORM USING make_new_col SCHEMA *,col3:int
PRINT""").run(spark_session)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment