You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/synapse-analytics/known-issues.md
+40-1Lines changed: 40 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,13 +30,14 @@ To learn more about Azure Synapse Analytics, see the [Azure Synapse Analytics Ov
30
30
|Azure Synapse dedicated SQL pool|[Queries failing with Data Exfiltration Error](#queries-failing-with-data-exfiltration-error)|Has workaround|
31
31
|Azure Synapse dedicated SQL pool|[UPDATE STATISTICS statement fails with error: "The provided statistics stream is corrupt."](#update-statistics-failure)|Has workaround|
32
32
|Azure Synapse dedicated SQL pool|[Enable TDE gateway timeouts in ARM deployment](#enable-tde-gateway-timeouts-in-arm-deployment)|Has workaround|
33
+
|Azure Synapse dedicated SQL pool|[Proxied connections can be affected by Gateway, resulting in connection failures](#proxied-connections-may-result-in-failure-due-to-gateway)|No workaround|
33
34
|Azure Synapse serverless SQL pool|[Query failures from serverless SQL pool to Azure Cosmos DB analytical store](#query-failures-from-serverless-sql-pool-to-azure-cosmos-db-analytical-store)|Has workaround|
34
35
|Azure Synapse serverless SQL pool|[Azure Cosmos DB analytical store view propagates wrong attributes in the column](#azure-cosmos-db-analytical-store-view-propagates-wrong-attributes-in-the-column)|Has workaround|
|Azure Synapse serverless SQL pool|[Storage access issues due to authorization header being too long](#storage-access-issues-due-to-authorization-header-being-too-long)|Has workaround|
|Azure Synapse serverless SQL pool|[Queries longer than 7,500 characters may not appear in Log Analytics](#queries-longer-than-7500-characters-may-not-appear-in-log-analytics)|Has workaround|
39
-
|Azure Synapse serverless SQL pool|[Proxied connections can be affected by Gateway, resulting in connection failures](#proxied-connections-may-result-in-failure-due-to-gateway)|No workaround|
40
+
|Azure Synapse serverless SQL pool|[Queries on external tables may take longer or not complete due to missing statistics](#queries-on-external-tables-may-take-longer-or-not-complete-due-to-missing-statistics)| Has workaround|
40
41
|Azure Synapse Workspace|[Blob storage linked service with User Assigned Managed Identity (UAMI) isn't getting listed](#blob-storage-linked-service-with-user-assigned-managed-identity-uami-is-not-getting-listed)|Has workaround|
41
42
|Azure Synapse Workspace|[Failed to delete Synapse workspace & Unable to delete virtual network](#failed-to-delete-synapse-workspace--unable-to-delete-virtual-network)|Has workaround|
42
43
|Azure Synapse Workspace|[REST API PUT operations or ARM/Bicep templates to update network settings fail](#rest-api-put-operations-or-armbicep-templates-to-update-network-settings-fail)|Has workaround|
@@ -273,6 +274,44 @@ Suggested workarounds are:
273
274
- Use the `sys.dm_exec_requests_history` view in your Synapse Serverless SQL pool to access historical query execution details.
274
275
- Refactor the query to reduce its length below 7,500 characters, if feasible.
275
276
277
+
### Queries on external tables may take longer or not complete due to missing statistics
278
+
279
+
Serverless SQL pool automatically creates statistics for external tables. However, a known issue can prevent statistics from being created for certain columns, which may result in suboptimal query plans and degraded query performance.
280
+
281
+
**Workaround**
282
+
283
+
The recommended workaround is the following:
284
+
285
+
- Run the following diagnostic query in the database hosting the external table to identify columns where `stats_name` or `stats_date` is NULL.
286
+
- If statistics are missing, copy the text from the `cmd_create_stats` column and run it in a new session to create the statistics.
287
+
- Make sure all relevant tables and columns have statistics and that the statistics are recent. If statistics are outdated, drop and recreate them to help the SQL optimizer generate more efficient query plans.
288
+
- Consider implementing an automation to periodically drop and recreate statistics to help maintain consistent query performance.
289
+
290
+
```sql
291
+
SELECT
292
+
schema_name(o.schema_id) AS [schema_name],
293
+
object_name(o.object_id) AS [table_name],
294
+
o.create_dateAS [table_date_create],
295
+
c.nameAS [column_name],
296
+
s.nameas [stats_name],
297
+
STATS_DATE(s.object_id, s.stats_id) AS [stats_date],
298
+
'CREATE STATISTICS ['+'Stats_'+c.name+'] ON ['+ schema_name(o.schema_id) +'].['+ object_name(o.object_id) +'] (['+c.name+']) WITH FULLSCAN;'AS cmd_create_stats,
0 commit comments