livingsocial / hiveswarm Goto Github PK
View Code? Open in Web Editor NEWHelpful user defined fuctions / table generating functions for Hive
License: GNU General Public License v3.0
Helpful user defined fuctions / table generating functions for Hive
License: GNU General Public License v3.0
I'm using hive - 0.10.0 and Hadoop 2.0.0. When I try to compile the sources, I get the following error. Am I missing any jars from the classpath? (or) Is this library using a deprecated method?
[javac] InArray.java:11: cannot find symbol
[javac] symbol : class Constants
[javac] location: package org.apache.hadoop.hive.serde
[javac] import org.apache.hadoop.hive.serde.Constants;
In
, the normal distribution we use has mean=0 and σ=1.public class ZTest extends UDF {
private static NormalDistribution distribution = new NormalDistributionImpl(); // mean=0, σ=1
public double pval(double val){
try {
return 2 * (1 - distribution.cumulativeProbability(val));
However, shouldn't we instead be using mean=controlAvg
and σ=controlStddev
?
I'm a stats n00b so I'm probably missing something obvious. Does the criticalValue
calculation normalize the data such that the mean and σ are standard?
In a table holds several rows for one entity (example: a table with several purchases per customer), please create a function that extracts the last x rows for that entity (sorted by date or similar).
The URLDecode udf attempts to execute to_value.set() without instantiating to_value, resulting in a NullPointerException and falling to the catch block where the original input value is returned.
Pull request 10 fixes this issue. #10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.