Testing spatial methods in SQL Server 11.0 Branislav Uzelac Nemanja Matkovic Microsoft Development...

Post on 01-Apr-2015

221 views 2 download

Tags:

transcript

Testing spatial methods in SQL Server 11.0

Branislav UzelacNemanja Matkovic

Microsoft Development Center Serbia

Danica Porobic

EPFL Lausanne, Switzerland

Introduction to Spatial

• Geometry

• Geography

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!

Data generators• Objects tailored for specific aspects of testing

Data generators

Testing strategy

• Mathematical identities

BABA

ABBABABA \\

Identity formula = = = A / B = B / A

= u

A B

Minimization of bug repro steps

• Large objects may have thousands of points• Hard to analyze and pinpoint the problem• Solution: minimize!

Minimization of bug repro steps

• Success rate

72%

28%

Successfully minimized Failed to minimize

04080

120160

Questions?

• More on spatial: http://www.microsoft.com/sqlserver/2008/en/us/spatial-data.aspx

• Contact authors– Branislav Uzelac, bruzel@microsoft.com– Nemanja Matkovic, nemanjam@microsoft.com– Danica Porobic, danica.porobic@epfl.ch