Say that I have an external table in Hive and the csv file in the external table's S3 location looks like below.
+----+------+
| ID | Name |
+----+------+
| 1 | A |
| 2 | B |
+----+------+
If I change the data in the file like below, I am able to see the changed value when I query the external table in Hive.
+----+------+
| ID | Name |
+----+------+
| 1 | A |
| 2 | C |
+----+------+
The same scenario when I tested in Snowflake, I am not able to see the new data rather I can still see the old data, though I have added the auto_refresh = true
while creating external table in Snowflake.
create or replace external table schema.table_name
(
ID INT as (value:c1::int),
Name varchar(20) as ( value:c2::varchar)
)
with location = @ext_stage_test
file_format = pipeformat
auto_refresh = true
Is this the behavior of Snowflake or am I missing anything?
Any help is highly appreciated.