You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by "ankitsultana (via GitHub)" <gi...@apache.org> on 2023/03/29 18:12:28 UTC

[GitHub] [pinot] ankitsultana commented on a diff in pull request #10423: [multistage] proper support for column-level null handling

ankitsultana commented on code in PR #10423:
URL: https://github.com/apache/pinot/pull/10423#discussion_r1152320183


##########
pinot-query-planner/src/main/java/org/apache/pinot/query/catalog/PinotTable.java:
##########
@@ -37,16 +37,18 @@
  */
 public class PinotTable extends AbstractTable implements ScannableTable {
   private Schema _schema;
+  private boolean _enableNullSupport;
 
-  public PinotTable(Schema schema) {
+  public PinotTable(Schema schema, boolean enableNullSupport) {
     _schema = schema;
+    _enableNullSupport = enableNullSupport;
   }
 
   @Override
   public RelDataType getRowType(RelDataTypeFactory relDataTypeFactory) {
     Preconditions.checkState(relDataTypeFactory instanceof TypeFactory);
     TypeFactory typeFactory = (TypeFactory) relDataTypeFactory;
-    return typeFactory.createRelDataTypeFromSchema(_schema);
+    return typeFactory.createRelDataTypeFromSchema(_schema, _enableNullSupport);

Review Comment:
   Hmm.. we are essentially setting nullability at Table level right since we are using `PinotTable._enableNullSupport`?



-- 
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: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org