I'm using federated queries in AWS Athena, querying data on SQL server.
When Connecting to Athena, I am able to visualise, the list of tables and their schema. (show tables & describe [Table Name] are working) But getting error TABLE_NOT_FOUND when running select queries.
Why ?
1条答案
按热度按时间xfb7svmp1#
SOLVED. This was a user rights issue:
db_datareader
andpublic
roles on the SQL Server databaseSYS.DM_DB_PARTITION_STAT
table.SOURCE:https://github.com/awslabs/aws-athena-query-federation/blob/master/athena-sqlserver/src/main/java/com/amazonaws/athena/connectors/sqlserver/SqlServerMetadataHandler.java