# US 2025/0156436 A1 · Method of generating a lakehouse metadata service log, a method of querying a lakehouse metadata service log, electronic device and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156436 A1
- Document ID: US20250156436A1
- Status: Published application
- Kind: A1
- Application number: 18/941,424
- Filed: 2024-11-08
- Published: 2025-05-15
- Earliest claimed: 2023-11-09
- Assignees: Beijing Volcano Engine Technology Co., Ltd.
- Applicants: Beijing Volcano Engine Technology Co., Ltd.
- Inventors: Mengjun LI; Jun GUO; Ke SUN; Qing XU
- Web page: https://patentgrep.com/patent/US20250156436A1

## CPC

- G06F 16/254: {Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses}
- G06F 16/907: Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method of generating a lakehouse metadata service log, a method of querying a lakehouse metadata service log, an electrode device and a storage medium are provided. The method of generating a lakehouse metadata service log includes: after a metadata server receives a data processing request sent by a data engine, determining, by the metadata server, first request identification information based on the data processing request, such that the first request identification information is used for identifying the data processing request; and then executing, by the metadata server, the request processing logic corresponding to the data processing request, and generating a log corresponding to the request processing logic based on the first request identification information, such that the log carries the first request identification information.

## Claims

### Claim 1

A method of generating a lakehouse metadata service log, wherein the method is applied to a metadata server, and the method comprises:
receiving a data processing request sent by a data engine;
determining first request identification information based on request identification information carried in the data processing request, wherein the first request identification information is used for identifying the data processing request; and if the data engine provides a log identifier and generates a request tracking identifier for the data processing request, the request identification information comprises the log identifier and the request tracking identifier; if the data engine does not provide a log identifier and generates a request tracking identifier for the data processing request, the request identification information comprises the request tracking identifier; and
executing request processing logic corresponding to the data processing request, and generating a log corresponding to the request processing logic based on the first request identification information, wherein the log carries the first request identification information.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the log identifier is determined by a software development kit (SDK) in the data engine based on a target parameter of the data engine; and
if the data engine supports log identifier configuration, the target parameter is a log identifier pre-configured for the data engine;
if the data engine does not support log identifier configuration, the target parameter is a task identifier, the task identifier is used for identifying a data analysis task of request generation logic that triggers the data processing request, and the data analysis task is created by the data engine in response to a user operation.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the request tracking identifier is used for uniquely identifying the data processing request; and/or
the request tracking identifier is generated by an SDK in the data engine.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the request identification information is located in a preset field in the data processing request; and/or
the request identification information is written by an SDK in the data engine into the preset field in the data processing request.

### Claim 5 (depends on 1)

The method according to claim 1, further comprising:
determining the first request identification information based on at least one piece of request parameter information of the data processing request, if the data processing request does not carry the request identification information, wherein the at least one piece of request parameter information comprises at least one of engine description information of the data engine and interface description information corresponding to the data processing request.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the first request identification information comprises at least one of the at least one piece of request parameter information and a request tracking identifier generated by the metadata server for the data processing request; and/or
the determining the first request identification information based on at least one piece of request parameter information of the data processing request, if the data processing request does not carry the request identification information, comprises:
if the data engine does not provide a log identifier and does not generate a request tracking identifier for the data processing request, determining the first request identification information based on at least one piece of request parameter information of the data processing request.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the engine description information comprises at least one of an engine identifier of the data engine and a user identifier of the data engine; and/or
the interface description information comprises at least one of an interface identifier corresponding to the data processing request and an interface parameter corresponding to the data processing request.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the metadata server is a metadata service system.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the metadata server comprises a metadata service gateway and at least one metadata service system; and
the determining first request identification information based on request identification information carried in the data processing request comprises:
determining, by the metadata service gateway, the first request identification information based on the request identification information carried in the data processing request; and
the executing request processing logic corresponding to the data processing request, and generating a log corresponding to the request processing logic based on the first request identification information comprises:
generating, by the metadata service gateway, a data processing message carrying the first request identification information based on the data processing request, sending, by the metadata service gateway, the data processing message to a target system in the at least one metadata service system, and generating, by the metadata service gateway, a metadata service gateway log corresponding to the data processing message based on the first request identification information, wherein the metadata service gateway log carries the first request identification information; and
executing, by the target system, message processing logic corresponding to the data processing message, and generating, by the target system, a system log corresponding to the message processing logic based on the first request identification information carried in the data processing message, wherein the system log carries the first request identification information.

### Claim 10 (depends on 9)

The method according to claim 9, further comprising:
after the message processing logic corresponding to the data processing message is executed, clearing, by the target system, the first request identification information recorded in the target system, and sending, by the target system, a first feedback message to the metadata service gateway;
after the metadata service gateway receives the first feedback message, clearing, by the metadata service gateway, the first request identification information recorded in the metadata service gateway, and sending, by the metadata service gateway, a second feedback message to the data engine; and
after the data engine receives the second feedback message, if a target identifier corresponding to the first request identification information is recorded in the data engine, clearing, by the data engine, the target identifier recorded in the data engine.

