pan3793 commented on code in PR #52741:
URL: https://github.com/apache/spark/pull/52741#discussion_r2464371102
##########
sql/connect/client/jdbc/src/main/scala/org/apache/spark/sql/connect/client/jdbc/SparkConnectDatabaseMetaData.scala:
##########
@@ -112,76 +96,55 @@ class SparkConnectDatabaseMetaData(conn:
SparkConnectConnection) extends Databas
override def getExtraNameCharacters: String = ""
- override def supportsAlterTableWithAddColumn: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsAlterTableWithAddColumn: Boolean = true
- override def supportsAlterTableWithDropColumn: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsAlterTableWithDropColumn: Boolean = true
- override def supportsColumnAliasing: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsColumnAliasing: Boolean = true
- override def nullPlusNonNullIsNull: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def nullPlusNonNullIsNull: Boolean = true
override def supportsConvert: Boolean =
throw new SQLFeatureNotSupportedException
override def supportsConvert(fromType: Int, toType: Int): Boolean =
throw new SQLFeatureNotSupportedException
- override def supportsTableCorrelationNames: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsTableCorrelationNames: Boolean = true
- override def supportsDifferentTableCorrelationNames: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsDifferentTableCorrelationNames: Boolean = false
- override def supportsExpressionsInOrderBy: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsExpressionsInOrderBy: Boolean = true
- override def supportsOrderByUnrelated: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsOrderByUnrelated: Boolean = true
override def supportsGroupBy: Boolean = true
- override def supportsGroupByUnrelated: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsGroupByUnrelated: Boolean = true
- override def supportsGroupByBeyondSelect: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsGroupByBeyondSelect: Boolean = true
- override def supportsLikeEscapeClause: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsLikeEscapeClause: Boolean = true
- override def supportsMultipleResultSets: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsMultipleResultSets: Boolean = false
- override def supportsMultipleTransactions: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsMultipleTransactions: Boolean = false
- override def supportsNonNullableColumns: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsNonNullableColumns: Boolean = true
- override def supportsMinimumSQLGrammar: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsMinimumSQLGrammar: Boolean = true
- override def supportsCoreSQLGrammar: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsCoreSQLGrammar: Boolean = true
- override def supportsExtendedSQLGrammar: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsExtendedSQLGrammar: Boolean = false
- override def supportsANSI92EntryLevelSQL: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsANSI92EntryLevelSQL: Boolean = true
- override def supportsANSI92IntermediateSQL: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsANSI92IntermediateSQL(): Boolean = false
- override def supportsANSI92FullSQL: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsANSI92FullSQL: Boolean = false
- override def supportsIntegrityEnhancementFacility: Boolean =
- throw new SQLFeatureNotSupportedException
+ override def supportsIntegrityEnhancementFacility: Boolean = false
override def supportsOuterJoins: Boolean = true
Review Comment:
Databricks JDBC v1.0.10-oss returns `false`, it's obviously not the case for
Spark SQL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]