Hi Bexy Morgan,
Thank you for posting query in Microsoft Q&A Platform.
In Azure Data Explorer (Kusto), you can use the partitions
command to get the partition key values for a partitioned table. Here's an example:
.show table MyTable partitions
In the above example, we are using the show table
command with the partitions
keyword to get the partition key values for the MyTable
table. This will return a list of partition key values for each partition in the table.
Once you have the partition key values, you can use them to filter the data in a particular partition. Here's an example:
MyTable | where PartitionKey == "2022-01-01"
In the above example, we are using the where
clause to filter the data in the MyTable
table based on the PartitionKey
column. We are filtering the data to only include rows where the PartitionKey
value is equal to "2022-01-01". This will return all the data in the partition for the specified partition key value.
Note that the partition key values are specific to each partitioned table and are based on the partitioning scheme that you have defined for the table. You can use the partitions
command to get the partition key values for any partitioned table in Azure Data Explorer.
Hope this helps. Please let me know how it goes. Thank you.