### Claim 11 (depends on 10)

The method according to claim 10, wherein if the data engine supports log identifier configuration and the first request identification information recorded in the data engine comprises a log identifier and a request tracking identifier, the target identifier is the request tracking identifier.

### Claim 12 (depends on 1)

The method according to claim 1, wherein if the data processing request carries the first request identification information, the data engine is configured to generate an engine log for the data processing request, and the engine log carries the first request identification information.

### Claim 13 (depends on 1)

A method of querying a lakehouse metadata service log, wherein the method is applied to a metadata server, and the method comprises:
receiving a log query request sent by a log request device, wherein the log query request is used for requesting to query a log corresponding to a data processing request that is sent by a data engine to the metadata server;
determining, as second request identification information, request identification information corresponding to the data processing request and carried in the log query request, wherein the second request identification information is used for identifying the data processing request; and
determining a log query result corresponding to the log query request based on a log carrying the second request identification information and existing in a log record of the metadata server, wherein the log in the log record is generated by using the method of generating a lakehouse metadata service log according to claim 1.

### Claim 14 (depends on 13)

The method according to claim 13, further comprising:
if the log query request does not carry the request identification information corresponding to the data processing request and the log query request carries a log query time range and at least one piece of request parameter information of the data processing request, generating the second request identification information based on the at least one piece of request parameter information carried in the log query request; or determining the second request identification information from the log record of the metadata server based on the log query time range and the at least one piece of request parameter information carried in the log query request, wherein the at least one piece of request parameter information comprises at least one of engine description information of the data engine and interface description information corresponding to the data processing request; and
determining the log query result corresponding to the log query request based on a log that exists in the log record of the metadata server, that meets the log query time range, and that carries the second request identification information.

### Claim 15 (depends on 13)

The method according to claim 13, wherein the log request device is configured to integrate the log query result fed back by the metadata server and a log recorded in the data engine for the data processing request, to obtain an integrated log, and the integrated log is used for describing a process executed by using the data engine and the metadata server for the data processing request.

### Claim 16 (depends on 15)

The method according to claim 15, wherein if the log query request carries the request identification information corresponding to the data processing request, the log recorded in the data engine for the data processing request is a log carrying the request identification information and existing in a log record of the data engine.

### Claim 17 (depends on 13)

The method according to claim 13, wherein the log request device is the data engine.

### Claim 18

An electronic device, wherein the device comprises a processor and a memory;
the memory is configured to store an instruction or a computer program; and
the processor is configured to execute the instruction or the computer program in the memory, so that the electronic device executes a method of generating a lakehouse metadata service log, wherein the method is applied to a metadata server, and the method comprises:
receiving a data processing request sent by a data engine;
determining first request identification information based on request identification information carried in the data processing request, wherein the first request identification information is used for identifying the data processing request; and if the data engine provides a log identifier and generates a request tracking identifier for the data processing request, the request identification information comprises the log identifier and the request tracking identifier; if the data engine does not provide a log identifier and generates a request tracking identifier for the data processing request, the request identification information comprises the request tracking identifier; and
executing request processing logic corresponding to the data processing request, and generating a log corresponding to the request processing logic based on the first request identification information, wherein the log carries the first request identification information.

### Claim 19 (depends on 1)

An electronic device, wherein the device comprises a processor and a memory;
the memory is configured to store an instruction or a computer program; and
the processor is configured to execute the instruction or the computer program in the memory, so that the electronic device executes a method of querying a lakehouse metadata service log, wherein the method is applied to a metadata server, and the method comprises:
receiving a log query request sent by a log request device, wherein the log query request is used for requesting to query a log corresponding to a data processing request that is sent by a data engine to the metadata server;
determining, as second request identification information, request identification information corresponding to the data processing request and carried in the log query request, wherein the second request identification information is used for identifying the data processing request; and
determining a log query result corresponding to the log query request based on a log carrying the second request identification information and existing in a log record of the metadata server, wherein the log in the log record is generated by using the method of generating a lakehouse metadata service log according to claim 1.

### Claim 20

A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores an instruction or a computer program that, when running on a device, causes the device to execute
method of generating a lakehouse metadata service log, wherein the method is applied to a metadata server, and the method comprises:
receiving a data processing request sent by a data engine;
determining first request identification information based on request identification information carried in the data processing request, wherein the first request identification information is used for identifying the data processing request; and if the data engine provides a log identifier and generates a request tracking identifier for the data processing request, the request identification information comprises the log identifier and the request tracking identifier; if the data engine does not provide a log identifier and generates a request tracking identifier for the data processing request, the request identification information comprises the request tracking identifier; and
executing request processing logic corresponding to the data processing request, and generating a log corresponding to the request processing logic based on the first request identification information, wherein the log carries the first request identification information.
