Testing spatial methods in SQL Server 11.0
description
Transcript of Testing spatial methods in SQL Server 11.0
![Page 1: Testing spatial methods in SQL Server 11.0](https://reader031.fdocuments.in/reader031/viewer/2022012922/56816358550346895dd410cd/html5/thumbnails/1.jpg)
Testing spatial methods in SQL Server 11.0
Branislav UzelacNemanja Matkovic
Microsoft Development Center Serbia
Danica Porobic
EPFL Lausanne, Switzerland
![Page 2: Testing spatial methods in SQL Server 11.0](https://reader031.fdocuments.in/reader031/viewer/2022012922/56816358550346895dd410cd/html5/thumbnails/2.jpg)
Introduction to Spatial
• Geometry
• Geography
![Page 3: Testing spatial methods in SQL Server 11.0](https://reader031.fdocuments.in/reader031/viewer/2022012922/56816358550346895dd410cd/html5/thumbnails/3.jpg)
Testing strategy at a glanceInput Data
Testing methodsVerification
methodsWorld data
Reference library
Static cases
Generated Data
“Exact equal”
Identity cases
Transformed World data “Approximate
equal”
Repro minimization
Minimize
File a bug!
![Page 4: Testing spatial methods in SQL Server 11.0](https://reader031.fdocuments.in/reader031/viewer/2022012922/56816358550346895dd410cd/html5/thumbnails/4.jpg)
Data generators• Objects tailored for specific aspects of testing
![Page 5: Testing spatial methods in SQL Server 11.0](https://reader031.fdocuments.in/reader031/viewer/2022012922/56816358550346895dd410cd/html5/thumbnails/5.jpg)
Data generators
![Page 6: Testing spatial methods in SQL Server 11.0](https://reader031.fdocuments.in/reader031/viewer/2022012922/56816358550346895dd410cd/html5/thumbnails/6.jpg)
Testing strategy
• Mathematical identities
BABA
ABBABABA \\
Identity formula = = = A / B = B / A
= u
A B
∪
![Page 7: Testing spatial methods in SQL Server 11.0](https://reader031.fdocuments.in/reader031/viewer/2022012922/56816358550346895dd410cd/html5/thumbnails/7.jpg)
Minimization of bug repro steps
• Large objects may have thousands of points• Hard to analyze and pinpoint the problem• Solution: minimize!
![Page 8: Testing spatial methods in SQL Server 11.0](https://reader031.fdocuments.in/reader031/viewer/2022012922/56816358550346895dd410cd/html5/thumbnails/8.jpg)
Minimization of bug repro steps
• Success rate
72%
28%
Successfully minimized Failed to minimize
04080
120160
![Page 9: Testing spatial methods in SQL Server 11.0](https://reader031.fdocuments.in/reader031/viewer/2022012922/56816358550346895dd410cd/html5/thumbnails/9.jpg)
Questions?
• More on spatial: http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx
• Contact authors– Branislav Uzelac, [email protected]– Nemanja Matkovic, [email protected]– Danica Porobic, [email protected]