I am new to snowflake. I am creating a view in snowflake as below
create view TABLENAME_VIEW as select * from test.stage.TABLENAME;
while running a select statement on information_schema.tables, I am getting the row_count of view table as null whereas doing select count(*) on the view tables gives the count.
Can someone please help on this.
| TABLE_NAME | ROW_COUNT | TABLE_CATALOG | TABLE_TYPE |
|---|---|---|---|
| TABLENAME | 5 | TEST | BASE TABLE |
| TABLENAME_VIEW | NULL | TEST | VIEW |
select count(*) from TABLENAME_VIEW;
| COUNT(*) |
|---|
| 5 |