DYNAMIC PIVOT IMPLEMENTATION USING OBJECT AGGREGATION

    公开(公告)号:US20250094418A1

    公开(公告)日:2025-03-20

    申请号:US18525811

    申请日:2023-11-30

    Applicant: Snowflake Inc.

    Abstract: Examples provide a method for performing dynamic pivot queries employing PANDA-compatible semantics inside a cloud data platform workload. A SQL engine receives a pivot query specifying a pivot column for dynamically determining pivot values in a dynamic pivot operation. The SQL engine identifies, in the pivot query, a keyword or a subquery indicating dynamic determination of the pivot values. Based on identifying the keyword or the subquery indicating the dynamic determination of the pivot values, the SQL engine determines distinct pivot values for the pivot column by evaluating the keyword or executing the subquery. The evaluating of the keyword includes issuing a query to a data store to obtain the distinct pivot values for the pivot column. The SQL engine performs the dynamic pivot operation using the distinct pivot values for the pivot column.

Patent Agency Ranking