Min-Seok Kim created CALCITE-5712:
-------------------------------------
Summary: FilterableTable with Kotlin coroutine and logback fails.
Key: CALCITE-5712
URL: https://issues.apache.org/jira/browse/CALCITE-5712
Project: Calcite
Issue Type: Bug
Reporter: Min-Seok Kim
The MyFilterableTable class is not functioning properly when used in
conjunction with coroutines (kotest) and logback. The issue can be reproduced
by following the steps outlined in the GitHub repository provided:
[https://github.com/emesday/filterabletable-coroutine/blob/main/src/test/kotlin/MinimalTest.kt]
{code:java}
class MyFilterableTable : AbstractTable(), FilterableTable {
override fun getRowType(typeFactory: RelDataTypeFactory): RelDataType {
return typeFactory.createStructType(
listOf(typeFactory.createSqlType(SqlTypeName.BIGINT),
typeFactory.createSqlType(SqlTypeName.VARCHAR)),
listOf("ID", "NAME")
)
} override fun scan(root: DataContext?, filters: MutableList<RexNode>?):
Enumerable<Array<Any?>> {
return Linq4j.asEnumerable(arrayOf(arrayOf(1L, "John")))
}
}
{code}
Steps to Reproduce:
# Clone the GitHub repository
[https://github.com/emesday/filterabletable-coroutine]
# USE_LOGBACK=true ./gradlew test -i
this executes
--
This message was sent by Atlassian Jira
(v8.20.10#820010)