rdblue commented on a change in pull request #24012: [SPARK-26811][SQL] Add
capabilities to v2.Table
URL: https://github.com/apache/spark/pull/24012#discussion_r265324440
##########
File path: sql/core/src/main/java/org/apache/spark/sql/sources/v2/Table.java
##########
@@ -45,4 +44,9 @@
* empty schema can be returned here.
*/
StructType schema();
+
+ /**
+ * Returns the set of capabilities for this table.
+ */
+ Set<TableCapability> capabilities();
Review comment:
I don't think it's a good idea to use an array when the storage should be a
set, just because it is necessary to call `asJava` when returning it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]