Class SnowflakeQueryStringBuilder
- java.lang.Object
-
- com.amazonaws.athena.connectors.jdbc.manager.JdbcSplitQueryBuilder
-
- com.amazonaws.athena.connectors.snowflake.SnowflakeQueryStringBuilder
-
public class SnowflakeQueryStringBuilder extends JdbcSplitQueryBuilder
ExtendsJdbcSplitQueryBuilderand implements MySql specific SQL clauses for split. MySql provides named partitions which can be used in a FROM clause.
-
-
Field Summary
-
Fields inherited from class com.amazonaws.athena.connectors.jdbc.manager.JdbcSplitQueryBuilder
emptyString
-
-
Constructor Summary
Constructors Constructor Description SnowflakeQueryStringBuilder(String quoteCharacters, FederationExpressionParser federationExpressionParser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBaseExportSQLString(String catalog, String schema, String table, org.apache.arrow.vector.types.pojo.Schema tableSchema, Constraints constraints)protected StringgetFromClauseWithSplit(String catalog, String schema, String table, Split split)protected List<String>getPartitionWhereClauses(Split split)protected Stringquote(String name)protected StringsingleQuote(String name)-
Methods inherited from class com.amazonaws.athena.connectors.jdbc.manager.JdbcSplitQueryBuilder
appendLimitOffset, appendLimitOffset, appendLimitOffsetWithValue, buildSql, buildSQLStringLiteral, extractOrderByClause, getSqlDialect, prepareStatementWithCalciteSql, prepareStatementWithSql, toPredicate
-
-
-
-
Constructor Detail
-
SnowflakeQueryStringBuilder
public SnowflakeQueryStringBuilder(String quoteCharacters, FederationExpressionParser federationExpressionParser)
-
-
Method Detail
-
getFromClauseWithSplit
protected String getFromClauseWithSplit(String catalog, String schema, String table, Split split)
- Specified by:
getFromClauseWithSplitin classJdbcSplitQueryBuilder
-
getPartitionWhereClauses
protected List<String> getPartitionWhereClauses(Split split)
- Specified by:
getPartitionWhereClausesin classJdbcSplitQueryBuilder
-
getBaseExportSQLString
public String getBaseExportSQLString(String catalog, String schema, String table, org.apache.arrow.vector.types.pojo.Schema tableSchema, Constraints constraints) throws SQLException
- Throws:
SQLException
-
quote
protected String quote(String name)
- Overrides:
quotein classJdbcSplitQueryBuilder
-
-