cloud-fan commented on code in PR #41070:
URL: https://github.com/apache/spark/pull/41070#discussion_r1187015154


##########
sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/TableCatalog.java:
##########
@@ -199,6 +199,14 @@ default Table createTable(
     return createTable(ident, CatalogV2Util.v2ColumnsToStructType(columns), 
partitions, properties);
   }
 
+  /**
+   * Return whether to reserve schema nullability of query output or forcibly 
use nullable schema
+   * on creating table implicitly, e.g. CTAS/RTAS.
+   */
+  default boolean createTableReserveSchemaNullability() {

Review Comment:
   how about
   ```
   /**
    * If true, mark all the fields of the query schema as nullable when 
executing
    * CREATE/REPLACE TABLE ... AS SELECT ... and creating the table.
    */
   default boolean useNullableQuerySchema
   ```



-- 
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]

Reply via email to