Title: Add support for Query Hints for MS Fabric in TSql170Parser · Issue #180 · microsoft/SqlScriptDOM · GitHub
Open Graph Title: Add support for Query Hints for MS Fabric in TSql170Parser · Issue #180 · microsoft/SqlScriptDOM
X Title: Add support for Query Hints for MS Fabric in TSql170Parser · Issue #180 · microsoft/SqlScriptDOM
Description: We have encountered a parsing issue in Microsoft Documentation for MS Fabric Query Hints using TSql170Parser 170.128.0. Examples FOR TIMESTAMP AS OF SELECT OrderDateKey, SUM(SalesAmount) AS TotalSales FROM FactInternetSales GROUP BY Orde...
Open Graph Description: We have encountered a parsing issue in Microsoft Documentation for MS Fabric Query Hints using TSql170Parser 170.128.0. Examples FOR TIMESTAMP AS OF SELECT OrderDateKey, SUM(SalesAmount) AS TotalSa...
X Description: We have encountered a parsing issue in Microsoft Documentation for MS Fabric Query Hints using TSql170Parser 170.128.0. Examples FOR TIMESTAMP AS OF SELECT OrderDateKey, SUM(SalesAmount) AS TotalSa...
Opengraph URL: https://github.com/microsoft/SqlScriptDOM/issues/180
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for Query Hints for MS Fabric in TSql170Parser","articleBody":"We have encountered a parsing issue in [Microsoft Documentation for MS Fabric Query Hints](https://learn.microsoft.com/en-us/sql/t-sql/queries/hints-transact-sql-query?view=fabric\u0026preserve-view=true#examples) using TSql170Parser [170.128.0](https://www.nuget.org/packages/Microsoft.SqlServer.TransactSql.ScriptDom/170.128.0).\n\n**Examples**\n[FOR TIMESTAMP AS OF](https://learn.microsoft.com/en-us/sql/t-sql/queries/hints-transact-sql-query?view=fabric\u0026preserve-view=true#o-query-data-as-of-a-point-in-time)\n```\nSELECT OrderDateKey, SUM(SalesAmount) AS TotalSales\nFROM FactInternetSales\nGROUP BY OrderDateKey\nORDER BY OrderDateKey\nOPTION (FOR TIMESTAMP AS OF '2024-03-13T19:39:35.28');--March 13, 2024 at 7:39:35.28 PM UTC\n```\n**Error Message :** `Incorrect syntax near 'FOR'.`\n\n[Query force a single node or distributed query](https://learn.microsoft.com/en-us/sql/t-sql/queries/hints-transact-sql-query?view=fabric\u0026preserve-view=true#p-query-force-a-single-node-or-distributed-query)\n```\nSELECT OrderDateKey, SalesAmount\nFROM FactInternetSales\nOPTION (FORCE SINGLE NODE PLAN);\n```\n**Error Message :** `Incorrect syntax near 'NODE'.`\n```\nSELECT OrderDateKey, SalesAmount\nFROM FactInternetSales\nOPTION (FORCE DISTRIBUTED PLAN);\n```\n**Error Message :** `Incorrect syntax near 'FORCE'.`\n\n**Steps to reproduce**\n\n```\n static void Main(string[] args)\n {\n var script = @\"\u003cEXAMPLE_SCRIPT\u003e\";\n\n var parser = new TSql170Parser(true, 0);\n var fragment = parser.Parse(new StringReader(script), out var parseErrors);\n\n if (parseErrors.Count \u003e 0)\n {\n Console.WriteLine(parseErrors[0].Message);\n }\n }\n```","author":{"url":"https://github.com/naveennaik1","@type":"Person","name":"naveennaik1"},"datePublished":"2025-11-03T09:33:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/180/SqlScriptDOM/issues/180"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:359a072f-128b-5148-c40b-57b13a3e2dfa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 807E:A5611:10AA7B:170F7C:698EF78E |
| html-safe-nonce | b57c4f71cc732b21ee7315254578aa6a38166570cf028c8c41aceccda2fd7463 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDdFOkE1NjExOjEwQUE3QjoxNzBGN0M6Njk4RUY3OEUiLCJ2aXNpdG9yX2lkIjoiOTA2NTgzNjQ2OTMxOTMwMTAwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3dae42a095466a4cf8c3e0fc4c640bdccb7276646e3fb3ce6528ce0be22cd7b8 |
| hovercard-subject-tag | issue:3581264605 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/SqlScriptDOM/180/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6989ad1fa6efb39abed2f68e7a76d8dc60cc68e4ead411c31f5a0958499fa79d/microsoft/SqlScriptDOM/issues/180 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6989ad1fa6efb39abed2f68e7a76d8dc60cc68e4ead411c31f5a0958499fa79d/microsoft/SqlScriptDOM/issues/180 |
| og:image:alt | We have encountered a parsing issue in Microsoft Documentation for MS Fabric Query Hints using TSql170Parser 170.128.0. Examples FOR TIMESTAMP AS OF SELECT OrderDateKey, SUM(SalesAmount) AS TotalSa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | naveennaik1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f7bf82d8907f81525d95af82e60354b419d083df9534c8631d06bb9c0bf07ac |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/SqlScriptDOM git https://github.com/microsoft/SqlScriptDOM.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 543316377 |
| octolytics-dimension-repository_nwo | microsoft/SqlScriptDOM |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 543316377 |
| octolytics-dimension-repository_network_root_nwo | microsoft/SqlScriptDOM |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bc36007ff5167349dcfee9a75c7fa7184ab272c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width