PatentRef

Data version 20261117.2, as of 2026-11-17. Free beta.

US 11023468

First/last aggregation operator on multiple keyfigures with a single table scan

Granted 2021-06-01 · Filed 2015-11-20 · Application 14/947,627 · Utility · Kind B2 · Prior publication US 2017/0147636 A1, 2017-05-25

Assignee as printed
  • SAP SE, Walldorf (DE)
Inventors
Christoph Weyerhaeuser, Heidelberg (DE); Tobias Mindnich, Pocking (DE); Johannes Merx, Heidelberg (DE); Julian Schwing, Mannheim (DE)
CPC, current
G06F16/24554

Abstract

Methods and apparatus, including computer program products, are provided for first and last aggregation. In one aspect, there is provided a method, which may include receiving, by a calculation engine, a query; detecting, by the calculation engine, whether the query includes a first aggregation and/or a last aggregation over at least one group and at least one keyfigure; optimizing the received query, when the detecting indicates the received query includes the first aggregation and/or the last aggregation, wherein the optimizing further comprises initiating execution of the received query by at least: performing a single read of a table, detecting, from the single table read, at least one group, and indicating, in the detected at least one group, the first aggregation in the at least one keyfigure and/or the last aggregation in the at least one keyfigure; and returning, for the at least one detected group, the indicated first aggregation and/or the indicated second aggregation. Related apparatus, systems, methods, and articles are also described.

Claims

9 claims · independent 1, 6 and 9

The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.

Claim 1

Independent claim.

1. A method comprising:

  1. Claim 1, element e1receiving, by a calculation engine, a query to optimize table scanning when the query includes a first aggregation query instruction over at least a first group and a first key figure column and a last aggregation query instruction over at least a second group and a second key figure column, the calculation engine interfacing at least one database including a table; 24–391
  2. Claim 1, element e2detecting, by the calculation engine, that the query includes the first aggregation query instruction and the last aggregation query instruction, 393–537
  3. Claim 1, element e3wherein the first aggregation query instruction is configured to return, as part of a result set of the query, a first key figure value in the first group, and wherein the last aggregation query instruction is configured to return, as part of the result set of the query, a last key figure value in the second group; 539–854
  4. Claim 1, element e4in response to the detecting that the received query includes the first aggregation query instruction and the last aggregation query instruction, optimizing, by the calculation engine, the received query, 856–1059
  5. Claim 1, element e5wherein the optimizing further comprises initiating execution of the received query by at least: 1061–1156
  6. Claim 1, element e6performing, by the calculation engine, a single read of the table, replacing, in the single read table, attribute values of the first group and the second group with corresponding first hash values for the first group and corresponding second hash values for the second group; 1158–1433
  7. Claim 1, element e7detecting, from the single read table, the first group and the second group based on a change in the hash values, and indicating, in the detected first group and the second group, the first key figure value corresponding to the first aggregation query instruction and the last key figure value corresponding to the last aggregation query instruction; and 1435–1784
  8. Claim 1, element e8returning the result set to the query, the result set including the indicated first key figure value and the indicated last key figure value, without the calculation engine performing a second read of the table.1790–2000
4 dependent claims: 2 to 5 (2, 3, 4, 5 on claim 1)

Claim 2

Depends on claim 1.

2. The method of claim 1 , wherein

  1. Claim 2, element e1the detecting further comprises: 35–66
  2. Claim 2, element e2detecting, from the single table read, the at least one group based on the hash value.68–153

Claim 3

Depends on claim 1.

3. The method of claim 1 , wherein

  1. Claim 3, element e1the query includes a plurality of first aggregation query instructions and a plurality of last aggregation query instructions over a plurality of groups and a plurality key figures.35–215

Claim 4

Depends on claim 1.

4. The method of claim 1 , wherein

  1. Claim 4, element e1the database includes a database optimizer separate from an optimizer of the calculation engine interfacing the database.35–155

Claim 5

Depends on claim 1.

5. The method of claim 1 , wherein

  1. Claim 5, element e1the first group and the second group are each sorted.35–87

Claim 6

Independent claim.

6. A system comprising:

  1. Claim 6, element e1at least one processor and at least one memory including code which when executed causes operations comprising: 24–134
  2. Claim 6, element e2receiving, by a calculation engine, a query to optimize table scanning when the query includes a first aggregation query instruction over at least a first group and a first key figure column and a last aggregation query instruction over at least a second group and a second key figure column, the calculation engine interfacing at least one database including a table; 136–503
  3. Claim 6, element e3detecting, by the calculation engine, that the query includes the first aggregation query instruction and the last aggregation query instruction, 505–649
  4. Claim 6, element e4wherein the first aggregation query instruction is configured to return, as part of a result set of the query, a first key figure value in the first group, and wherein the last aggregation query instruction is configured to return, as part of the result set of the query, a last key figure value in the second group; 651–966
  5. Claim 6, element e5in response to the detecting that the received query includes the first aggregation query instruction and the last aggregation query instruction, optimizing, by the calculation engine, the received query, 968–1171
  6. Claim 6, element e6wherein the optimizing further comprises initiating execution of the received query by at least: 1173–1268
  7. Claim 6, element e7performing, by the calculation engine, a single read of the table, replacing, in the single read table, attribute values of the first group and the second group with corresponding first hash values for the first group and corresponding second hash values for the second group; 1270–1545
  8. Claim 6, element e8detecting, from the single read table, the first group and the second group based on a change in the hash values, and indicating, in the detected first group and the second group, the first key figure value corresponding to the first aggregation query instruction and the last key figure value corresponding to the last aggregation query instruction; and 1547–1896
  9. Claim 6, element e9returning the result set to the query, the result set including the indicated first key figure value and the indicated last key figure value, without the calculation engine performing a second read of the table.1902–2112
