Query Analysis in a Database
    3.
    发明申请
    Query Analysis in a Database 审中-公开
    数据库中的查询分析

    公开(公告)号:US20120117054A1

    公开(公告)日:2012-05-10

    申请号:US13291711

    申请日:2011-11-08

    IPC分类号: G06F17/30

    CPC分类号: G06F16/24537 G06F16/24545

    摘要: A method of analyzing an expression to infer output data properties, comprises storing, in a storage device, a root node “e” in R, in which “e” is an expression and R is a root node of an abstract syntax tree (AST) of the expression “e”, storing a number of child nodes of R into C1, . . . Cn, with a processor coupled to the storage device, calling analyze(Ci), storing output properties of expression C into Pi I, and determining if any of the child nodes Ci in {C1 . . . Cn} has not been analyzed, in which if the last child node has been analyzed, with the processor, calling compute-output-properties(R, P1, . . . Pn), storing, in the storage device, the result in Poutput, and returning Poutput as the output properties of the expression “e.”

    摘要翻译: 一种分析表达式以推断输出数据属性的方法,包括在存储设备中存储R中的根节点“e”,其中“e”是表达式,R是抽象语法树(AST)的根节点 )表示“e”,将多个子节点存入C1。 。 。 Cn,其中处理器耦合到存储设备,调用分析(Ci),将表达式C的输出属性存储到Pi I中,以及确定{C1中是否有任何子节点Ci。 。 。 Cn}没有被分析,其中如果最后一个子节点已经被分析,则与处理器一起调用计算输出属性(R,P1,... Pn),在存储设备中存储Poutput中的结果 ,并返回Poutput作为表达式“e”的输出属性。

    QUERY PROCESSING
    5.
    发明申请
    QUERY PROCESSING 审中-公开
    查询处理

    公开(公告)号:US20150088865A1

    公开(公告)日:2015-03-26

    申请号:US14398229

    申请日:2012-05-15

    IPC分类号: G06F17/30

    摘要: A method for query processing includes receiving a query, and determining a query type by determining if the query is a structured query language (SQL) query including multiple distinct aggregates (MDAs), or a SQL query including cube, rollup or grouping sets operations. Based on the determination, the method includes processing the query to generate an output, and performing a predetermined number of maximum group by operations on the output based on the query type to generate a response to the query.

    摘要翻译: 用于查询处理的方法包括接收查询,以及通过确定查询是否是包括多个不同聚合(MDA)的结构化查询语言(SQL)查询)或包括多维数据集,汇总或分组集合操作的SQL查询来确定查询类型。 基于该确定,该方法包括处理查询以生成输出,并且基于查询类型对输出执行预定数量的最大组,以生成对查询的响应。