[teiid-issues] [JBoss JIRA] (TEIID-4467) Google translator throws exception invalid_query for GROUP BY

Steven Hawkins (JIRA) issues at jboss.org
Fri Sep 23 11:43:00 EDT 2016


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

Steven Hawkins commented on TEIID-4467:
---------------------------------------

This is a google (undocumented) limitation - the query is required to have an aggregate if group by is used.  Unfortunately there isn't a simple workaround for this at the translator level.  It would take a new capability to prevent the pushdown.

There is also a (documented) limitation that aggregates can only reference a column and not an arbitrary expression - that will also need a new capability.

> Google translator throws exception invalid_query for GROUP BY 
> --------------------------------------------------------------
>
>                 Key: TEIID-4467
>                 URL: https://issues.jboss.org/browse/TEIID-4467
>             Project: Teiid
>          Issue Type: Bug
>    Affects Versions: 8.12
>            Reporter: Lucie Fabrikova
>            Assignee: Steven Hawkins
>         Attachments: googlespreadsheet-vdb.xml, server.log
>
>
> Google translator produces following exception for a query: "SELECT IntKey FROM bqt1.SmallA GROUP BY IntKey":
> 16:27:26,955 ERROR [org.teiid.PROCESSOR] (Worker0_QueryProcessorQueue14) TEIID30019 Unexpected exception for request vn+N1XY8Atf5.6: org.teiid.resource.adapter.google.common.SpreadsheetOperationException: [invalid_query]
>         at org.teiid.resource.adapter.google.dataprotocol.GoogleDataProtocolAPI$DataProtocolQueryStrategy.executeAndParse(GoogleDataProtocolAPI.java:196)
> ...        



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the teiid-issues mailing list