What is the issue you are facing? how did you import the metadata? Yes, if the translator already did not quote these tables then it is a bug, for which you can open a JIRA.
Thanks for the response. I am using Teiid embedded, where I have created something like a wrapper connector over the Teiid-provided simpledb db connector which delegates some of the calls to SimpleDBConnectionImpl. For fetching the metadata of the source, I call methods on this connection object very similar to what happens in the Teiid metadata processor. Here, SimpleDBConnectionImpl.getAttributeNames is failing for domainNames which have a hyphen etc.
Have created a JIRA bug for the issue - TEIID-5363
Thanks for the resolution for TEIID-5363.
But I am not really sure whether this workaround would solve the problem, looking at where exactly I am facing the issue. I am facing the issue in SimpleDBConnectionImpl.getAttributeNames. This method gets called from my class (which is similar to SimpleDBMetadataProcessor) with domain names which are obtained from a previous call SimpleDBConnectionImpl.getDomains (which returns non-quoted domain names). When this non-quoted domain name gets passed to getAttributeNames, it leads to a failure -- so when I essentially don't have the attributeNames yet, I can't quote them in the nameInSource property and proceed.
Here's the stacktrace:
Caused by: com.amazonaws.services.simpledb.model.InvalidQueryExpressionException: The specified query expression syntax is not valid. (Service: AmazonSimpl
eDB; Status Code: 400; Error Code: InvalidQueryExpression; Request ID: b8d60ae4-9488-6f0e-214c-da4ff404dbb3)
Please reopen the issue with that comment, and I'll have a look at addressing that.