Skip to content

Commit a10e554

Browse files
JV0812kimsauce
andauthored
Update scheduled-views-best-practices.md (#5740)
* Update scheduled-views-best-practices.md * Update docs/manage/scheduled-views/scheduled-views-best-practices.md Co-authored-by: Kim (Sumo Logic) <[email protected]> * minor fix --------- Co-authored-by: Kim (Sumo Logic) <[email protected]>
1 parent 7d2ed0b commit a10e554

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

blog-service/2024/12-31.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ We're excited to announce the release of the updated version of Azure Functions
564564

565565
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.
566566

567-
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.
567+
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.
568568

569569
### August 27, 2024 (Collection)
570570

docs/manage/scheduled-views/scheduled-views-best-practices.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ _view=nice_view_man | timeslice 1d | sum(_count) by _timeslice, status_code
222222

223223
## FAQ
224224

225-
### Upgrade your scheduled views to avoid negative count results
225+
### How to avoid negative count results
226226

227-
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.
227+
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`.
228+
229+
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.

0 commit comments

Comments
 (0)