code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
public void addDynamicFunctionToTheRegistry(String functionClassName, Function function) { if (!dynamicFunctionRegistry.contains(functionClassName)) { dynamicFunctionRegistry.put(functionClassName, function); } }
Tries to resolve function name as Dali function name using the provided Hive table catalog information. This uses table parameters 'function' property to resolve the function name to the implementing class. @param originalViewTextFunctionName original function name in view text to resolve @param table Hive metastore ta...
addDynamicFunctionToTheRegistry
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
BSD-2-Clause
private @Nonnull Collection<Function> resolveDaliFunctionDynamically(String originalViewTextFunctionName, String functionClassName, HiveTable hiveTable, int numOfOperands) { if (dynamicFunctionRegistry.contains(functionClassName)) { return ImmutableList.of(dynamicFunctionRegistry.get(originalViewTextFun...
Tries to resolve function name as Dali function name using the provided Hive table catalog information. This uses table parameters 'function' property to resolve the function name to the implementing class. @param originalViewTextFunctionName original function name in view text to resolve @param table Hive metastore ta...
resolveDaliFunctionDynamically
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
BSD-2-Clause
private @Nonnull Function unresolvedFunction(String functionName) { SqlIdentifier funcIdentifier = new SqlIdentifier(ImmutableList.of(functionName), ZERO); return new Function(functionName, new SqlUnresolvedFunction(funcIdentifier, null, null, null, null, SqlFunctionCategory.USER_DEFINED_FUNCTION)); }
Tries to resolve function name as Dali function name using the provided Hive table catalog information. This uses table parameters 'function' property to resolve the function name to the implementing class. @param originalViewTextFunctionName original function name in view text to resolve @param table Hive metastore ta...
unresolvedFunction
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
BSD-2-Clause
private @Nonnull SqlOperandTypeChecker createSqlOperandTypeChecker(int numOfOperands) { List<SqlTypeFamily> families = new ArrayList<>(); for (int i = 0; i < numOfOperands; i++) { families.add(SqlTypeFamily.ANY); } SqlOperandTypeChecker sqlOperandTypeChecker = family(families); return sqlOper...
Tries to resolve function name as Dali function name using the provided Hive table catalog information. This uses table parameters 'function' property to resolve the function name to the implementing class. @param originalViewTextFunctionName original function name in view text to resolve @param table Hive metastore ta...
createSqlOperandTypeChecker
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
BSD-2-Clause
private String removeVersioningPrefix(String className) { if (className != null && !className.isEmpty()) { int firstDotIndex = className.indexOf('.'); if (firstDotIndex != -1) { String prefix = className.substring(0, firstDotIndex); if (prefix.matches(VERSIONED_UDF_CLASS_NAME_PREFIX)) { ...
Removes the versioning prefix from a given UDF class name if it is present. A class name is considered versioned if the prefix before the first dot follows {@link HiveFunctionResolver#VERSIONED_UDF_CLASS_NAME_PREFIX} format
removeVersioningPrefix
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveFunctionResolver.java
BSD-2-Clause
private ObjectInspector getObjectInspector(RelDataType relDataType) { TypeInfo typeInfo = TypeConverter.convert(relDataType); return TypeInfoUtils.getStandardJavaObjectInspectorFromTypeInfo(typeInfo); }
This method converts RelDataType to ObjectInspector @param relDataType RelDataType to convert to ObjectInspector @return converted ObjectInspector based on input RelDataType
getObjectInspector
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
BSD-2-Clause
private RelDataType getRelDataType(ObjectInspector hiveObjectInspector, RelDataTypeFactory relDataTypeFactory) { TypeInfo typeInfo = TypeInfoUtils.getTypeInfoFromObjectInspector(hiveObjectInspector); return TypeConverter.convert(typeInfo, relDataTypeFactory); }
This method converts ObjectInspector to RelDataType @param hiveObjectInspector ObjectInspector to convert to RelDataType @param relDataTypeFactory RelDataTypeFactory used during the conversion @return converted RelDataType based on input ObjectInspector
getRelDataType
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
BSD-2-Clause
private URLClassLoader getUdfClassLoader() { if (_udfClassLoader == null) { URL[] urls = _udfDependencies.stream() .flatMap(udfDependency -> _artifactsResolver.resolve(_udfClassName, udfDependency).stream()) .map(file -> url(file.toURI())).toArray(URL[]::new); _udfClassLoader = new ...
This method converts ObjectInspector to RelDataType @param hiveObjectInspector ObjectInspector to convert to RelDataType @param relDataTypeFactory RelDataTypeFactory used during the conversion @return converted RelDataType based on input ObjectInspector
getUdfClassLoader
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
BSD-2-Clause
private Class getDynamicallyLoadedUdfClass() throws ClassNotFoundException { try { return Class.forName(_udfClassName, true, getUdfClassLoader()); } catch (NoClassDefFoundError error) { if (error.getMessage().contains("GenericUDF")) { // If GenericUDF class could not be found, add `hive-exec...
This method converts ObjectInspector to RelDataType @param hiveObjectInspector ObjectInspector to convert to RelDataType @param relDataTypeFactory RelDataTypeFactory used during the conversion @return converted RelDataType based on input ObjectInspector
getDynamicallyLoadedUdfClass
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
BSD-2-Clause
private Class getDynamicallyLoadedObjectInspectorArrayClass() throws ClassNotFoundException { return Class.forName("[Lorg.apache.hadoop.hive.serde2.objectinspector.ObjectInspector;", true, getUdfClassLoader()); }
This method converts ObjectInspector to RelDataType @param hiveObjectInspector ObjectInspector to convert to RelDataType @param relDataTypeFactory RelDataTypeFactory used during the conversion @return converted RelDataType based on input ObjectInspector
getDynamicallyLoadedObjectInspectorArrayClass
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
BSD-2-Clause
private Object getDynamicallyLoadedObjectInspectors(ObjectInspector[] ois) { try { Class objectInspectorClass = Class.forName("org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector", true, getUdfClassLoader()); Object objectInspectorArray = Array.newInstance(objectInspectorClass, ois.l...
This method converts ObjectInspector to RelDataType @param hiveObjectInspector ObjectInspector to convert to RelDataType @param relDataTypeFactory RelDataTypeFactory used during the conversion @return converted RelDataType based on input ObjectInspector
getDynamicallyLoadedObjectInspectors
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
BSD-2-Clause
private Object getDynamicallyLoadedObjectInspector(String typeName) { try { Class typeInfoUtilsClass = Class.forName("org.apache.hadoop.hive.serde2.typeinfo.TypeInfoUtils", true, getUdfClassLoader()); Class typeInfoClass = Class.forName("org.apache.hadoop.hive.serde2.typeinfo.TypeInfo", true, ...
This method converts ObjectInspector to RelDataType @param hiveObjectInspector ObjectInspector to convert to RelDataType @param relDataTypeFactory RelDataTypeFactory used during the conversion @return converted RelDataType based on input ObjectInspector
getDynamicallyLoadedObjectInspector
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
BSD-2-Clause
private ObjectInspector getContextObjectInspector(Object oi) { try { Class objectInspectorClass = Class.forName("org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector", true, getUdfClassLoader()); Class typeInfoUtilsClass = Class.forName("org.apache.hadoop.hive.serde2.typeinf...
This method converts ObjectInspector to RelDataType @param hiveObjectInspector ObjectInspector to convert to RelDataType @param relDataTypeFactory RelDataTypeFactory used during the conversion @return converted RelDataType based on input ObjectInspector
getContextObjectInspector
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
BSD-2-Clause
private static URL url(URI uri) { try { return uri.toURL(); } catch (MalformedURLException e) { throw new IllegalArgumentException("Malformed URL: " + uri, e); } }
This method converts ObjectInspector to RelDataType @param hiveObjectInspector ObjectInspector to convert to RelDataType @param relDataTypeFactory RelDataTypeFactory used during the conversion @return converted RelDataType based on input ObjectInspector
url
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveGenericUDFReturnTypeInference.java
BSD-2-Clause
@Override public boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure) { RelDataType operandType = callBinding.getOperandType(0); return operandType instanceof ArraySqlType; }
Calcite operator representation for Hive posexplode function. {@code posexplode} supports single array as argument and behaves like explode for arrays, but includes the position of items in the original array
checkOperandTypes
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HivePosExplodeOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HivePosExplodeOperator.java
BSD-2-Clause
@Override public SqlOperandCountRange getOperandCountRange() { return SqlOperandCountRanges.of(1); }
Calcite operator representation for Hive posexplode function. {@code posexplode} supports single array as argument and behaves like explode for arrays, but includes the position of items in the original array
getOperandCountRange
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HivePosExplodeOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HivePosExplodeOperator.java
BSD-2-Clause
@Override public RelDataType inferReturnType(SqlOperatorBinding opBinding) { RelDataType operandType = opBinding.getOperandType(0); final RelDataTypeFactory.Builder builder = opBinding.getTypeFactory().builder(); builder.add(ARRAY_ELEMENT_VAL_NAME, operandType.getComponentType()); builder.add(ARRAY_EL...
Calcite operator representation for Hive posexplode function. {@code posexplode} supports single array as argument and behaves like explode for arrays, but includes the position of items in the original array
inferReturnType
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HivePosExplodeOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HivePosExplodeOperator.java
BSD-2-Clause
@Override public boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure) { return callBinding.getOperandType(0).getSqlTypeName() == SqlTypeName.VARCHAR && callBinding.getOperandType(1).getSqlTypeName() == SqlTypeName.VARCHAR; }
Calcite operator representation for Hive reflect function. reflect(class,method[,arg1[,arg2..]]) calls method with reflection.
checkOperandTypes
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveReflectOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveReflectOperator.java
BSD-2-Clause
@Override public SqlOperandCountRange getOperandCountRange() { return SqlOperandCountRanges.from(2); }
Calcite operator representation for Hive reflect function. reflect(class,method[,arg1[,arg2..]]) calls method with reflection.
getOperandCountRange
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveReflectOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveReflectOperator.java
BSD-2-Clause
@Override public RelDataType inferReturnType(SqlOperatorBinding sqlOperatorBinding) { int operandCount = sqlOperatorBinding.getOperandCount(); ObjectInspector[] inputObjectInspectors = new ObjectInspector[operandCount]; // Since `reflect` is implemented as a GenericUDF, we can use `HiveGenericUDFReturnTyp...
Calcite operator representation for Hive reflect function. reflect(class,method[,arg1[,arg2..]]) calls method with reflection.
inferReturnType
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveReflectOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveReflectOperator.java
BSD-2-Clause
public boolean isNegated() { return negated; }
Creates an operator to represent Hive's RLIKE operator as calcite operator @param name Operator name @param negated Whether this is 'NOT LIKE'
isNegated
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveRLikeOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveRLikeOperator.java
BSD-2-Clause
public SqlOperandCountRange getOperandCountRange() { return SqlOperandCountRanges.of(2); }
Creates an operator to represent Hive's RLIKE operator as calcite operator @param name Operator name @param negated Whether this is 'NOT LIKE'
getOperandCountRange
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveRLikeOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveRLikeOperator.java
BSD-2-Clause
public boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure) { return OperandTypes.STRING_SAME_SAME.checkOperandTypes(callBinding, throwOnFailure) && SqlTypeUtil.isCharTypeComparable(callBinding, callBinding.operands(), throwOnFailure); }
Creates an operator to represent Hive's RLIKE operator as calcite operator @param name Operator name @param negated Whether this is 'NOT LIKE'
checkOperandTypes
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveRLikeOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveRLikeOperator.java
BSD-2-Clause
public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) { final SqlWriter.Frame frame = writer.startList("", ""); call.operand(0).unparse(writer, getLeftPrec(), getRightPrec()); writer.sep(getName()); call.operand(1).unparse(writer, getLeftPrec(), getRightPrec()); writer.en...
Creates an operator to represent Hive's RLIKE operator as calcite operator @param name Operator name @param negated Whether this is 'NOT LIKE'
unparse
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveRLikeOperator.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/HiveRLikeOperator.java
BSD-2-Clause
public int getOrdinal() { return ordinal; }
Custom implementation of {@link OrdinalReturnTypeInference} which allows inferring the return type based on the ordinal of a given input argument and also exposes the ordinal.
getOrdinal
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/OrdinalReturnTypeInferenceV2.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/OrdinalReturnTypeInferenceV2.java
BSD-2-Clause
@Override public boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure) { return family(SqlTypeFamily.STRING, SqlTypeFamily.ARRAY).checkOperandTypes(callBinding, throwOnFailure) || new SameOperandTypeChecker(-1).checkOperandTypes(callBinding, throwOnFailure); }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
checkOperandTypes
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public SqlOperandCountRange getOperandCountRange() { return SqlOperandCountRanges.from(2); }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
getOperandCountRange
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public String getAllowedSignatures(SqlOperator op, String opName) { return opName + "(STRING, ARRAY|STRING, ...)"; }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
getAllowedSignatures
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public Consistency getConsistency() { return Consistency.NONE; }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
getConsistency
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public boolean isOptional(int i) { return false; }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
isOptional
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure) { return true; }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
checkOperandTypes
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public SqlOperandCountRange getOperandCountRange() { return SqlOperandCountRanges.from(1); }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
getOperandCountRange
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public String getAllowedSignatures(SqlOperator op, String opName) { return opName + "(ANY, ...)"; }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
getAllowedSignatures
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public Consistency getConsistency() { return Consistency.NONE; }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
getConsistency
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public boolean isOptional(int i) { return false; }
Static implementation of HiveFunctionRegistry that has hard-coded list of all function names. This has a major disadvantage that the user defined functions are not available to the registry without manually adding the entry here and uploading a new version of library. TODO: Provide function registry catalog Note that ...
isOptional
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
@Override public Collection<Function> lookup(String functionName) { return FUNCTION_MAP.get(functionName.toLowerCase()); }
Returns a list of functions matching given name case-insensitively. This returns empty list if the function name is not found. @param functionName function name to match @return list of matching HiveFunctions or empty collection.
lookup
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
public ImmutableMultimap<String, Function> getRegistry() { return ImmutableMultimap.copyOf(FUNCTION_MAP); }
@return immutable copy of internal function registry
getRegistry
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
private static void addFunctionEntry(String functionName, SqlOperator operator) { FUNCTION_MAP.put(functionName.toLowerCase(), new Function(functionName, operator)); }
Adds the function to registry, the key is lowercase functionName to make lookup case-insensitive.
addFunctionEntry
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
public static void createAddUserDefinedFunction(String functionName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeChecker operandTypeChecker) { addFunctionEntry(functionName, createCalciteUDF(functionName, returnTypeInference, operandTypeChecker)); }
Adds the function to registry, the key is lowercase functionName to make lookup case-insensitive.
createAddUserDefinedFunction
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
public static void createAddUserDefinedFunction(String functionName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeChecker operandTypeChecker, String dependency) { String depPrefix = dependency.substring(0, 6).toLowerCase(); // TODO: dependency not used. Consider removing it (maybe this metho...
Adds the function to registry, the key is lowercase functionName to make lookup case-insensitive.
createAddUserDefinedFunction
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
public static void createAddUserDefinedTableFunction(String functionName, ImmutableList<String> returnFieldNames, ImmutableList<?> returnFieldTypes, SqlOperandTypeChecker operandTypeChecker) { // The type of returnFieldTypes can only be ImmutableList<SqlTypeName> or ImmutableList<SqlReturnTypeInference> /...
Adds the generic UDTF, which is almost same as how we register for LinkedIn UDFs except that we need to register the return field names in `UDTF_RETURN_FIELD_NAME_MAP`
createAddUserDefinedTableFunction
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
private static SqlOperator createCalciteUDF(String functionName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, SqlOperandTypeChecker operandTypeChecker, List<RelDataType> paramTypes) { return new SqlUserDefinedFunction(new SqlIdentifier(functionName, SqlParser...
Adds the generic UDTF, which is almost same as how we register for LinkedIn UDFs except that we need to register the return field names in `UDTF_RETURN_FIELD_NAME_MAP`
createCalciteUDF
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
private static SqlOperator createCalciteUDF(String functionName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeChecker operandTypeChecker) { return new SqlUserDefinedFunction(new SqlIdentifier(functionName, SqlParserPos.ZERO), returnTypeInference, null, operandTypeChecker, null, null); }
Adds the generic UDTF, which is almost same as how we register for LinkedIn UDFs except that we need to register the return field names in `UDTF_RETURN_FIELD_NAME_MAP`
createCalciteUDF
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
private static SqlOperator createCalciteUDF(String functionName, SqlReturnTypeInference returnTypeInference) { return createCalciteUDF(functionName, returnTypeInference, null); }
Adds the generic UDTF, which is almost same as how we register for LinkedIn UDFs except that we need to register the return field names in `UDTF_RETURN_FIELD_NAME_MAP`
createCalciteUDF
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
private static void addCastOperatorEntries() { String[] castFunctions = { "tok_boolean", "tok_int", "tok_string", "tok_double", "tok_float", "tok_bigint", "tok_tinyint", "tok_smallint", "tok_char", "tok_decimal", "tok_varchar", "tok_binary", "tok_date", "tok_timestamp" }; for (String f : castFunctions) ...
Adds the generic UDTF, which is almost same as how we register for LinkedIn UDFs except that we need to register the return field names in `UDTF_RETURN_FIELD_NAME_MAP`
addCastOperatorEntries
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
private static Predicate<Integer> optionalOrd(final int ordinal) { return input -> input == ordinal; }
Returns a predicate to test if ordinal parameter is optional @param ordinal parameter ordinal number @return predicate to test if the parameter is optional
optionalOrd
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
private static Predicate<Integer> optionalOrd(final List<Integer> ordinals) { return ordinals::contains; }
Returns a predicate to test if ordinal parameter is optional @param ordinal parameter ordinal number @return predicate to test if the parameter is optional
optionalOrd
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/StaticHiveFunctionRegistry.java
BSD-2-Clause
public List<String> getIvyDependencies() { return ivyDependencies; }
Class that represents Dali versioned UDFs
getIvyDependencies
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
BSD-2-Clause
public String getOriginalViewTextFunctionName() { return originalViewTextFunctionName; }
Class that represents Dali versioned UDFs
getOriginalViewTextFunctionName
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
BSD-2-Clause
public String getShortFunctionName() { // getName() returns the unversioned function class, which we use to identify the type inference. // It's just a convention and other naming approaches are valid as long as they identify the type inference. String unversionedClassName = getName(); if (SHORT_FUNC_NA...
Retrieves the short function name based on the class name. If the class name is found in the predefined {@link VersionedSqlUserDefinedFunction#SHORT_FUNC_NAME_MAP}, the corresponding short name is returned. Otherwise, the method converts the last segment of the class name from UPPER_CAMEL to LOWER_UNDERSCORE format to ...
getShortFunctionName
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
BSD-2-Clause
public String getFunctionClassName() { return functionClassName; }
Retrieves the short function name based on the class name. If the class name is found in the predefined {@link VersionedSqlUserDefinedFunction#SHORT_FUNC_NAME_MAP}, the corresponding short name is returned. Otherwise, the method converts the last segment of the class name from UPPER_CAMEL to LOWER_UNDERSCORE format to ...
getFunctionClassName
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
BSD-2-Clause
@Override public RelDataType deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call) { RelDataType relDataType = super.deriveType(validator, scope, call); ((SqlBasicCall) call).setOperator(new VersionedSqlUserDefinedFunction((SqlUserDefinedFunction) (call.getOperator()), ivyDependenc...
Retrieves the short function name based on the class name. If the class name is found in the predefined {@link VersionedSqlUserDefinedFunction#SHORT_FUNC_NAME_MAP}, the corresponding short name is returned. Otherwise, the method converts the last segment of the class name from UPPER_CAMEL to LOWER_UNDERSCORE format to ...
deriveType
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/functions/VersionedSqlUserDefinedFunction.java
BSD-2-Clause
protected R visit(ASTNode node, C ctx) { if (node == null) { return null; } switch (node.getType()) { case 0: return visitNil(node, ctx); case HiveParser.TOK_SUBQUERY: return visitSubquery(node, ctx); case HiveParser.TOK_SUBQUERY_EXPR: return visitSubqueryE...
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visit
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitKeywordLiteral(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitKeywordLiteral
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected List<R> visitChildren(ASTNode node, C ctx) { Preconditions.checkNotNull(node, ctx); Preconditions.checkNotNull(ctx); if (node.getChildren() == null) { return null; } return visitChildren(node.getChildren(), ctx); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitChildren
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected List<R> visitChildren(List<Node> nodes, C ctx) { return nodes.stream().map(n -> visit((ASTNode) n, ctx)).collect(Collectors.toList()); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitChildren
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitOptionalChildByType(ASTNode node, C ctx, int nodeType) { List<R> results = visitChildrenByType(node, ctx, nodeType); if (results == null || results.isEmpty()) { return null; } if (results.size() > 1) { throw new UnexpectedASTChildCountException(node, nodeType, 1, results.siz...
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitOptionalChildByType
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected List<R> visitChildrenByType(ASTNode node, C ctx, int nodeType) { Preconditions.checkNotNull(node, ctx); Preconditions.checkNotNull(ctx); if (node.getChildren() == null) { return null; } return visitChildrenByType(node.getChildren(), ctx, nodeType); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitChildrenByType
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected List<R> visitChildrenByType(List<Node> nodes, C ctx, int nodeType) { return nodes.stream().filter(node -> ((ASTNode) node).getType() == nodeType).map(n -> visit((ASTNode) n, ctx)) .collect(Collectors.toList()); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitChildrenByType
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitTabAlias(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitTabAlias
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitLateralView(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitLateralView
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitLateralViewOuter(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitLateralViewOuter
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitLeftSemiJoin(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitLeftSemiJoin
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitCrossJoin(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitCrossJoin
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitFullOuterJoin(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitFullOuterJoin
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitRightOuterJoin(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitRightOuterJoin
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitJoin(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitJoin
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitLeftOuterJoin(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitLeftOuterJoin
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitFalse(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitFalse
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitTrue(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitTrue
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitNullToken(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitNullToken
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitLimit(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitLimit
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitUnion(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitUnion
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitNumber(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitNumber
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitAllColRef(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitAllColRef
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitHaving(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitHaving
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitWhere(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitWhere
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitSortColNameDesc(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitSortColNameDesc
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitSortColNameAsc(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitSortColNameAsc
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitOrderBy(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitOrderBy
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitGroupBy(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitGroupBy
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitOperator(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitOperator
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitDotOperator(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitDotOperator
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitLParen(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitLParen
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitFunctionStar(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitFunctionStar
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitFunctionDistinct(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitFunctionDistinct
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitFunction(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitFunction
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitSelectExpr(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitSelectExpr
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitSelectDistinct(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitSelectDistinct
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitSelect(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitSelect
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitTabRefNode(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitTabRefNode
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitTabnameNode(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitTabnameNode
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitSubqueryOp(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitSubqueryOp
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitSubqueryExpr(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitSubqueryExpr
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitSubquery(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitSubquery
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitFrom(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitFrom
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitIdentifier(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitIdentifier
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitStringLiteral(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitStringLiteral
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitBigintLiteral(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitBigintLiteral
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause
protected R visitQueryNode(ASTNode node, C ctx) { return visitChildren(node, ctx).get(0); }
Provides a AST visitor functionality by calling appropriately named visitor method based on node type. We need to provide this because Hive AST object model does not provide properly typed nodes accepting visitors. @param node hive parse tree node to visit @param ctx abstract context passed to visitor methods @return...
visitQueryNode
java
linkedin/coral
coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
https://github.com/linkedin/coral/blob/master/coral-hive/src/main/java/com/linkedin/coral/hive/hive2rel/parsetree/AbstractASTVisitor.java
BSD-2-Clause