Class BigQueryFederationExpressionParser
- java.lang.Object
-
- com.amazonaws.athena.connectors.jdbc.manager.FederationExpressionParser
-
- com.amazonaws.athena.connectors.google.bigquery.BigQueryFederationExpressionParser
-
public class BigQueryFederationExpressionParser extends FederationExpressionParser
Based on com.amazonaws.athena.connectors.jdbc.manager.JdbcFederationExpressionParser class
-
-
Constructor Summary
Constructors Constructor Description BigQueryFederationExpressionParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
mapFunctionToDataSourceSyntax(FunctionName functionName, org.apache.arrow.vector.types.pojo.ArrowType type, List<String> arguments)
Each datasource has different syntax for various operations, quotes, etc.List<String>
parseComplexExpressions(List<org.apache.arrow.vector.types.pojo.Field> columns, Constraints constraints)
String
parseConstantExpression(ConstantExpression constantExpression)
String
parseFunctionCallExpression(FunctionCallExpression functionCallExpression)
This is a recursive function, as function calls can have arguments which, themselves, are function calls.String
writeArrayConstructorClause(org.apache.arrow.vector.types.pojo.ArrowType type, List<String> arguments)
-
Methods inherited from class com.amazonaws.athena.connectors.jdbc.manager.FederationExpressionParser
parseComplexExpressions, parseConstantExpression, parseFunctionCallExpression, parseVariableExpression
-
-
-
-
Method Detail
-
writeArrayConstructorClause
public String writeArrayConstructorClause(org.apache.arrow.vector.types.pojo.ArrowType type, List<String> arguments)
-
parseComplexExpressions
public List<String> parseComplexExpressions(List<org.apache.arrow.vector.types.pojo.Field> columns, Constraints constraints)
-
parseFunctionCallExpression
public String parseFunctionCallExpression(FunctionCallExpression functionCallExpression)
This is a recursive function, as function calls can have arguments which, themselves, are function calls.- Parameters:
functionCallExpression
-- Returns:
-
parseConstantExpression
public String parseConstantExpression(ConstantExpression constantExpression)
-
mapFunctionToDataSourceSyntax
public String mapFunctionToDataSourceSyntax(FunctionName functionName, org.apache.arrow.vector.types.pojo.ArrowType type, List<String> arguments)
Description copied from class:FederationExpressionParser
Each datasource has different syntax for various operations, quotes, etc. This is the only method a subclass to implement, and otherwise will just invoke parseComplexExpressions.- Specified by:
mapFunctionToDataSourceSyntax
in classFederationExpressionParser
-
-