|
ABSTRACT
Complex database queries, like programs in general, can "crash", i.e., can raise runtime errors. We want to avoid crashes without losing expressive power, or we want to correctly predict the absence of crashes. We show how concepts and techniques from programming language theory, notably type systems and reflection, can be adaptedto this end. Of course, the specific nature of database queries (asopposed to general programs), also requires some new methods, andraises new questions.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
 |
2
|
Serge Abiteboul , Rakesh Agrawal , Phil Bernstein , Mike Carey , Stefano Ceri , Bruce Croft , David DeWitt , Mike Franklin , Hector Garcia Molina , Dieter Gawlick , Jim Gray , Laura Haas , Alon Halevy , Joe Hellerstein , Yannis Ioannidis , Martin Kersten , Michael Pazzani , Mike Lesk , David Maier , Jeff Naughton , Hans Schek , Timos Sellis , Avi Silberschatz , Mike Stonebraker , Rick Snodgrass , Jeff Ullman , Gerhard Weikum , Jennifer Widom , Stan Zdonik, The Lowell database research self-assessment, Communications of the ACM, v.48 n.5, p.111-118, May 2005
[doi> 10.1145/1060710.1060718]
|
 |
3
|
|
| |
4
|
|
| |
5
|
Henk P. Barendregt. The Lambda Calculus: its Syntax and Semantics. North-Holland, 1984.
|
| |
6
|
Scott Boag, Don Chamberlin, Mary F. Fernández, Daniela Florescu, Jonathan Robie, and Jérôme Siméon. XQuery 1.0: An XML Query Language. W3C Working Draft, February 2005.
|
| |
7
|
Don Box and Anders Hejlsberg. The LINQ Project: .NET Language Integrated Query. http://msdn.microsoft.com/netframework/future/linq/, March 2006.
|
| |
8
|
|
| |
9
|
|
 |
10
|
|
| |
11
|
|
| |
12
|
Luca Cardelli. Type systems. In The Computer Science and Engineering Handbook, pages 2208--2236. CRC Press, 1997.
|
| |
13
|
R. G. G. Cattell , Douglas K. Barry , Mark Berler , Jeff Eastman , David Jordan , Craig Russell , Olaf Schadow , Torsten Stanienda , Fernando Velez, The object data standard: ODMG 3.0, Morgan Kaufmann Publishers Inc., San Francisco, CA, 2000
|
| |
14
|
|
 |
15
|
|
| |
16
|
Denise Draper, Peter Fankhauser, Mary F. Fernández, Ashok Malhotra, Kristoffer Rose, Michael Rys, Jérôme Siméon, and Philip Wadler. XQuery 1.0 and XPath 2.0 Formal Semantics. W3C Working Draft, February 2005.
|
| |
17
|
Mary F. Fernández, Ashok Malhotra, Jonathan Marsh, Marton Nagy, and Norman Walsh. XQuery 1.0 and XPath 2.0 Data Model. W3C Working Draft, February 2005.
|
 |
18
|
|
| |
19
|
|
| |
20
|
|
| |
21
|
|
| |
22
|
Roger Hindley. The principal type-scheme of an object in combinatory logic. Transactions of the American Mathematical Society, 146:29--60, December 1969.
|
 |
23
|
|
 |
24
|
|
| |
25
|
M. Jain, A. Mendhekar, and D. Van Gucht. A uniform data model for relational data and meta-data query processing. In Advances in Data Management '95, pages 146--165. Tata McGraw-Hill, 1995.
|
 |
26
|
|
 |
27
|
|
| |
28
|
Zi Lin, Bingsheng He, and Byron Choi. A quantitative summary of XML structures. In ER 2006 - 25th International Conference on Conceptual Modeling, volume 4215 of Lecture Notes in Computer Science, pages 228--240. Springer, 2006.
|
 |
29
|
|
| |
30
|
Sebastian Maneth, Thomas Perst, and Helmut Seidl. Exact XML type checking in polynomial time. In Schwentick and Suciu {41}, pages 254--268.
|
 |
31
|
|
| |
32
|
|
| |
33
|
|
| |
34
|
Robin Milner. A theory of type polymorphism in programming. J. Comput. Syst. Sci., 17(3):348--375, 1978.
|
 |
35
|
Tova Milo , Dan Suciu , Victor Vianu, Typechecking for XML transformers, Proceedings of the nineteenth ACM SIGMOD-SIGACT-SIGART symposium on Principles of database systems, p.11-22, May 15-18, 2000, Dallas, Texas, United States
[doi> 10.1145/335168.335171]
|
| |
36
|
|
 |
37
|
|
| |
38
|
|
| |
39
|
|
 |
40
|
|
| |
41
|
Thomas Schwentick , Dan Suciu, Database Theory ICDT 2007: 11th International Conference, Barcelona, Spain, January 10-12, 2007, Proceedings (Lecture Notes in Computer Science), Springer-Verlag New York, Inc., Secaucus, NJ, 2007
|
| |
42
|
H. Schwichtenberg. Definierbare funktionen in λ-kalkül mit typen. Archiv für mathematische Logik und Grundlagenforschung, 174:113--114, 1976.
|
 |
43
|
|
 |
44
|
|
| |
45
|
|
| |
46
|
|
| |
47
|
|
| |
48
|
|
| |
49
|
Wolfgang Thomas, Languages, automata, and logic, Handbook of formal languages, vol. 3: beyond words, Springer-Verlag New York, Inc., New York, NY, 1997
|
| |
50
|
Henry S. Thompson, David Beech, Murray Maloney, and Noah Mendelsohn. XML Schema Part 1: Structures. W3C Recommendation, May 2001.
|
| |
51
|
|
| |
52
|
J. Van den Bussche, S. Vansummeren, and G. Vossen. Meta-SQL: Towards practical meta-querying. In Advances in Database Technology--EDBT 2004, volume 2992 of Lecture Notes in Computer Science, pages 823--825. Springer, 2004.
|
| |
53
|
|
| |
54
|
J. Van den Bussche and E. Waller. Polymorphic type inference for the relational algebra. Journal of Computer and System Sciences, 64:694--718, 2002.
|
| |
55
|
|
| |
56
|
Jan Van den Bussche and Stijn Vansummeren. Polymorphic type inference for the named nested relational calculus. ACM Transactions on Computational Logic, To appear.
|
 |
57
|
|
| |
58
|
Stijn Vansummeren. On deciding well-definedness for query languages on trees. Technical report, Hasselt University, 2005.
|
| |
59
|
|
 |
60
|
|
| |
61
|
|
| |
62
|
Piotr Wieczorek. Complexity of typechecking XML views of relational databases. In Schwentick and Suciu {41}, pages 239--253.
|
| |
63
|
|
 |
64
|
|
| |
65
|
XML syntax for XQuery 1.0 (XQueryX). W3C Working Draft 19 December 2003.
|
INDEX TERMS
Primary Classification:
H.
Information Systems
H.2
DATABASE MANAGEMENT
H.2.3
Languages
Subjects:
Query languages
Additional Classification:
F.
Theory of Computation
F.3
LOGICS AND MEANINGS OF PROGRAMS
F.3.1
Specifying and Verifying and Reasoning about Programs
Subjects:
Specification techniques
General Terms:
Languages,
Theory,
Verification
Keywords:
XQuery,
nested relational calculus,
reflection,
relational algebra,
runtime error,
typability,
type inference,
type system,
well-definedness
|