Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
pmscorca
Post Patron
Post Patron

Issue creating a KQL materialized view

Hi,

I'm testing an eventstream that reads source events from an Azure Event Hubs and write them into a KQL table.

I've created successfully a KQL materialized view (using summarize and arg_max clauses) with the backfill=true option, without specifying the async clause, while the eventstream was active.

After two days, for debug purposes, I've tried to create a parallel materialized view with a different name using the same KQL code and I've obtained this error:

pmscorca_0-1730139355264.png

But firts it isn't required the async keyword.

So, I've tried to create an async materialized view using

.create async materialized-view with (backfill=true) mymaterview on table mytable

an OperationId is shown but it doesn't appear any materialized views.

Now, I don't understand because first it isn't necessary to specify the async keyword and then I need to write it.

Then, I don't understand because an async materialized view doesn't appear.

I don't understand because I cannot create a parallel clone materialized view with a different name.

I hope that a materialized view, created with or without the back fill option, keep updating with new source event data without executing any alter action on it.

Any helps to me, please? Many thanks

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @pmscorca ,

 

It might have seemed like the `async` keyword wasn't required, but for backfill operations, it is mandatory to ensure the process runs in the background without blocking other operations.

When you use the `.create async materialized-view` command, an `OperationId` is generated. You can monitor the progress of this operation using the `.show operations` command. If the materialized view doesn't appear immediately, it might still be processing, especially if the dataset is large.

 

Here's a step-by-step approach to troubleshoot and resolve your issues:

1. Verify Async Creation:

```kql
.create async materialized-view with (backfill=true) mymaterview on table mytable {
mytable
| summarize arg_max(Timestamp, *) by KeyColumn
}
```

2. Monitor the Operation:

```kql
.show operations
```

3. Make sure the new materialized view name is unique and doesn't conflict with other database objects.

Create materialized view - Kusto | Microsoft Learn

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

1 REPLY 1
v-tangjie-msft
Community Support
Community Support

Hi @pmscorca ,

 

It might have seemed like the `async` keyword wasn't required, but for backfill operations, it is mandatory to ensure the process runs in the background without blocking other operations.

When you use the `.create async materialized-view` command, an `OperationId` is generated. You can monitor the progress of this operation using the `.show operations` command. If the materialized view doesn't appear immediately, it might still be processing, especially if the dataset is large.

 

Here's a step-by-step approach to troubleshoot and resolve your issues:

1. Verify Async Creation:

```kql
.create async materialized-view with (backfill=true) mymaterview on table mytable {
mytable
| summarize arg_max(Timestamp, *) by KeyColumn
}
```

2. Monitor the Operation:

```kql
.show operations
```

3. Make sure the new materialized view name is unique and doesn't conflict with other database objects.

Create materialized view - Kusto | Microsoft Learn

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

November Update

Fabric Monthly Update - November 2024

Check out the November 2024 Fabric update to learn about new features.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Top Solution Authors
Top Kudoed Authors