2 dependent claims: 7 and 8 (7, 8 on claim 6)

Claim 7

Depends on claim 6.

7. The system of claim 6 , wherein

  1. Claim 7, element e1the detecting further comprises: 35–66
  2. Claim 7, element e2detecting, from the single table read, the at least one group based on the hash value.68–153

Claim 8

Depends on claim 6.

8. The system of claim 6 , wherein

  1. Claim 8, element e1the query includes a plurality of first aggregation query instructions and a plurality of last aggregation query instructions over a plurality of groups and a plurality keyfigures.35–214

Claim 9

Independent claim.

9. A non-transitory computer-readable storage medium including program code which when executed causes operations comprising:

  1. Claim 9, element e1receiving, by a calculation engine, a query to optimize table scanning when the query includes a first aggregation query instruction over at least a first group and a first key figure column and a last aggregation query instruction over at least a second group and a second key figure column, the calculation engine interfacing at least one database including a table; 126–493
  2. Claim 9, element e2detecting, by the calculation engine, that the query includes the first aggregation query instruction and the last aggregation query instruction, 495–639
  3. Claim 9, element e3wherein the first aggregation query instruction is configured to return, as part of a result set of the query, a first key figure value in the first group, and wherein the last aggregation query instruction is configured to return, as part of the result set of the query, a last key figure value in the second group; 641–956
  4. Claim 9, element e4in response to the detecting that the received query includes the first aggregation query instruction and the last aggregation query instruction, optimizing, by the calculation engine, the received query, 958–1161
  5. Claim 9, element e5wherein the optimizing further comprises initiating execution of the received query by at least: 1163–1258
  6. Claim 9, element e6performing, by the calculation engine, a single read of the table, replacing, in the single read table, attribute values of the first group and the second group with corresponding first hash values for the first group and corresponding second hash values for the second group; 1260–1535
  7. Claim 9, element e7detecting, from the single read table, the first group and the second group based on a change in the hash values, and indicating, in the detected first group and the second group, the first key figure value corresponding to the first aggregation query instruction and the last key figure value corresponding to the last aggregation query instruction; and 1537–1886
  8. Claim 9, element e8returning the result set to the query, the result set including the indicated first key figure value and the indicated last key figure value, without the calculation engine performing a second read of the table.1892–2102

Status

active

As of 2026-11-17, the USPTO record for US 11023468 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2037-03-28 (20 years from filing, plus 494 days of patent term adjustment), a date not yet passed (data version 20261117.2).

Basis
term_20y · pta_days:494 (20 years from filing, plus 494 days of patent term adjustment)
Term end
2037-03-28 Computed from the dates in the USPTO record
Fee lapse
none on record
Reinstatement
none on record; reinstatement_possible: false, not lapsed
As of
2026-11-17
Data version
20261117.2

A fact about the record with its basis and its as-of date, not legal advice.

Citations

References cited on the grant: 2 US patent documents · Cited by: 63 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/11023468/ (needs a free key, as the links under Get this as data)

Family outside the US

Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).

This patent's family on USPTO Global Dossier

Family data from Google Patents Public Datasets, used under CC BY 4.0.

Record JSON
{
 "patent_id": "11023468",
 "status": "active",
 "basis": [
  "term_20y",
  "pta_days:494"
 ],
 "reinstatement_possible": false,
 "reinstatement_basis": "not lapsed",
 "expiry_date_estimated": "2037-03-28",
 "lapse_date": null,
 "reinstated_date": null,
 "as_of": "2026-11-17",
 "data_version": "20261117.2",
 "catalog_data_version": "20261117.2",
 "permalink": "https://patentref.io/p/11023468?v=20261117.2",
 "next_steps": [
  {
   "kind": "record",
   "url": "https://patentref.io/p/11023468?v=20261117.2",
   "audience": "human"
  },
  {
   "kind": "patent",
   "url": "https://patentref.io/api/v1/patent/11023468/",
   "audience": "agent"
  },
  {
   "kind": "fee_events",
   "tool": "uspto_patent_center",
   "url": "https://patentcenter.uspto.gov/applications?patentNumber=11023468",
   "audience": "agent"
  }
 ]
}

Get this as data

These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.

Elsewhere

Cite this record

https://patentref.io/p/11023468?v=20261117.2

Data 20261117.2 · as of 2026-11-17