class TrinoDialect extends JdbcDialect
Custom JDBC dialect for Trino.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TrinoDialect
- JdbcDialect
- Logging
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new TrinoDialect()
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
alterTable(tableName: String, changes: Seq[TableChange], dbMajorVersion: Int): Array[String]
- Definition Classes
- JdbcDialect
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
beforeFetch(connection: Connection, properties: Map[String, String]): Unit
- Definition Classes
- JdbcDialect
-
def
canHandle(url: String): Boolean
Checks if this dialect can handle the provided JDBC URL.
Checks if this dialect can handle the provided JDBC URL.
- url
The JDBC URL.
- returns
true
if this dialect can handle the URL,false
otherwise.
- Definition Classes
- TrinoDialect → JdbcDialect
-
def
classifyException(message: String, e: Throwable): AnalysisException
- Definition Classes
- JdbcDialect
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compileAggregate(aggFunction: AggregateFunc): Option[String]
- Definition Classes
- JdbcDialect
- Annotations
- @Since( "3.3.0" )
-
def
compileExpression(expr: Expression): Option[String]
- Definition Classes
- JdbcDialect
- Annotations
- @Since( "3.3.0" )
-
def
compileValue(value: Any): Any
- Definition Classes
- JdbcDialect
- Annotations
- @Since( "2.3.0" )
-
def
createConnectionFactory(options: JDBCOptions): (Int) ⇒ Connection
- Definition Classes
- JdbcDialect
- Annotations
- @Since( "3.3.0" )
-
def
createIndex(indexName: String, tableName: String, columns: Array[NamedReference], columnsProperties: Map[NamedReference, Map[String, String]], properties: Map[String, String]): String
- Definition Classes
- JdbcDialect
-
def
createSchema(statement: Statement, schema: String, comment: String): Unit
- Definition Classes
- JdbcDialect
-
def
dropIndex(indexName: String, tableName: String): String
- Definition Classes
- JdbcDialect
-
def
dropSchema(schema: String, cascade: Boolean): String
- Definition Classes
- JdbcDialect
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
escapeSql(value: String): String
- Attributes
- protected[jdbc]
- Definition Classes
- JdbcDialect
- Annotations
- @Since( "2.3.0" )
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
getAddColumnQuery(tableName: String, columnName: String, dataType: String): String
- Definition Classes
- JdbcDialect
-
def
getCatalystType(sqlType: Int, typeName: String, size: Int, md: MetadataBuilder): Option[DataType]
Retrieves the Catalyst type based on the provided SQL type and metadata.
Retrieves the Catalyst type based on the provided SQL type and metadata.
- sqlType
The SQL type.
- typeName
The type name.
- size
The size.
- md
The metadata builder.
- returns
An option containing the Catalyst data type, or
None
if the type is not supported.
- Definition Classes
- TrinoDialect → JdbcDialect
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDeleteColumnQuery(tableName: String, columnName: String): String
- Definition Classes
- JdbcDialect
-
def
getJDBCType(dt: DataType): Option[JdbcType]
- Definition Classes
- JdbcDialect
-
def
getLimitClause(limit: Integer): String
- Definition Classes
- JdbcDialect
-
def
getRenameColumnQuery(tableName: String, columnName: String, newName: String, dbMajorVersion: Int): String
- Definition Classes
- JdbcDialect
-
def
getSchemaCommentQuery(schema: String, comment: String): String
- Definition Classes
- JdbcDialect
-
def
getSchemaQuery(table: String): String
- Definition Classes
- JdbcDialect
- Annotations
- @Since( "2.1.0" )
-
def
getTableCommentQuery(table: String, comment: String): String
- Definition Classes
- JdbcDialect
-
def
getTableExistsQuery(table: String): String
- Definition Classes
- JdbcDialect
-
def
getTableSample(sample: TableSampleInfo): String
- Definition Classes
- JdbcDialect
-
def
getTruncateQuery(table: String, cascade: Option[Boolean]): String
- Definition Classes
- JdbcDialect
- Annotations
- @Since( "2.4.0" )
-
def
getTruncateQuery(table: String): String
- Definition Classes
- JdbcDialect
- Annotations
- @Since( "2.3.0" )
-
def
getUpdateColumnNullabilityQuery(tableName: String, columnName: String, isNullable: Boolean): String
- Definition Classes
- JdbcDialect
-
def
getUpdateColumnTypeQuery(tableName: String, columnName: String, newDataType: String): String
- Definition Classes
- JdbcDialect
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
indexExists(conn: Connection, indexName: String, tableName: String, options: JDBCOptions): Boolean
- Definition Classes
- JdbcDialect
-
def
initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
initializeLogIfNecessary(isInterpreter: Boolean): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
isCascadingTruncateTable(): Option[Boolean]
- Definition Classes
- JdbcDialect
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isSupportedFunction(funcName: String): Boolean
- Definition Classes
- JdbcDialect
- Annotations
- @Since( "3.3.0" )
-
def
isTraceEnabled(): Boolean
- Attributes
- protected
- Definition Classes
- Logging
-
def
listIndexes(conn: Connection, tableName: String, options: JDBCOptions): Array[TableIndex]
- Definition Classes
- JdbcDialect
-
def
listSchemas(conn: Connection, options: JDBCOptions): Array[Array[String]]
- Definition Classes
- JdbcDialect
-
def
log: Logger
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logDebug(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logError(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logInfo(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logName: String
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logTrace(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String, throwable: Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
def
logWarning(msg: ⇒ String): Unit
- Attributes
- protected
- Definition Classes
- Logging
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
quoteIdentifier(colName: String): String
- Definition Classes
- JdbcDialect
-
def
removeSchemaCommentQuery(schema: String): String
- Definition Classes
- JdbcDialect
-
def
renameTable(oldTable: String, newTable: String): String
- Definition Classes
- JdbcDialect
-
def
schemasExists(conn: Connection, options: JDBCOptions, schema: String): Boolean
- Definition Classes
- JdbcDialect
-
def
supportsTableSample: Boolean
- Definition Classes
- JdbcDialect
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()