https://github.com/drone/drone-wall https://github.com/drone/drone
This file contains hidden or 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
You can use select with varargs including *: | |
import spark.implicits._ | |
df.select($"*" +: Seq("A", "B", "C").map(c => | |
sum(c).over(Window.partitionBy("ID").orderBy("time")).alias(s"cum$c") | |
): _*) | |
This: | |
Maps columns names to window expressions with Seq("A", ...).map(...) |
This file contains hidden or 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"github.com/ghodss/yaml" | |
"io/ioutil" | |
"path/filepath" | |
) |
This file contains hidden or 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
#!/usr/bin/env node | |
// Replace the | |
// chmod +x pg-test.js | |
// npm install --save pg | |
// ./pg-test.js | |
OlderNewer