Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blog-service/2024/12-31.md
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ We're excited to announce the release of the updated version of Azure Functions

We're happy to announce a change to the behaviour of the `count` operator to return `Long` values. Previously, the `count` operator returned `Int` data type which could lead to a negative value if the maximum integer value was exceeded. With this change, we are changing the data type of the count operator result from `Int` to `Long` data type.

This change will apply to all new queries. Any existing queries as part of various content types - Log Search, Scheduled Search, [Lookup Table](/docs/search/lookup-tables/manage-update-lookup-tables/#upgrade-the-lookup-table-to-avoid-negative-count-results), [Scheduled Views](/docs/manage/scheduled-views/scheduled-views-best-practices/#upgrade-your-scheduled-views-to-avoid-negative-count-results), and Saved Search will also seamlessly transition to show `Long` values in case of `Int` overflow.
This change will apply to all new queries. Any existing queries as part of various content types - Log Search, Scheduled Search, [Lookup Table](/docs/search/lookup-tables/manage-update-lookup-tables/#upgrade-the-lookup-table-to-avoid-negative-count-results), [Scheduled Views](/docs/manage/scheduled-views/scheduled-views-best-practices/#how-to-avoid-negative-count-results), and Saved Search will also seamlessly transition to show `Long` values in case of `Int` overflow.

### August 27, 2024 (Collection)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ _view=nice_view_man | timeslice 1d | sum(_count) by _timeslice, status_code

## FAQ

### Upgrade your scheduled views to avoid negative count results
### How to avoid negative count results

The existing scheduled views will use the `Int` data type for the `count` operator, giving a negative count value after crossing the maximum integer value of `2147483647`. To resolve this, create a new scheduled view with the same starting date as the old scheduled view. These new scheduled views will utilize the `Long` data type for the `count` operator and will not provide negative values.
Validate if you are using the scheduled views created before August 28, 2024. The scheduled views created before this date will use the `Int` data type for the `count` operator, inturn resulting in a negative count value after exceeding the maximum integer value of `2147483647`.

To resolve this, create a new scheduled view with the same starting date as the old scheduled view. These new scheduled views will utilize the `Long` data type for the `count` operator and will not provide negative values.