×

APPROXIMATING QUERY RESULTS BY RELATIONS OVER TYPES FOR ERROR DETECTION AND OPTIMIZATION

  • US 20090234801A1
  • Filed: 03/11/2009
  • Published: 09/17/2009
  • Est. Priority Date: 03/11/2008
  • Status: Active Grant
First Claim
Patent Images

1. A computer-implemented method for approximating any results returned by a query over a relational data source, the method comprising:

  • receiving, at a computer system, a set of types, wherein a type in the set of types represents a superset of a set of values that is storable in that field;

    receiving, at the computer system, a type for each field in a schema, wherein the schema describes a relational data source to be searched;

    producing, at the computer system, at least one approximation of at least one result returned by a query, wherein the query includes calls to other query procedures, and wherein the approximation includes at least one of a set of records of types and a set of records of Boolean formulas over types, wherein each field in the result occurs as a field in a record of types, and each type assigned to a field represents a superset of the set of values that are storable in that field; and

    optimizing, at the computer system, by transforming the other query procedures using the approximation by eliminating query parts that return an empty set of results regardless of the contents of the relational data source in a context where the query parts are called.

View all claims
  • 5 Assignments
Timeline View
Assignment View
    ×
    ×