- Newest
- Most votes
- Most comments
Thanks Gonzalo for your answer. Actually, my question is really about "delta" tables. I am able to create tables through the console, or the CLI. I am doing it multiple times :)
Through the console, I cannot select a "delta" format. I can select Avro, CSV, Parquet amongst others, but not Delta. When I create a replicate of the table created by the Delta source crawler, I get errors when querying the table (through Athena, or any other Glue job). When querying the mimicked table I get the error:
HIVE_CANNOT_OPEN_SPLIT: Error opening Hive split s3://.../part-00000-c3e64f54-ed8a-459c-8157-4235f25595b4.c000.snappy.parquet (offset=0, length=182912) using org.apache.hadoop.mapred.SequenceFileInputFormat: s3://com.diabeloop.dev.dta.lake/technical_logs/v3/curated_logs/resampled_information/environment=clinical/year=2022/part-00000-c3e64f54-ed8a-459c-8157-4235f25595b4.c000.snappy.parquet not a SequenceFile
Although querying the delta table created by the crawler (classification indeed equals to "delta") is working like a charm (both Athena and glue job).
There is nothing stopping you creating the table yourself and doing the same the crawler does, as long as you enter the right parameters and configuration.
You can do it via the console, AWS CLI or boto3 or Athena.
It's easier if you get the table definition the crawler created and use it as a template, either using "aws glue get-table" or asking Athena to provide the DDL for an existing table.
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 4 months ago
I see your point, you could use the wizard but then have to update the table using "ALTER TABLE" until it looks like the one from the crawler. You can do it Athena for instance, copying the DDL from another table