If you created the table using the AWS Glue crawler, then be sure that the following are true:
The table's classification isn't UNKNOWN.
The table has defined columns.
If the classification is UNKNOWN, then there's a problem with the table schema. Fix the schema and run the crawler again. For more information, see Adding classifiers to a crawler in AWS Glue.