Tracking intermediate changes in database data

    公开(公告)号:US10997162B2

    公开(公告)日:2021-05-04

    申请号:US16824676

    申请日:2020-03-19

    Applicant: Snowflake Inc.

    Abstract: Systems, methods, and devices for tracking a series of changes to database data are disclosed. A method includes executing a transaction to modify data in a micro-partition of a table of a database by generating a new micro-partition that embodies the transaction. The method includes associating transaction data with the new micro-partition, wherein the transaction data comprises a timestamp when the transaction was fully executed, and further includes associating modification data with the new micro-partition that comprises an indication of one or more rows of the table that were modified by the transaction. The method includes joining the transaction data with the modification data to generate joined data and querying the joined data to determine a listing of intermediate modifications made to the table between a first timestamp and a second timestamp.

    Transactional streaming of change tracking data

    公开(公告)号:US10997151B2

    公开(公告)日:2021-05-04

    申请号:US16705566

    申请日:2019-12-06

    Applicant: Snowflake Inc.

    Abstract: Systems, methods, and devices for generating a transactional change tracking summary for a database. A method includes executing a transaction on a table of a database, wherein the table includes a micro-partition and the transaction is executed on the micro-partition. The method includes, in response to the transaction being fully executed, generating a change tracking entry comprising an indication of one or modifications made to the table by the transaction. The method includes storing the change tracking entry in a change tracking stream, wherein the change tracking stream includes one or more sequential change tracking entries that each correspond to a different transaction that is fully executed on the table.

    PROCESSING TRANSACTIONS ON JOURNALED TABLES

    公开(公告)号:US20210042283A1

    公开(公告)日:2021-02-11

    申请号:US17078437

    申请日:2020-10-23

    Applicant: Snowflake Inc.

    Abstract: The subject technology receives one or more requests to execute one or more requested transactions on a journal table of a database, the journal table comprising a snapshot and a log table. The subject technology, based on the one or more requests, inserts a new row into the log table for each requested transaction, each new row reflecting a corresponding requested transaction. The subject technology receives, after the one or more requested transactions have been executed, a second request to execute a second requested transaction on the journal table. The subject technology generates, prior to executing the second requested transaction, a second snapshot, the second snapshot comprising a second representation of data in the journal table after the one or more requested transactions have been executed, the second snapshot stored in a third micro-partition different than the first micro-partition and the second micro-partition.

    Tracking changes in database data
    64.
    发明授权

    公开(公告)号:US10824617B2

    公开(公告)日:2020-11-03

    申请号:US16705424

    申请日:2019-12-06

    Applicant: Snowflake Inc.

    Abstract: Systems, methods, and devices for tracking changes to database data. A method includes determining a change to be executed on a micro-partition of a table of a database and executing the change on the table by generating a new micro-partition that embodies the change. The method includes updating a table history that includes a log of changes made to the table, wherein each change in the log of changes includes a timestamp, and wherein updating the table history includes inserting the change into the log of changes.

    MATERIALIZED VIEWS OVER EXTERNAL TABLES IN DATABASE SYSTEMS

    公开(公告)号:US20200334231A1

    公开(公告)日:2020-10-22

    申请号:US16775110

    申请日:2020-01-28

    Applicant: Snowflake Inc.

    Abstract: Systems, methods, and devices for generating a materialized view over an external table. A method includes connecting a database platform to an external table such that the database platform has read access for the external table and does not have write access for the external table. The method includes generating, by the database platform, a materialized view over the external table. The method includes receiving a notification that a modification has been made to the external table, the modification comprising one or more of an addition of a file, a deletion of a file, or an update to a file in a source location for the external table. The method includes, in response to the external table being modified, refreshing the materialized view such that the materialized view comprises an accurate representation of the external table.

    Materialized Views Over External Tables in Database Systems

    公开(公告)号:US20200334230A1

    公开(公告)日:2020-10-22

    申请号:US16385720

    申请日:2019-04-16

    Applicant: Snowflake Inc.

    Abstract: Systems, methods, and devices for generating a materialized view over an external table. A method includes connecting a database platform to an external table such that the database platform has read access for the external table and does not have write access for the external table. The method includes generating, by the database platform, a materialized view over the external table. The method includes receiving a notification that a modification has been made to the external table, the modification comprising one or more of an addition of a file, a deletion of a file, or an update to a file in a source location for the external table. The method includes, in response to the external table being modified, refreshing the materialized view such that the materialized view comprises an accurate representation of the external table.

    TASK SCHEDULING IN DATABASE SYSTEMS
    67.
    发明申请

    公开(公告)号:US20200167343A1

    公开(公告)日:2020-05-28

    申请号:US16705533

    申请日:2019-12-06

    Applicant: Snowflake Inc.

    Abstract: Systems, methods, and devices for executing a task on database data in response to a trigger event are disclosed. A method includes executing a transaction on a table comprising database data, wherein executing the transaction comprises generating a new table version. The method includes, in response to the transaction being fully executed, generating a change tracking entry comprising an indication of one or more modifications made to the table by the transaction and storing the change tracking entry in a change tracking stream. The method includes executing a task on the new table version in response to a trigger event.

    TASK EXECUTION USING A STREAM OF COMMITTED TRANSACTIONS

    公开(公告)号:US20250045274A1

    公开(公告)日:2025-02-06

    申请号:US18920733

    申请日:2024-10-18

    Applicant: Snowflake Inc.

    Abstract: A method includes ingesting, by at least one hardware processor, database data within a staging table of a database. The method further includes generating a task based on at least one data processing statement received from a user account. The method further includes executing the task on the database data in the staging table to generate modified data. The method further includes, in response to the task being fully executed on the database data, storing the modified data in a target table. In some aspects, the target table is configured within the database. The method further includes generating a stream of one or more transactions committed during the execution of the task to generate the modified data.

    TRACKING INTERMEDIATE CHANGES IN DATABASE DATA

    公开(公告)号:US20240311369A1

    公开(公告)日:2024-09-19

    申请号:US18668993

    申请日:2024-05-20

    Applicant: Snowflake Inc.

    CPC classification number: G06F16/2379 G06F16/2282 G06F16/24554 G06F16/2456

    Abstract: Systems, methods, and devices for tracking a series of changes to database data are disclosed. A method includes executing a transaction to modify data in a micro-partition of a table of a database by generating a new micro-partition that embodies the transaction. The method includes associating transaction data with the new micro-partition, wherein the transaction data comprises a timestamp when the transaction was fully executed, and further includes associating modification data with the new micro-partition that comprises an indication of one or more rows of the table that were modified by the transaction. The method includes joining the transaction data with the modification data to generate joined data and querying the joined data to determine a listing of intermediate modifications made to the table between a first timestamp and a second timestamp.

Patent Agency Ranking