Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
4 changes: 2 additions & 2 deletions AzureSQLDatabase/SeattleSafety/01-AdHocExploration.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ GO
-- Useful to understand how the data is physically organized.

SELECT
[SeattleSafety].filename() AS [file_name]
,COUNT(*) AS [row_count]
[SeattleSafety].filename() AS [file_name],
COUNT(*) AS [row_count]
FROM OPENROWSET(
BULK 'abs://citydatacontainer@azureopendatastorage.blob.core.windows.net/Safety/Release/city=Seattle/*.parquet',
FORMAT = 'PARQUET'
Expand Down
3 changes: 2 additions & 1 deletion AzureSQLDatabase/SeattleSafety/05b-PerformanceTests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ SELECT s.name AS stat_name, c.name AS column_name
FROM sys.stats s
JOIN sys.stats_columns sc ON s.object_id = sc.object_id AND s.stats_id = sc.stats_id
JOIN sys.columns c ON sc.object_id = c.object_id AND sc.column_id = c.column_id
WHERE s.object_id = OBJECT_ID('dbo.SeattleSafety_Cold');
WHERE s.object_id = OBJECT_ID('dbo.SeattleSafety_Cold')
ORDER BY s.name, c.column_id;
GO

-- Enable actual execution plan (Ctrl+M) before running these.
Expand Down