Skip to content

Instantly share code, notes, and snippets.

View mvonthron's full-sized avatar

Manuel Vonthron mvonthron

View GitHub Profile
@mvonthron
mvonthron / Main.scala
Created November 8, 2017 15:37
Predicate pushdown tests
import java.sql.Timestamp
import java.util.UUID
import org.apache.spark.SparkConf
import org.apache.spark.scheduler.{SparkListener, SparkListenerStageCompleted}
import org.apache.spark.sql.functions.{col, lit}
import org.apache.spark.sql.sources.Or
import org.apache.spark.sql.types._
import org.apache.spark.sql.{DataFrame, Row, SparkSession}
import org.joda.time.DateTime
import java.sql.Timestamp
import java.util.UUID
// from the awesome http://db-blog.web.cern.ch/
import ch.cern.sparkmeasure.StageMetrics
import org.apache.spark.SparkConf
import org.apache.spark.sql.functions.{col, lit}
import org.apache.spark.sql.types._
import org.apache.spark.sql.{DataFrame, Row, SparkSession}
@mvonthron
mvonthron / README.md
Last active September 19, 2016 21:48
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <deque>
using namespace std;
class Operator
@mvonthron
mvonthron / findInterfaces.c
Last active May 13, 2016 19:20
List and describe available network interfaces
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <linux/wireless.h>
int main(int argc, char **argv)