chrisdennis opened a new pull request, #4263:
URL: https://github.com/apache/calcite/pull/4263

   This test fails due to the impossible cast of byte[] to ByteString in the 
moveNext() method: 
   ```
   public org.apache.calcite.linq4j.Enumerable bind(final 
org.apache.calcite.DataContext root) {
     final org.apache.calcite.linq4j.Enumerable _inputEnumerable = 
org.apache.calcite.linq4j.Linq4j.asEnumerable(((org.apache.calcite.test.schemata.catchall.CatchallSchema)
 ((org.apache.calcite.adapter.java.ReflectiveSchema) 
root.getRootSchema().getSubSchema("s").unwrap(org.apache.calcite.adapter.java.ReflectiveSchema.class)).getTarget()).everyTypes).select(new
 org.apache.calcite.linq4j.function.Function1() {
       public 
org.apache.calcite.test.schemata.catchall.CatchallSchema.EveryType 
apply(org.apache.calcite.test.schemata.catchall.CatchallSchema.EveryType row) {
         return new 
org.apache.calcite.test.schemata.catchall.CatchallSchema.EveryType(
             row.primitiveBoolean,
             row.primitiveByte,
             row.primitiveChar,
             row.primitiveShort,
             row.primitiveInt,
             row.primitiveLong,
             row.primitiveFloat,
             row.primitiveDouble,
             row.wrapperBoolean,
             row.wrapperByte,
             row.wrapperCharacter,
             row.wrapperShort,
             row.wrapperInteger,
             row.wrapperLong,
             row.wrapperFloat,
             row.wrapperDouble,
             row.sqlDate,
             row.sqlTime,
             row.sqlTimestamp,
             row.utilDate,
             row.string,
             row.bigDecimal,
             row.list,
             row.bytes);
       }
       public Object apply(Object row) {
         return apply(
           (org.apache.calcite.test.schemata.catchall.CatchallSchema.EveryType) 
row);
       }
     }
     );
     return new org.apache.calcite.linq4j.AbstractEnumerable(){
         public org.apache.calcite.linq4j.Enumerator enumerator() {
           return new org.apache.calcite.linq4j.Enumerator(){
               public final org.apache.calcite.linq4j.Enumerator 
inputEnumerator = _inputEnumerable.enumerator();
               public void reset() {
                 inputEnumerator.reset();
               }
   
               public boolean moveNext() {
                 while (inputEnumerator.moveNext()) {
                   final byte[] input_value = 
((org.apache.calcite.test.schemata.catchall.CatchallSchema.EveryType) 
inputEnumerator.current()).bytes;
                   final org.apache.calcite.avatica.util.ByteString cast_value 
= input_value == null ? null : (org.apache.calcite.avatica.util.ByteString) 
input_value;
                   final byte[] value_dynamic_param = (byte[]) root.get("?0");
                   final org.apache.calcite.avatica.util.ByteString cast_value0 
= value_dynamic_param == null ? null : 
(org.apache.calcite.avatica.util.ByteString) value_dynamic_param;
                   final Boolean binary_call_value = cast_value == null || 
cast_value0 == null ? null : 
Boolean.valueOf(org.apache.calcite.runtime.SqlFunctions.eq(cast_value, 
cast_value0));
                   if (binary_call_value != null && 
org.apache.calcite.runtime.SqlFunctions.toBoolean(binary_call_value)) {
                     return true;
                   }
                 }
                 return false;
               }
   
               public void close() {
                 inputEnumerator.close();
               }
   
               public Object current() {
                 return 
((org.apache.calcite.test.schemata.catchall.CatchallSchema.EveryType) 
inputEnumerator.current()).primitiveBoolean;
               }
   
             };
         }
   
       };
   }
   
   
   public Class getElementType() {
     return boolean.class;
   }
   ```


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

Reply via email to