Skip to content

Commit f9f4e37

Browse files
committed
addess comments
1 parent b89b321 commit f9f4e37

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/index/SupportsIndex.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ public interface SupportsIndex extends CatalogPlugin {
4848
* @throws UnsupportedOperationException If create index is not a supported operation
4949
*/
5050
void createIndex(String indexName,
51-
String indexType,
52-
Identifier table,
53-
FieldReference[] columns,
54-
Map<String, String> properties)
51+
String indexType,
52+
Identifier table,
53+
FieldReference[] columns,
54+
Map<String, String> properties)
5555
throws IndexAlreadyExistsException, UnsupportedOperationException;
5656

5757
/**

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/AlreadyExistException.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ class PartitionsAlreadyExistException(message: String) extends AnalysisException
7979
class FunctionAlreadyExistsException(db: String, func: String)
8080
extends AnalysisException(s"Function '$func' already exists in database '$db'")
8181

82-
class IndexAlreadyExistsException(indexName: String)
83-
extends AnalysisException(s"Index '$indexName' already exists")
82+
class IndexAlreadyExistsException(indexName: String, table: Identifier)
83+
extends AnalysisException(s"Index '$indexName' already exists in table ${table.quoted}")

0 commit comments

Comments
 (0)