Reputation: 31
I am trying to use the Athena Federated query system with the pre-built Athena-DynamoDB Connector. I have the connector setup so I can run queries like this:
SELECT * FROM "lambda:<connector>".[Something]."DynamoDB Table Name"
However, with some tables I get the following Java error from the connector:
GENERIC_USER_ERROR: Encountered an exception[null] from your LambdaFunction[< connector>] executed in context[retrieving meta-data] with message[Unexpected error executing Lambda function]
I believe this error comes from the connector's limited ability to infer table schema, causing it to raise a null reference exception when it encounters missing data in the table, as referenced here. So I am attempting to use the suggested solution:
As a work around, you can define the schema of this DDB table in Glue. That will cause the connector to bypass it's schema inference capability and perhaps stop the error so you can continue your work while we investigate.
I have setup a glue crawler that crawls the table that has the issue, I have run the glue crawler, and the table's metadata is viewable in the Glue console. However, I don't understand how to actually use this metadata instead of using the connector's schema inference. Any queries on the offending table return the same errors.
Some other information that might be relevant, but I'm not sure:
Upvotes: 2
Views: 726
Reputation: 107
Little bit forgot about this, but i suspect 2 problems here.
for tablename: key: sourceTable value: yourDynamoDBTableName
for columnNames: key: columnMapping value: glueColumn1=DynamoDBColumn1, glueColumn2=DynamoDBColumn2
Upvotes: 0