Compile Error with custom Test UDAF from cubert code

8 views
Skip to first unread message

Swapnil Salunkhe

unread,
Jan 11, 2016, 8:33:01 AM1/11/16
to cubert-users

I tried to implement custom test UDAF as specified in below path :

https://github.com/linkedin/Cubert/blob/master/src/test/java/com/linkedin/cubert/operator/TestUDAF.java


I have created the jar, registered that jar and declared the function in cubert script using that UDAF. However, the script fails with below error :

Caused by: PreconditionException [MISC_ERROR] com.comscore.cookiecount.cubert.functions.TestUDAF should implement one of these interfaces: AdditiveCubeAggregate, PartitionedAdditiveAggregate, EasyCubeAggregate
        at com.linkedin.cubert.operator.CubeOperator.createAggregators(CubeOperator.java:641)
        at com.linkedin.cubert.operator.CubeOperator.createOutputSchema(CubeOperator.java:449)
        at com.linkedin.cubert.operator.CubeOperator.getPostCondition(CubeOperator.java:413)
        at com.linkedin.cubert.analyzer.physical.SemanticAnalyzer.getPostCondition(SemanticAnalyzer.java:811)
        at com.linkedin.cubert.analyzer.physical.SemanticAnalyzer.visitOperator(SemanticAnalyzer.java:309)
        ... 9 more
Caused by: PreconditionException [MISC_ERROR] com.myudfs.cubert.functions.
TestUDAF should implement one of these interfaces: AdditiveCubeAggregate, PartitionedAdditiveAggregate, EasyCubeAggregate
        at com.linkedin.cubert.operator.CubeOperator.createAggregators(CubeOperator.java:641)
        at com.linkedin.cubert.operator.CubeOperator.createOutputSchema(CubeOperator.java:449)
        at com.linkedin.cubert.operator.CubeOperator.getPostCondition(CubeOperator.java:413)
        at com.linkedin.cubert.analyzer.physical.SemanticAnalyzer.getPostCondition(SemanticAnalyzer.java:811)
        at com.linkedin.cubert.analyzer.physical.SemanticAnalyzer.visitOperator(SemanticAnalyzer.java:309)
        ... 9 more

Is there something I'm missing in this implementation ?

Thanks,

Swapnil Salunkhe
Reply all
Reply to author
Forward
0 new messages