[ 
https://issues.apache.org/jira/browse/CALCITE-4727?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17397651#comment-17397651
 ] 

John Bodley edited comment on CALCITE-4727 at 8/11/21, 10:35 PM:
-----------------------------------------------------------------

For context here's the error I get when trying to connect to Tableau when I 
exclude the `response` property in the {{RpcMetadata}} object.


{code:java}
An error occurred while communicating with Other Databases (JDBC) Bad 
Connection: Tableau could not connect to the data source. Error Code: FAB9A2C5 
org.apache.calcite.avatica.com.fasterxml.jackson.databind.exc.InvalidTypeIdException:
 Missing type id when trying to resolve subtype of [simple type, class 
org.apache.calcite.avatica.remote.Service$RpcMetadataResponse]: missing type id 
property 'response' (for POJO property 'rpcMetadata') at [Source: (String)"{ 
"connectionId": "1d919ce0-c430-42b6-b5d9-8cfeb532fdb0", "rpcMetadata": {}, 
"firstFrame": { "rows": [ [ "VIEW" ] ], "done": true, "offset": 0 }, 
"updateCount": -1, "response": "resultSet" } "; line: 14, column: 17] (through 
reference chain: 
org.apache.calcite.avatica.remote.Service$ResultSetResponse["rpcMetadata"])
{code}


was (Author: john.bod...@gmail.com):
For context here's the error I get when trying to connect to Tableau when I 
exclude the `response` property in the {{RpcMetadata}} object.
{code:java}
An error occurred while communicating with Other Databases (JDBC) Bad 
Connection: Tableau could not connect to the data source. Error Code: FAB9A2C5 
org.apache.calcite.avatica.com.fasterxml.jackson.databind.exc.InvalidTypeIdException:
 Missing type id when trying to resolve subtype of [simple type, class 
org.apache.calcite.avatica.remote.Service$RpcMetadataResponse]: missing type id 
property 'response' (for POJO property 'rpcMetadata') at [Source: (String)"{ 
"connectionId": "1d919ce0-c430-42b6-b5d9-8cfeb532fdb0", "rpcMetadata": {}, 
"firstFrame": { "rows": [ [ "VIEW" ] ], "done": true, "offset": 0 }, 
"updateCount": -1, "response": "resultSet" } "; line: 14, column: 17] (through 
reference chain: 
org.apache.calcite.avatica.remote.Service$ResultSetResponse["rpcMetadata"])
{code}

> Possible incorrect RpcMetadata JSON reference
> ---------------------------------------------
>
>                 Key: CALCITE-4727
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4727
>             Project: Calcite
>          Issue Type: Bug
>          Components: avatica
>            Reporter: John Bodley
>            Priority: Trivial
>
> Per [CALCITE-4367|https://issues.apache.org/jira/browse/CALCITE-4367] the 
> RpMetadata JSON reference is missing the required `response` field. As 
> discussed in the issue and per 
> [here|https://github.com/apache/calcite-avatica/blob/89e0deb510311b85b8c8bacde6d2ff70c309930e/core/src/main/java/org/apache/calcite/avatica/remote/Service.java#L2668-L2678],
>  though this isn't an actual response is does seem to expect a response type 
> signature. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to