Closed bwbaugh closed 2 years ago
There is an old issue discussing using rows: https://github.com/tweag/sparkle/issues/93
I'm afraid there is not a final way to use them yet. As you learn sparkle, I'm sure you'll find multiple spots that can be improved like this one.
Closing this due to inactivity. But please, feel free to reopen.
As a beginner, how does this library want us to operate on
RDD Row
instances?Some things that I’ve tried:
Trying a constant that ignores the input row for testing purposes:
Are we not supposed to use
RDD Row
but instead use tuples likeRDD (Text, Text, Double, Text)
(like issue-124 might suggest)? If so, is there a simple example of creating/getting/using anEncoder
for theas
function? Is this even possible? I am having a little difficulty following the example inapps/dataframe
, which also creates a specializedTuple2
: https://github.com/tweag/sparkle/blob/6086b54b1a0240d53c20fac5e61d7f88eec1aeca/apps/dataframe/Main.hs#L29