[teiid-issues] [JBoss JIRA] (TEIID-5720) PSQL client fails to report the metadata

Steven Hawkins (Jira) issues at jboss.org
Thu Apr 11 12:35:00 EDT 2019


    [ https://issues.jboss.org/browse/TEIID-5720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13721266#comment-13721266 ] 

Steven Hawkins commented on TEIID-5720:
---------------------------------------

Can you provide more context?  What query is this happening on?  Are there other issues - given that we haven't specifically targeted psql for support it's likely that there could be other issues.

It looks like this would occur with char_col in ('')

char for Teiid is effectively char(1).  The complaint is based upon the conversion of '' to char is ' ', which is different than '', so it doesn't think that the implicit conversion is valid.  Probably the best thing to do would be to avoid the char type - but that is being used on several of the pg_catalog columns.



> PSQL client fails to report the metadata
> ----------------------------------------
>
>                 Key: TEIID-5720
>                 URL: https://issues.jboss.org/browse/TEIID-5720
>             Project: Teiid
>          Issue Type: Bug
>          Components: ODBC
>            Reporter: Ramesh Reddy
>            Assignee: Steven Hawkins
>            Priority: Major
>
> When using psql client and issuing the "\dt" command I see this exception instead of returning the table names.
> {code}
> WARN: TEIID30020 Processing exception for request grF9mx6fyMfD.1 'TEIID30082 Expected value of type 'char' but '''' is of type 'string' and no implicit conversion is available.'. Originally QueryResolverException ResolverUtil.java:230.
> org.teiid.api.exception.query.QueryResolverException: TEIID30082 Expected value of type 'char' but '''' is of type 'string' and no implicit conversion is available.
> 	at org.teiid.query.resolver.util.ResolverUtil.convertExpression(ResolverUtil.java:230)
> 	at org.teiid.query.resolver.util.ResolverVisitor.resolveSetCriteria(ResolverVisitor.java:1203)
> 	at org.teiid.query.resolver.util.ResolverVisitor.visit(ResolverVisitor.java:294)
> 	at org.teiid.query.sql.lang.SetCriteria.acceptVisitor(SetCriteria.java:96)
> 	at org.teiid.query.sql.navigator.AbstractNavigator.visitVisitor(AbstractNavigator.java:50)
> 	at org.teiid.query.sql.navigator.PreOrPostOrderNavigator.postVisitVisitor(PreOrPostOrderNavigator.java:57)
> 	at org.teiid.query.resolver.command.SimpleQueryResolver$QueryResolverVisitor.postVisitVisitor(SimpleQueryResolver.java:229)
> 	at org.teiid.query.sql.navigator.PreOrPostOrderNavigator.visit(PreOrPostOrderNavigator.java:345)
> 	at org.teiid.query.sql.lang.SetCriteria.acceptVisitor(SetCriteria.java:96)
> 	at org.teiid.query.sql.navigator.AbstractNavigator.visitNode(AbstractNavigator.java:59)
> 	at org.teiid.query.sql.navigator.AbstractNavigator.visitNodes(AbstractNavigator.java:72)
> 	at org.teiid.query.sql.navigator.PreOrPostOrderNavigator.visit(PreOrPostOrderNavigator.java:135)
> 	at org.teiid.query.sql.lang.CompoundCriteria.acceptVisitor(CompoundCriteria.java:231)
> 	at org.teiid.query.sql.navigator.AbstractNavigator.visitNode(AbstractNavigator.java:59)
> 	at org.teiid.query.resolver.command.SimpleQueryResolver$QueryResolverVisitor.visit(SimpleQueryResolver.java:244)
> 	at org.teiid.query.resolver.command.SimpleQueryResolver.resolveCommand(SimpleQueryResolver.java:66)
> 	at org.teiid.query.resolver.QueryResolver.resolveCommand(QueryResolver.java:178)
> 	at org.teiid.query.resolver.QueryResolver.resolveCommand(QueryResolver.java:120)
> 	at org.teiid.dqp.internal.process.Request.resolveCommand(Request.java:282)
> 	at org.teiid.dqp.internal.process.Request.generatePlan(Request.java:418)
> 	at org.teiid.dqp.internal.process.Request.processRequest(Request.java:486)
> 	at org.teiid.dqp.internal.process.RequestWorkItem.processNew(RequestWorkItem.java:672)
> 	at org.teiid.dqp.internal.process.RequestWorkItem.process(RequestWorkItem.java:351)
> 	at org.teiid.dqp.internal.process.AbstractWorkItem.run(AbstractWorkItem.java:43)
> 	at org.teiid.dqp.internal.process.RequestWorkItem.run(RequestWorkItem.java:285)
> 	at org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:281)
> 	at org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:124)
> 	at org.teiid.dqp.internal.process.ThreadReuseExecutor$2.run(ThreadReuseExecutor.java:212)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> 	at java.base/java.lang.Thread.run(Thread.java:834)
> {code}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the teiid-issues mailing list