-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-966360 Support Explode Function #69
Conversation
// process explode function with literal values | ||
private def callExplode(input: Column): DataFrame = { | ||
import this.implicits._ | ||
val dummyDF = Seq(1).toDF("a") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand here why we need to create a DF with dummy value and column names. This is not even in test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to reuse the DataFrame.join
function since it supports explode
function.
So I want to create an empty DataFrame, and then add input
in this DataFrame via withColumn
.
However, Snowpark doesn't support empty DataFrame, therefore I created a dummy DataFrame and remove the dummy column later.
explode
functionDataFrame.select
,DataFrame.join
andSession.tableFunction