huleilei commented on code in PR #38007:
URL: https://github.com/apache/spark/pull/38007#discussion_r981984584
##########
sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCV2Suite.scala:
##########
@@ -2635,6 +2635,10 @@ class JDBCV2Suite extends QueryTest with
SharedSparkSession with ExplainSuiteHel
val tableIndex = indexes2.head
assert(tableIndex.indexName() == "people_index")
+
+ val df = sql(s"SHOW INDEX ON TABLE h2.test.people")
+ checkAnswer(df, Seq(Row("people_index", "INDEX", Array("ID"), Map(),
Map())))
Review Comment:
The result about `SHOW INDEX`is :
```
+--------------+----------+----------+-----------------+----------+
| Index Name|Index Type| Columns|Column Properties|Properties|
+--------------+----------+----------+-----------------+----------+
|people_index_1| INDEX| [ID]| {}| {}|
+--------------+----------+----------+-----------------+----------+
```
Because in h2database, properties in `CREATE INDEX ` is not supported. So
the `columnsProperties` and `properties` are empty.
--
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]