Skip to content

Fix Snowflake paging config - use GET for subsequent requests#14502

Open
v-krishnachi wants to merge 1 commit into
Azure:masterfrom
v-krishnachi:fix/snowflake-paging-config
Open

Fix Snowflake paging config - use GET for subsequent requests#14502
v-krishnachi wants to merge 1 commit into
Azure:masterfrom
v-krishnachi:fix/snowflake-paging-config

Conversation

@v-krishnachi

Copy link
Copy Markdown
Contributor

Updated paging configuration across all 10 pollers to fix paging gap:

  • Added linkHeaderTokenJsonPath with simplified $.statementStatusUrl

  • Added nextPageHttpMethod: GET (initial POST, subsequent GET)

  • Added isNextPageTokenRelativeUrl: true

  • Removed old concat-style URL from linkHeaderTokenJsonPath

    Required items, please complete

    Change(s):

    • See guidance below

    Reason for Change(s):

    • See guidance below

    Version Updated:

    • Required only for Detections/Analytic Rule templates
    • See guidance below

    Testing Completed:

    • See guidance below

    Checked that the validations are passing and have addressed any issues that are present:

    • See guidance below

Updated paging configuration across all 10 pollers to fix paging gap:
- Added linkHeaderTokenJsonPath with simplified $.statementStatusUrl
- Added nextPageHttpMethod: GET (initial POST, subsequent GET)
- Added isNextPageTokenRelativeUrl: true
- Removed old concat-style URL from linkHeaderTokenJsonPath

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@v-krishnachi v-krishnachi requested review from a team as code owners June 17, 2026 00:00
@v-maheshbh v-maheshbh added the Solution Solution specialty review needed label Jun 17, 2026
@v-maheshbh v-maheshbh requested a review from Copilot June 17, 2026 04:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Fixes Snowflake connector pagination by switching subsequent page fetches to GET and simplifying the next-page token extraction to avoid paging gaps.

Changes:

  • Updated paging token extraction to use $.statementStatusUrl directly.
  • Added nextPageHttpMethod: GET for follow-up requests and marked tokens as relative URLs.
  • Applied the paging config updates across all pollers/config entries (source config + packaged template).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Solutions/Snowflake/Package/mainTemplate.json Updates the packaged Snowflake polling definitions to use the corrected paging behavior.
Solutions/Snowflake/Data Connectors/SnowflakeLogs_ccp/SnowflakeLogs_PollingConfig.json Updates the source polling config to use JSONPath token extraction and GET for subsequent pages.

Comment on lines 2468 to 2473
"paging": {
"pagingType": "LinkHeader",
"linkHeaderTokenJsonPath": "[[concat('https://',parameters('accountId'),'.snowflakecomputing.com','$.statementStatusUrl')]"
"linkHeaderTokenJsonPath": "$.statementStatusUrl",
"nextPageHttpMethod": "GET",
"isNextPageTokenRelativeUrl": true
},
Comment on lines +42 to +44
"linkHeaderTokenJsonPath": "$.statementStatusUrl",
"nextPageHttpMethod": "GET",
"isNextPageTokenRelativeUrl": true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Solution Solution specialty review needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants