Hi developer, Please log it in Calcite Jira: https://issues.apache.org/jira/browse/CALCITE <https://issues.apache.org/jira/projects/CALCITE/issues/CALCITE-4502?filter=allopenissues> and also use code reformat when description.
小艾 <854413...@qq.com.invalid> 于2024年5月9日周四 16:30写道: > Version 1.36.0 > When there are two tables : #1 #2 > #1 has field(name is field1,dateType is Timestamp) > #2 has field(name is field2,dateType is also Timestamp) > > > Then will happen the Bug like that: > > > Error while executing SQL "SELECT * from `#1` where `#1`.`Field1` = > (SELECT `#2`.`Field2` from `#2` LIMIT 1)":Error while compiling generated > Java code:public static class Record2_0 implements java.io.serializable { > public boolean f0; > public java.sql.Timestamp f1; > .... > .... > } > > > > > public ...Enumerable bind(... root){ > accumulatorAdders.add(new Function2(){ > public Record2_2 apply(Record2_0,Object[] in){ > ... > acc.f0=true; > final Long input_value = > ....SqlFunctions.toLongOptional(in[0]); > acc.f1 = input_value; > ... > } > ) > } > > > Data type conversion exception, please handle it.