Forum Discussion
How to list Table Properties
DennesTorres The traditional statement to see table properties is working fine from notebooks.
I just verified it using below code snippet
Hi,
I just tried it again and it's not working. Maybe I'm doing something wrong? I get a simple syntax error as feedback
Kind Regards,
Dennes
- DennesTorres3 years agoPower Participant
Hi,
After some more tests, I solved the problem of the SHOW statement, it was a silly mistake I did. %%sql only works if it's on the first line of the code block.
However, the final intended result didn't work. I was looking for discovering if the table was created using vorder optimization or optimizewrite, I was sure some of the tables were created with these features, while others were not, but the SHOW TBLPROPERTIES never show these properties.
What could I be doing wrong?Kind Regards,
Dennes
- chetnachaudhari3 years agoAdvocate I
You can check the value of particular property using following syntax
%%sql SHOW TBLPROPERTIES dim_calendar ('delta.parquet.vorder.enabled');Regards,
Chetna- DennesTorres3 years agoPower Participant
Hi,
I tried as well. It always result that the table doesn't have this property.
I tried to drop and create the table again, in many different ways. I followed the guidance on https://learn.microsoft.com/en-us/fabric/data-engineering/delta-optimization-and-v-order?tabs=sparksql.
All my attempts always result in "The table doesn't have this property".
One of my last attempts was this:Kind Regards,
Dennes