Hello Everyone,
We are using 3 nodes Dremio cluster (2 slaves + 1 master) and we have configured Elasticsearch(v6.8) as one of the data sources.
we have below index mapping in ES,
{ test-alias:{
index-1:{
source:{
type:keyword
}
},
index-2:{
source:{
type:keyword
}
},
index-2:{
source:{
type:keyword
}
}
}
while executing select * from test-alias we get proper results and where as sometimes we face below exception,
(org.apache.calcite.runtime.CalciteContextException) From line 26, column 19 to line 26, column 24: Column ‘source’ not found in any table
sun.reflect.GeneratedConstructorAccessor264.newInstance():-1
sun.reflect.DelegatingConstructorAccessorImpl.newInstance():45
java.lang.reflect.Constructor.newInstance():423
org.apache.calcite.runtime.Resources$ExInstWithCause.ex():463
org.apache.calcite.sql.SqlUtil.newContextException():803
org.apache.calcite.sql.SqlUtil.newContextException():788
org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError():4470
org.apache.calcite.sql.validate.DelegatingScope.fullyQualify():253
org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit():5332
org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit():5314
org.apache.calcite.sql.SqlIdentifier.accept():344
org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild():134
org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild():101
org.apache.calcite.sql.SqlOperator.acceptCall():859
org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visitScoped():5367
org.apache.calcite.sql.validate.SqlScopedShuttle.visit():50
org.apache.calcite.sql.validate.SqlScopedShuttle.visit():33
org.apache.calcite.sql.SqlCall.accept():138
org.apache.calcite.sql.validate.SqlValidatorImpl.expand():4921
org.apache.calcite.sql.validate.SqlValidatorImpl.validateWhereClause():3659
org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect():3200
org.apache.calcite.sql.validate.SelectNamespace.validateImpl():60
org.apache.calcite.sql.validate.AbstractNamespace.validate():84
org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace():943
org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery():924
org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom():2971
org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom():2956
org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect():3197
org.apache.calcite.sql.validate.SelectNamespace.validateImpl():60
org.apache.calcite.sql.validate.AbstractNamespace.validate():84
org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace():943
org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery():924
org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom():2971
org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom():2956
org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect():3197
org.apache.calcite.sql.validate.SelectNamespace.validateImpl():60
org.apache.calcite.sql.validate.AbstractNamespace.validate():84
org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace():943
org.apache.calcite.sql.validate.AbstractNamespace.getRowType():115
org.apache.calcite.sql.validate.SelectNamespace.getRowType():30
org.apache.calcite.sql.validate.AbstractNamespace.getType():126
org.apache.calcite.sql.validate.SelectNamespace.getType():30
org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeTypeIfKnown():1538
org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeType():1523
org.apache.calcite.sql.validate.SqlValidatorImpl.validateWithItem():3449
org.apache.calcite.sql.validate.WithNamespace.validateImpl():53
org.apache.calcite.sql.validate.AbstractNamespace.validate():84
org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace():943
org.apache.calcite.sql.validate.SqlValidatorImpl.validateWith():3433
org.apache.calcite.sql.SqlWith.validate():71
org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression():899
org.apache.calcite.sql.validate.SqlValidatorImpl.validate():609
com.dremio.exec.planner.sql.SqlConverter.validate():199
com.dremio.exec.planner.sql.handlers.PrelTransformer.validateNode():178
com.dremio.exec.planner.sql.handlers.PrelTransformer.validateAndConvert():167
com.dremio.exec.planner.sql.handlers.PrelTransformer.validateAndConvert():163
com.dremio.exec.planner.sql.handlers.query.NormalHandler.getPlan():43
com.dremio.exec.planner.sql.handlers.commands.HandlerToExec.plan():68
com.dremio.exec.work.foreman.AttemptManager.plan():383
com.dremio.exec.work.foreman.AttemptManager.lambda$run$0():292
com.dremio.service.commandpool.CommandWrapper.run():62
java.util.concurrent.ThreadPoolExecutor.runWorker():1149
java.util.concurrent.ThreadPoolExecutor$Worker.run():624
java.lang.Thread.run():748
Caused By (org.apache.calcite.sql.validate.SqlValidatorException) Column ‘source’ not found in any table
sun.reflect.GeneratedConstructorAccessor263.newInstance():-1
sun.reflect.DelegatingConstructorAccessorImpl.newInstance():45
java.lang.reflect.Constructor.newInstance():423
org.apache.calcite.runtime.Resources$ExInstWithCause.ex():463
org.apache.calcite.runtime.Resources$ExInst.ex():572
org.apache.calcite.sql.SqlUtil.newContextException():803
org.apache.calcite.sql.SqlUtil.newContextException():788
org.apache.calcite.sql.validate.SqlValidatorImpl.newValidationError():4470
org.apache.calcite.sql.validate.DelegatingScope.fullyQualify():253
org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit():5332
org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visit():5314
org.apache.calcite.sql.SqlIdentifier.accept():344
org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild():134
org.apache.calcite.sql.util.SqlShuttle$CallCopyingArgHandler.visitChild():101
org.apache.calcite.sql.SqlOperator.acceptCall():859
org.apache.calcite.sql.validate.SqlValidatorImpl$Expander.visitScoped():5367
org.apache.calcite.sql.validate.SqlScopedShuttle.visit():50
org.apache.calcite.sql.validate.SqlScopedShuttle.visit():33
org.apache.calcite.sql.SqlCall.accept():138
org.apache.calcite.sql.validate.SqlValidatorImpl.expand():4921
org.apache.calcite.sql.validate.SqlValidatorImpl.validateWhereClause():3659
org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect():3200
org.apache.calcite.sql.validate.SelectNamespace.validateImpl():60
org.apache.calcite.sql.validate.AbstractNamespace.validate():84
org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace():943
org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery():924
org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom():2971
org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom():2956
org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect():3197
org.apache.calcite.sql.validate.SelectNamespace.validateImpl():60
org.apache.calcite.sql.validate.AbstractNamespace.validate():84
org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace():943
org.apache.calcite.sql.validate.SqlValidatorImpl.validateQuery():924
org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom():2971
org.apache.calcite.sql.validate.SqlValidatorImpl.validateFrom():2956
org.apache.calcite.sql.validate.SqlValidatorImpl.validateSelect():3197
org.apache.calcite.sql.validate.SelectNamespace.validateImpl():60
org.apache.calcite.sql.validate.AbstractNamespace.validate():84
org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace():943
org.apache.calcite.sql.validate.AbstractNamespace.getRowType():115
org.apache.calcite.sql.validate.SelectNamespace.getRowType():30
org.apache.calcite.sql.validate.AbstractNamespace.getType():126
org.apache.calcite.sql.validate.SelectNamespace.getType():30
org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeTypeIfKnown():1538
org.apache.calcite.sql.validate.SqlValidatorImpl.getValidatedNodeType():1523
org.apache.calcite.sql.validate.SqlValidatorImpl.validateWithItem():3449
org.apache.calcite.sql.validate.WithNamespace.validateImpl():53
org.apache.calcite.sql.validate.AbstractNamespace.validate():84
org.apache.calcite.sql.validate.SqlValidatorImpl.validateNamespace():943
org.apache.calcite.sql.validate.SqlValidatorImpl.validateWith():3433
org.apache.calcite.sql.SqlWith.validate():71
org.apache.calcite.sql.validate.SqlValidatorImpl.validateScopedExpression():899
org.apache.calcite.sql.validate.SqlValidatorImpl.validate():609
com.dremio.exec.planner.sql.SqlConverter.validate():199
com.dremio.exec.planner.sql.handlers.PrelTransformer.validateNode():178
com.dremio.exec.planner.sql.handlers.PrelTransformer.validateAndConvert():167
com.dremio.exec.planner.sql.handlers.PrelTransformer.validateAndConvert():163
com.dremio.exec.planner.sql.handlers.query.NormalHandler.getPlan():43
com.dremio.exec.planner.sql.handlers.commands.HandlerToExec.plan():68
com.dremio.exec.work.foreman.AttemptManager.plan():383
com.dremio.exec.work.foreman.AttemptManager.lambda$run$0():292
com.dremio.service.commandpool.CommandWrapper.run():62
java.util.concurrent.ThreadPoolExecutor.runWorker():1149
java.util.concurrent.ThreadPoolExecutor$Worker.run():624
java.lang.Thread.run():748
on rebooting dremio cluster it works for several attempts and after that, it fails with the same exception.
can anyone please help us on this?