title: Create AWS Athena table from Parquet file with an array of structs as a column
body: <p>I am trying to create an AWS Athena table from a Parquet file stored in S3 using the following declaration, for example:</p>
  
  <pre><code>create table "db"."fufu" (
    foo array&lt;
      struct&lt;
        bar: int, 
        bam: int
      &gt;
    &gt;
  )
  ROW FORMAT SERDE 'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe'
  WITH SERDEPROPERTIES ('serialization.format' = '1') 
  LOCATION 's3://yada/yada/'
  TBLPROPERTIES ('has_encrypted_data'='false');
  </code></pre>
  
  <p>I consistently getting the following error:</p>
  
  <pre><code>line 3:11: mismatched input '&lt;' expecting {'(', 'array', '&gt;'} (service: amazonathena; status code: 400; error code: invalidrequestexception; request id: ...)
  </code></pre>
  
  <p>The syntax seems legit, and the file loads perfectly fine using spark's parquet lib, with a struct field of array type of struct type. </p>
  
  <p>Any idea what can cause this error?</p>