public class HiveGenericUDFInternalInterval
extends org.apache.hadoop.hive.ql.udf.generic.GenericUDF
But the token number is fixed to Hive's parser, which causes the token number different from
the tokens maintained in our ported HiveASTParser
, and thus bring unexpected exception.
So, we port Hive's GenericUDFInternalInterval and adjust the judgement about the type of interval according our own ast token number.
Constructor and Description |
---|
HiveGenericUDFInternalInterval() |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(org.apache.hadoop.hive.ql.udf.generic.GenericUDF.DeferredObject[] arguments) |
String |
getDisplayString(String[] children) |
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector |
initialize(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector[] arguments) |
checkArgGroups, checkArgPrimitive, checkArgsSize, close, configure, copyToNewInstance, flip, getArgOrder, getConstantBooleanValue, getConstantIntValue, getConstantStringValue, getDateValue, getDoubleValue, getFuncName, getIntervalDayTimeValue, getIntervalYearMonthValue, getIntValue, getLongValue, getRequiredFiles, getRequiredJars, getStandardDisplayString, getStandardDisplayString, getStringValue, getTimestampValue, getUdfName, initializeAndFoldConstants, negative, obtainDateConverter, obtainDoubleConverter, obtainIntConverter, obtainLongConverter, obtainStringConverter, obtainTimestampConverter
public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector initialize(org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector[] arguments) throws org.apache.hadoop.hive.ql.exec.UDFArgumentException
initialize
in class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
org.apache.hadoop.hive.ql.exec.UDFArgumentException
public Object evaluate(org.apache.hadoop.hive.ql.udf.generic.GenericUDF.DeferredObject[] arguments) throws org.apache.hadoop.hive.ql.metadata.HiveException
evaluate
in class org.apache.hadoop.hive.ql.udf.generic.GenericUDF
org.apache.hadoop.hive.ql.metadata.HiveException
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.