Refreshing DELTA external table

turtleXturtle
New Contributor II

I'm having trouble with the REFRESH TABLE command - does it work with DELTA external tables?  I'm doing the following steps:

  1. Create table: CREATE TABLE IF NOT EXISTS `catalog`.`default`.`table_name` (
    KEY DOUBLE
    , CUSTKEY DOUBLE
    , STATUS STRING
    , PRICE DOUBLE
    , DATE TIMESTAMP
    , PRIORITY STRING
    )
    USING PARQUET LOCATION 's3://bucket-name/folder-name/';
  2.  Convert to Delta: convert to delta `catalog`.`default`.`table_name`;
  3. Add new parquet file to s3 folder
  4. I tried REFRESH TABLE, then CONVERT TO DELTA again, which didn't work.  I also tried converting to delta first and then REFRESH TABLE, and I can't get the new file recognized.
 
I can't get the new file to show up in the created delta table without dropping and recreating the external table - is REFRESH TABLE supposed to work for DELTA external tables? Is there another order of operations I need to do to get the new file to be recognized in the existing delta external table?