A materialized column creation method and data query method based on data lake

By creating materialized columns in the data lake and replacing OLAP equipment to process ordinary columns, the problem of inefficiency of OLAP equipment in semi-structured data processing is solved and more efficient data query and processing are achieved.

CN114969044BActive Publication Date: 2024-10-11BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210603047.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2024-10-11
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

Existing OLAP-based equipment has problems with poor information processing when processing semi-structured data, including waste of high IO resources, extra calculations, inability to support push-down filtering, and inability to perform vectorized reading.

Method used

Using the materialized column creation method based on the data lake, by obtaining the user's materialized column creation request, creating materialized columns to replace the target columns, rewriting data writing and query requests, and optimizing the data storage and query process.

Benefits of technology

It effectively overcomes the waste of IO resources and computing resources when using ordinary columns directly, improves data query efficiency and information processing effect, and supports vectorized reading and push-down filtering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114969044B_ABST
    Figure CN114969044B_ABST
Patent Text Reader

Abstract

The present application discloses a materialized column creation method and a data query method based on a data lake. In these methods, at least one materialized column can be created for a data table first, so that these materialized columns are used to store data related to common columns in the data table (for example, high-frequency sub-columns such as "people.age"), so that when a user subsequently triggers a data query request for the common column, the materialized column can replace the common column to feed back the queried data to the user, thereby effectively overcoming the adverse effects caused by directly feeding back the queried data to the user by the common column (for example, wasting IO resources, increasing additional calculations, etc.), thereby effectively improving the data query effect, and further effectively improving the information processing effect for these data tables.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information processing technology, and in particular to a materialized column creation method, a data writing method, a data query method, a materialized column creation device, a data writing device, a data query device, an information processing system, an electronic device, a computer-readable medium, and a computer program product based on a data lake. Background Art

[0002] With the development of information technology, the demand for information processing is increasing, so the number of devices used to implement information processing is also increasing. For ease of understanding, the following is an explanation with examples.

[0003] As an example, in some application scenarios, some information processing processes (for example, data storage, data query and other information processing processes) can be implemented using devices based on online analytical processing (OLAP) (for example, some native OLAP engines, etc.).

[0004] However, due to defects in some OLAP-based devices, the information processing effect of these devices is relatively poor. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a materialized column creation method, a data writing method, a data query method, a materialized column creation device, a data writing device, a data query device, an information processing system, an electronic device, a computer-readable medium and a computer program product based on a data lake, which can improve the information processing effect.

[0006] In order to achieve the above purpose, the technical solutions provided by the embodiments of the present application are as follows:

[0007] An embodiment of the present application provides a materialized column creation method based on a data lake, the method comprising: obtaining a materialized column creation request triggered by a first user; wherein the materialized column creation request is used to request the creation of a first materialized column in a first data table; the materialized column creation request carries a materialized expression of the first materialized column; the materialized expression is used to describe a data association relationship between the first materialized column and a target column in the first data table; according to the materialized column creation request, the first materialized column is created; wherein the first materialized column is used to replace the target column to provide data for a data query request carrying the materialized expression.

[0008] An embodiment of the present application provides a data writing method based on a data lake, the method comprising: obtaining a first data writing request triggered by a second user; wherein the first data writing request is used to request writing data into a second data table; the first data writing request carries data column description information for the second data table; when it is determined that the data column description information satisfies a preset extension condition and it is determined that there is at least one second materialized column in the second data table, the first data writing request is rewritten according to a materialized expression of the at least one second materialized column to obtain a second data writing request; wherein the second materialized column is created by using any implementation method of the materialized column creation method based on a data lake provided in an embodiment of the present application; and data writing processing is performed on the second data table according to the second data writing request.

[0009] An embodiment of the present application provides a data query method based on a data lake, the method comprising: obtaining a first data query request triggered by a third user; wherein the first data query request is used to request a data query for a third data table; when there is at least one third materialized column in the third data table, the first data query request is rewritten using materialized column description information of the at least one third materialized column to obtain a second data query request; wherein the third materialized column is created using any implementation of a materialized column creation method based on a data lake provided in an embodiment of the present application; and data query processing is performed on the third data table according to the second data query request.

[0010] An embodiment of the present application provides a materialized column creation device based on a data lake, including: a first acquisition unit, used to acquire a materialized column creation request triggered by a first user; wherein the materialized column creation request is used to request to create a first materialized column in a first data table; the materialized column creation request carries a materialized expression of the first materialized column; the materialized expression is used to describe a data association relationship between the first materialized column and a target column in the first data table; a materialized column creation unit, used to create the first materialized column according to the materialized column creation request; wherein the first materialized column is used to replace the target column to provide data for a data query request carrying the materialized expression.

[0011] An embodiment of the present application provides a data writing device based on a data lake, including: a second acquisition unit, used to acquire a first data writing request triggered by a second user; wherein the first data writing request is used to request to write data into a second data table; the first data writing request carries data column description information for the second data table; a first rewriting unit, used to rewrite the first data writing request according to a materialized expression of the at least one second materialized column to obtain a second data writing request when it is determined that the data column description information meets a preset extension condition and that there is at least one second materialized column in the second data table; wherein the second materialized column is created by using any implementation method of the materialized column creation method based on the data lake provided in the embodiment of the present application; and a data writing unit, used to perform data writing processing on the second data table according to the second data writing request.

[0012] An embodiment of the present application provides a data query device based on a data lake, including: a third acquisition unit, used to acquire a first data query request triggered by a third user; wherein the first data query request is used to request a data query for a third data table; a second rewriting unit, used to, when there is at least one third materialized column in the third data table, rewrite the first data query request using materialized column description information of the at least one third materialized column to obtain a second data query request; wherein the third materialized column is created using any implementation method of a materialized column creation method based on a data lake provided in an embodiment of the present application; and a data query unit, used to perform data query processing on the third data table according to the second data query request.

[0013] An embodiment of the present application provides an information processing system based on a data lake, the system comprising an information processing layer; wherein the information processing layer is used to execute any implementation of the materialized column creation method based on a data lake provided in the embodiment of the present application, or execute any implementation of the data writing method based on a data lake provided in the embodiment of the present application, or execute any implementation of the data query method based on a data lake provided in the embodiment of the present application.

[0014] An embodiment of the present application provides an electronic device, characterized in that the device includes a processor and a memory: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory, so that the electronic device executes any implementation of the materialized column creation method based on the data lake provided in the embodiment of the present application, or executes any implementation of the data writing method based on the data lake provided in the embodiment of the present application, or executes any implementation of the data query method based on the data lake provided in the embodiment of the present application.

[0015] An embodiment of the present application provides a computer-readable medium, in which instructions or computer programs are stored. When the instructions or computer programs are executed on a device, the device executes any implementation of the materialized column creation method based on a data lake provided in the embodiment of the present application, or executes any implementation of the data writing method based on a data lake provided in the embodiment of the present application, or executes any implementation of the data query method based on a data lake provided in the embodiment of the present application.

[0016] An embodiment of the present application provides a computer program product. When the computer program product runs on a terminal device, the terminal device executes any implementation of the materialized column creation method based on a data lake provided in the embodiment of the present application, or executes any implementation of the data writing method based on a data lake provided in the embodiment of the present application, or executes any implementation of the data query method based on a data lake provided in the embodiment of the present application.

[0017] Compared with the prior art, the embodiments of the present application have at least the following advantages:

[0018] In the technical solution provided in the embodiment of the present application, at least one materialized column can be first created for a data table, so that these materialized columns are used to store some data related to ordinary columns in the data table (for example, high-frequency sub-columns similar to "people.age" below), so that when the user subsequently triggers a data query request for the ordinary column, the materialized column can replace the ordinary column to feedback the queried data to the user. This can effectively overcome the adverse effects caused by directly feedback the queried data to the user by the ordinary column (for example, wasting IO resources, increasing additional calculations, etc.), thereby effectively improving the data query effect, and then effectively improving the information processing effect for these data tables. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 A schematic diagram of a data query process provided in an embodiment of the present application;

[0021] Figure 2 A schematic diagram of another data query process provided in an embodiment of the present application;

[0022] Figure 3A flowchart of a method for creating a materialized column based on a data lake provided in an embodiment of the present application;

[0023] Figure 4 A schematic diagram of a materialized column creation statement provided in an embodiment of the present application;

[0024] Figure 5 A schematic diagram of a storage method of data column declaration information provided in an embodiment of the present application;

[0025] Figure 6 A schematic diagram of a storage method of a materialized expression provided in an embodiment of the present application;

[0026] Figure 7 An example diagram of an information processing system based on a data lake provided in an embodiment of the present application;

[0027] Figure 8 A schematic diagram of a data writing statement provided in an embodiment of the present application;

[0028] Fig. 9 A flowchart of a data writing method based on a data lake provided in an embodiment of the present application;

[0029] Fig.10 A flowchart of a data query method based on a data lake provided in an embodiment of the present application;

[0030] Fig.11 A schematic diagram of the structure of a materialized column creation device based on a data lake provided in an embodiment of the present application;

[0031] Fig.12 A schematic diagram of the structure of a data writing device based on a data lake provided in an embodiment of the present application;

[0032] Fig.13 A schematic diagram of the structure of a data query device based on a data lake provided in an embodiment of the present application;

[0033] Fig.14 A schematic diagram of the structure of an information processing system based on a data lake provided in an embodiment of the present application;

[0034] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] The inventors found in their research on OLAP-based devices (e.g., some native OLAP engines) that these devices have relatively poor information processing effects on semi-structured data. Among them, semi-structured data may include data of the mapping type, data of the structure type, data of the array type, data of the Json (JavaScript Object Notation, JS object notation) type, etc. For ease of understanding, the following is an explanation with examples.

[0036] As an example, for a native OLAP engine, when the native OLAP engine wants to read a nested type data column (for example, Figure 1 A subcolumn in the nested type data column "people" shown in the figure (for example, Figure 1 When querying the sub-column "people.age" shown in the figure), the native OLAP engine usually needs to load all the nested data columns into memory first; then, the native OLAP engine extracts the sub-column to be queried from the memory. Figure 1 Provide detailed explanation.

[0037] like Figure 1 As shown in the figure, for a data table named base_table, the data table includes three columns: item, count, and people; and the data column named people in the data table is of Map type, and includes three sub-columns: name, age, and gender, which are of atomic type. Based on this, if the user wants to query the data under the sub-column people.age, the native OLAP engine will first load the data column named people from the disk into the memory; then the native OLAP engine will extract the sub-column named age from the data column stored in the memory; finally, the native OLAP engine will feed back the sub-column to the user.

[0038] It should be noted that, in order to facilitate understanding Figure 1 , the following will introduce Figure 1 Some of the English and their corresponding Chinese, or some of the Chinese and their corresponding English: disk; memory; base_table; item; count; people; name; age; gender. In addition, Figure 1The string "select people.age frombase_tanle" shown in the table is a data query statement, which means to query the subcolumn named age in the data column named people from the data table named base_table. In addition, Figure 1 The "item", "count", "people", "name", "age", and "gender" shown in are all column names. Also, Figure 1 The "map" shown is used to indicate that the data column with people as the column name belongs to the Map type; "int" is used to indicate that the data column with count as the column name belongs to the int type (that is, integer type); and "string" is used to indicate that the data column with item as the column name belongs to the string type (that is, character string type).

[0039] Based on the above examples and Figure 1 It can be seen from the relevant content that the native OLAP engine has the following defects in the process of reading a sub-column in a nested type data column:

[0040] (1) Increase a large number of invalid input / output (IO). That is, even if the native OLAP engine only queries one sub-column, the native OLAP engine needs to read the data of the entire nested type data column where the sub-column is located into the memory. It is measured that there are about 80% invalid IOs, which leads to a large waste of IO resources.

[0041] (2) Additional calculations. That is, each time a query involves a nested data column (for example, querying a sub-column in the nested data column), the native OLAP engine needs to perform parsing calculations on the nested data column, which results in a large waste of computing resources.

[0042] (3) Nested types do not support push-down filtering. For example, for the filter statement "where people.age>10" used to filter people older than 10, although the "people.age" subcolumn is an atomic type in the data table, the native OLAP engine cannot directly read and filter the subcolumn. Instead, it uses the following process to implement it: the native OLAP engine usually first loads the entire data column named "people" from the disk into the memory; then the native OLAP engine extracts the subcolumn named "age" from the data column stored in the memory; finally, the native OLAP engine filters the data that meets the condition "age>10" from the subcolumn.

[0043] (4) Vectorized reading is not possible. That is, because the native OLAP engine usually only supports vectorized reading for atomic type data columns, but does not support vectorized reading for nested type data columns, the reading performance of the native OLAP engine is relatively poor.

[0044] Based on the above findings, in order to solve the technical problems shown in the background technology section, the present application embodiment provides a solution based on materialized columns (for example, Figure 2 The solution shown in the figure is as follows: first, for a data table (for example, Figure 1 Create at least one materialized column (for example, Figure 2 The data columns named "age" shown in the figure are used to store some data similar to the normal columns in the data table (for example, similar to Figure 1 In the example shown in the figure, the materialized column is used to store data related to the data in the data column named "people", such as the high-frequency sub-columns named "age" in the data column named "people", so that when the user subsequently triggers a data query request for the ordinary column, the materialized column can replace the ordinary column to feedback the queried data to the user. This can effectively overcome the adverse effects caused by directly feedback the queried data to the user by the ordinary column (for example, waste of IO resources, waste of computing resources, etc.), thereby effectively improving the data query effect, and then effectively improving the information processing effect for these data tables. For the relevant content of the materialized column, please refer to the following. Ordinary columns refer to other data columns in a data table except materialized columns. High-frequency sub-columns refer to data columns in a data table that are frequently queried by users.

[0045] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0046] In order to better understand the technical solution of the present application, the technical solution of the present application will be described in three parts below: a materialized column creation process, a materialized column writing process, and a materialized column query process.

[0047] Materialized column creation process

[0048] In fact, a materialized column in a data table is essentially a common column associated with a materialized expression, so that the materialized column can express the relationship between it and a common column in the data table (for example, equality, etc.) with the help of the materialized expression. It can be seen that compared with the creation process of a common column, a materialized expression needs to be specified for the materialized column during its creation process, so that the materialized expression can express the relationship between the materialized column and a data column in the data table.

[0049] Based on this, the embodiment of the present application provides a materialized column creation method based on a data lake, the method comprising S301-S302 (such as Figure 3 shown):

[0050] S301: Obtain a materialized column creation request triggered by a first user.

[0051] The first user is used to represent a person who has a need to create a materialized column; and the embodiment of the present application does not limit the first user.

[0052] The materialized column creation request is used to request the creation of a first materialized column in the first data table; and the materialized column creation request carries a materialized expression of the first materialized column, so that the materialized expression can describe the data association relationship between the first materialized column and the target column in the first data table.

[0053] The first data table refers to the data table for which materialized columns need to be created; and the embodiment of the present application does not limit the first data table, for example, it can be Figure 1 The data table shown has base_table as the table name.

[0054] The first materialized column refers to a data column that needs to be created in the first data table and is associated with a materialized expression, so that the first materialized column has a data association relationship with the target column in the first data table (for example, an association relationship such as being equal or differing by a preset value). Figure 1 The data table with base_table as the table name and the target column is Figure 1 As shown in the following example, if the data column named people has a subcolumn named age, the first materialized column can be Figure 2 The data column shown has age as the column name, and the data association relationship between the first materialized column and the target column is data equality, so that the first materialized column can be directly used instead of the target column in the future.

[0055] The above “materialized expression of the first materialized column” is used to represent the data association relationship between the first materialized column and the target column in the first data table. For example, when the first materialized column is Figure 2 The data column with age as the column name is shown, and the target column is Figure 1 As shown, when there is a subcolumn named age in the data column named people, the materialized expression of the first materialized column can indicate that the data in the first materialized column is equal to the data in the target column.

[0056] The target column refers to a data column in the first data table that has a data association relationship with the first materialized column (for example, Figure 1 The data columns with item as the column name shown; or, Figure 1 The materialized expression of the first materialized column includes the description information of the target column (for example, a data column identifier similar to "people.age"). The data column identifier is used to uniquely identify a data column; and the embodiment of the present application does not limit the data column identifier. For example, the data column identifier may include the column name of the data column. For another example, if the data column is a subcolumn of a nested type data column, the data column identifier may include not only the column name of the subcolumn, but also the column name of the nested type data column.

[0057] In addition, the embodiment of the present application does not limit the materialized column creation request. For example, it may be a materialized column creation statement, so that the materialized column creation statement can express the user's demand to create a first materialized column in the first data table.

[0058] In fact, in order to meet the materialized column creation requirements, the embodiment of the present application also provides a materialized column creation syntax (such as the materialized column creation syntax shown in Table 1), and the materialized column creation syntax is specifically: adding a new materialized column keyword (for example, MATERIALIZED) to the original data column creation syntax (such as the original data column creation syntax shown in Table 1), so that the materialized column keyword is used to specify the materialized expression.

[0059]

[0060] Table 1 Comparison between the original data column creation syntax and the materialized column creation syntax

[0061] It should be noted that, for Table 1, the string "columnName" is used to indicate the column name of the data column; the string "dataType" is used to indicate the data type of the data column; the string "[COMMENT STRING]" is used to indicate the comment information of the data column; "MATERIALIZED" is used to indicate the materialized column keyword; and "expression" is used to indicate the materialized expression.

[0062] In fact, in order to better improve the user experience, the first user can use the materialized column creation syntax in the two scenarios shown in Table 2 below.

[0063] Based on the above-mentioned materialized column creation syntax, it can be known that when a first user wants to create a first materialized column in a first data table, the first user can enter a corresponding materialized column creation statement (for example, Figure 4 The table creation statement shown in the upper left corner, or Figure 4 The materialized column creation statement shown in the upper right corner, etc.) is used to enable the materialized column creation statement to express the user's demand for creating the first materialized column in the first data table. For ease of understanding, the following two examples are used for explanation. Among them, the user interface corresponding to the first user refers to an interface that allows the first user to input a materialized column creation statement.

[0064] Example 1: When a first user wants to create a first materialized column when creating a first data table, the first data table is Figure 2 The data table with base_table as the table name is shown, and the first materialized column is Figure 2 When the materialized column with age as the column name is shown, the first user can enter Figure 4 The data table creation statement shown in the upper left corner can express the user's requirement to create the first materialized column when creating the first data table.

[0065] Example 2: When the first user wants to add a first materialized column to the first data table that has been created, the first data table is Figure 1 The data table with base_table as the table name has been stored on the disk, and the first materialized column is Figure 2 When the materialized column with age as the column name is shown, the first user can enter Figure 4 The materialized column adding statement shown in the upper right corner can express the user's demand for creating the first materialized column in the existing first data table.

[0066]

[0067] Table 2 Two usage scenarios of materialized column creation syntax

[0068] Based on the relevant content of the above-mentioned materialized column creation statement, it can be known that in some application scenarios, if the first user wants to create a first materialized column in the first data table, the first user can write a corresponding materialized column creation statement according to the preset grammatical rules (for example, the materialized column creation grammar shown in Table 1), so that the materialized column creation statement can express the user's demand for creating the first materialized column in the first data table, thereby achieving the purpose of expressing user needs with the help of some statements.

[0069] In addition, the embodiment of the present application does not limit the triggering method of the materialized column creation request. For example, it can be implemented by any existing or future request triggering method. For another example, when the materialized column creation request is a materialized column creation statement, the first user can trigger the materialized column creation request by inputting the materialized column creation statement on the corresponding user interface.

[0070] In addition, the embodiments of the present application do not limit the method for obtaining the materialized column creation request. For example, when the executor of the materialized column creation method based on the data lake provided in the embodiments of the present application is the information processing layer in the "information processing system based on the data lake" below, and the information processing layer includes a user interface for the first user, the information processing layer can obtain the materialized column creation request triggered by the first user from the user interface.

[0071] Based on the relevant content of S301 above, it can be known that if the first user wants to create a first materialized column associated with a data column in the first data table, the first user can trigger a materialized column creation request on the corresponding user interface, so that the materialized column creation request can express the user's demand for creating the first materialized column in the first data table, so that the execution entity of the materialized column creation method based on the data lake provided in the embodiment of the present application (for example, the "information processing layer" below, etc.) can interpret the user demand from the materialized column creation request.

[0072] S302: Create a first materialized column according to the materialized column creation request; wherein the first materialized column is used to replace the target column to provide data for a data query request carrying a materialized expression of the first materialized column.

[0073] In the embodiment of the present application, after obtaining a materialized column creation request, a first materialized column can be created in the first data table according to the materialized column creation request, so that the first data table includes the first materialized column, so that the first materialized column can be used as a data column in the first data table to respond to data query requests triggered for the first data table (for example, some data query requests carrying materialized expressions of the first materialized column, etc.). Among them, because there is a data association relationship between the first materialized column and the target column in the first data table, in some cases (for example, the data query request carries the materialized expression of the first materialized column, etc.), the first materialized column can replace the target column to respond to the data query request for the first data table, so that the adverse effects caused by the inconvenience of reading the target column can be effectively avoided, thereby effectively improving the data query efficiency, and further facilitating the improvement of information processing effect.

[0074] In fact, the essence of creating a materialized column is to store the materialized column in the storage space. Based on this, the embodiment of the present application also provides a possible implementation of S302, which can be specifically: according to the materialized column description information of the first materialized column carried by the materialized column creation request, create the first materialized column in the data storage space, so that the first materialized column is stored in the data storage space.

[0075] The materialized column description information of the first materialized column is used to describe the first materialized column; and the embodiment of the present application does not limit the materialized column description information, for example, it may at least include the materialized column identifier of the first materialized column (for example, Figure 4 The column name "age" shown), the data type of the first materialized column (for example, Figure 4 STRING), and the materialized expression of the first materialized column (for example, Figure 4 At least one of the “people.age” shown.

[0076] The above-mentioned “data storage space” refers to a space for storing data tables; and the present application embodiment does not limit the data storage space, for example, it can be Figure 1 The disk shown.

[0077] In fact, a materialized expression is a kind of descriptive information that is unique to a materialized column and is clearly different from an ordinary column (that is, a traditional data column). However, how to store a materialized expression of a materialized column has become a technical problem that needs to be solved urgently. In addition, the inventors found in their research on data tables that each data column corresponds to a Map type of metadata; and if declaration information (for example, Figure 5 COMMENT'this is amaterialized column'), the declaration information will be stored in the metadata of this column in the form of key-value pairs (for example, Figure 5 storage results shown).

[0078] The inventors also found that the storage of materialized expressions (such as Figure 6As shown). Based on this, an embodiment of the present application provides a storage process for a materialized expression, which may specifically include: firstly creating metadata of a first materialized column in a data storage space, so that the metadata of the first materialized column is stored in the data storage space; then storing the materialized expression of the first materialized column in the metadata according to a preset description method (for example, a key-value pair method, etc.), so that the metadata includes the materialized expression of the first materialized column, so that the materialized expression of the first materialized column is stored in the data storage space, so that the purpose of storing materialized expressions specific to the materialized column can be achieved.

[0079] It can be seen that the embodiments of the present application can refer to Figure 5 The storage method of declaration information shown in the figure implements the storage of materialized expressions for a materialized column (such as Figure 6 The storage shown in the figure) enables the materialized expression of each materialized column to be stored in the matedata of the materialized column. This not only realizes the storage of materialized expressions, but also achieves the purpose of information association (that is, associating the materialized column with the materialized expression of the materialized column), so that the materialized column and the ordinary column can be distinguished later by judging whether the key materialized_expression exists in the metadata of a data column.

[0080] Based on the relevant contents of S301 to S302 above, it can be known that for the materialized column creation method based on the data lake provided in the embodiment of the present application, after obtaining the materialized column creation request triggered by the first user, a first materialized column is created in the first data table according to the materialized column creation request, so that the first data table includes the first materialized column, so that the user demand for creating the first materialized column in the first data table expressed by the materialized column creation request can be realized. Among them, because there is a data association relationship between the first materialized column in the first data table and the target column in the first data table, in some cases the first materialized column can replace the target column to respond to the data query request triggered for the first data table, so that the adverse effects caused by the inconvenience of reading the target column can be effectively avoided, thereby effectively improving the efficiency of data query, and thus helping to improve the information processing effect.

[0081] In fact, in some scenarios (for example, OLAP scenarios, etc.), different information processing devices have their own unique language characteristics (for example, various OLAP engines have their own dialects), so when a first user wants to use different information processing devices to perform a task (for example, a materialized column creation task, etc.), the first user needs to express the task using the dialect of each information processing device, which results in relatively low task triggering efficiency and thus a poor user experience.

[0082] In order to overcome the above problems, the present application embodiment provides another possible implementation method of the materialized column creation method based on the data lake. In this implementation method, Figure 7 The data lake-based information processing system 700 shown executes the materialized column creation method, and the execution process may specifically include step 21-step 22:

[0083] Step 21: The information processing layer 701 obtains a materialized column creation request triggered by the first user.

[0084] It should be noted that for the relevant content of step 21, please refer to S301 above.

[0085] Based on the relevant content of step 21, it can be known that if the first user wants to create a first materialized column in the first data table that is associated with a data column in the first data table, the first user can trigger a materialized column creation request on the user interface provided by the information processing layer 701 for the first user, so that the materialized column creation request can express the user's demand for creating the first materialized column in the first data table, so that the information processing layer 701 can interpret the user demand from the materialized column creation request.

[0086] Step 22: the information processing layer 701 creates the first materialized column according to the materialized column creation request.

[0087] It should be noted that for the relevant content of step 22, please refer to S302 above.

[0088] In fact, the information processing layer 701 can implement the creation process for the first materialized column with the help of the task execution layer 702 including multiple task execution devices. Based on this, the embodiment of the present application also provides a possible implementation method of the creation process of the first materialized column, which can specifically include steps 221 to 225:

[0089] Step 221: the information processing layer 701 obtains the materialized column creation device description information.

[0090] The materialized column creation device description information is used to describe a task execution device (eg, an OLAP engine in the task execution layer 702 ) that can execute the task of creating the first materialized column.

[0091] In addition, the embodiment of the present application does not limit the materialized column creation device description information, for example, it may include the device description information (for example, device identification, etc.) of the task execution device that can execute the task of creating the first materialized column. The device identification is used to uniquely represent the task execution device (for example, OLAP engine, etc.) in the task execution layer 702; and the embodiment of the present application does not limit the device identification, for example, it may be a device name (for example, Figure 2"Spark Engine" shown in the figure).

[0092] In addition, the embodiment of the present application does not limit the process of obtaining the device description information for creating the materialized column (that is, the implementation method of step 221). For ease of understanding, the following description is combined with two cases.

[0093] In case 1, the first user may directly specify which task execution device in the task execution layer 702 is to execute the task of creating the first materialized column.

[0094] In order to achieve the user needs shown in Situation 1, the embodiment of the present application also provides a possible implementation method of the above-mentioned "materialized column creation request". In this implementation method, the materialized column creation request not only includes the column name of the first materialized column, the data type of the first materialized column, and the materialized expression of the first materialized column, but also may include materialized column creation device description information of the first materialized column, so that the subsequent information processing layer 701 can know from the materialized column creation request which task execution device in the task execution layer 702 the first user wants to use to perform the task of creating the first materialized column.

[0095] It can be seen that when the above "materialized column creation request" carries the materialized column creation device description information of the first materialized column, step 221 can be specifically as follows: after the information processing layer 701 obtains the materialized column creation request triggered by the first user, the information processing layer 701 extracts the materialized column creation device description information from the materialized column creation request, so that the materialized column creation device description information is used to indicate which task execution device in the task execution layer 702 the first user wants to use to perform the task of creating the first materialized column. In this way, the purpose of the user specifying the materialized column creation device can be achieved, which is conducive to improving the user experience.

[0096] In case 2, the information processing layer 701 can pre-set a default execution device for executing the task of creating a materialized column, so that when the first user does not specify a task execution device for executing the task of creating the first materialized column, the information processing layer 701 can select the task execution device for the task as reasonably as possible.

[0097] In order to achieve the service requirements shown in Situation 2, the embodiment of the present application also provides an implementation of the information processing layer 701. In this implementation, a preset mapping relationship is stored in the information processing layer 701, so that the preset mapping relationship is used to record the default execution device corresponding to various request types; and the embodiment of the present application does not limit the preset mapping relationship, for example, it may include the corresponding relationship shown in Table 3 below.

[0098]

[0099] Table 3 Various request types and their corresponding default execution devices

[0100] It should be noted that the "data query request with a smaller workload" and the "data query request with a larger workload" shown in Table 3 are usually clearly divided based on the estimated workload size of the request. Among them, the estimated workload size of a query request can usually be determined based on the three execution-time scan data statistics of the input partition number (InputPartitionNum), input bytes (InputBytes) and number of rows (RowNumber); and the embodiment of the present application does not limit the implementation method of the determination process. In addition, for materialized columns, the information processing layer 701 will also make a simple estimate based on the Parquetfooter of the physical file to achieve the purpose of optimizing the scan data statistics.

[0101] It can be seen that when a preset mapping relationship is stored in the information processing layer 701, step 221 can be specifically as follows: after the information processing layer 701 obtains the materialized column creation request triggered by the first user, the information processing layer 701 first identifies the request type to which the materialized column creation request belongs, so that when it is determined that the materialized column creation request belongs to the first request type, the task execution device description information corresponding to the first request type is queried from the preset mapping relationship (for example, the "Spark engine" mentioned above, etc.), and the materialized column creation device description information of the first materialized column is determined, so that the materialized column creation device description information can indicate the default execution device for executing the task of creating the first materialized column, so that the task execution device selection process can be automatically performed according to the user request, thereby helping to improve the user experience.

[0102] Based on the relevant content of the above step 221, it can be known that for the information processing layer 701, after the information processing layer 701 obtains the materialized column creation request triggered by the first user, the information processing layer 701 can determine the materialized column creation device description information of the first materialized column based on the materialized column creation request, so that the materialized column creation device description information can describe the task execution device used to perform the task of creating the first materialized column, so that the creation process of the first materialized column can be completed with the help of the execution device later.

[0103] Step 222: The information processing layer 701 creates device description information according to the materialized column, and determines the device to be created. Among them, the task execution layer 702 includes the device to be created.

[0104] The creation device to be used refers to a task execution device used to execute the task of creating the first materialized column (for example, Figure 2 The Spark engine shown); and the device to be used is present in the task execution layer 702.

[0105] In addition, the present embodiment does not limit the creation device to be used. For example, if the task execution layer 702 includes multiple OLAP engines (such as Figure 2 As shown), the creation device to be used can be any OLAP engine in the task execution layer 702.

[0106] In addition, the embodiment of the present application does not limit the implementation method of step 222. For example, when the above "materialized column creation device description information" includes a device identifier, step 222 can specifically be: directly determine the task execution device with the device identifier in the task execution layer 702 as the device to be created.

[0107] Based on the relevant content of the above step 222, it can be known that for the information processing layer 701, after the information processing layer 701 obtains the materialized column creation device description information of the first materialized column, the information processing layer 701 interprets the creation device to be used from the materialized column creation device description information, so that the creation device to be used is used to perform the task of creating the first materialized column, so that the information processing layer 701 can subsequently use the creation device to be used to complete the task of creating the first materialized column.

[0108] Step 223: the information processing layer 701 determines the first creation task from the materialized column creation request.

[0109] The first creation task is used to describe the task of creating the first materialized column in an expression that can be understood by the information processing layer 701 .

[0110] In addition, the embodiment of the present application does not limit the implementation method of step 223. For example, when the above "materialized column creation request" is a materialized column creation statement, step 223 can specifically be: after the information processing layer 701 obtains the materialized column creation request triggered by the first user, the information processing layer 701 can perform a series of processing such as lexical parsing, grammar checking, and semantic analysis on the materialized column creation request to obtain a first creation task, so that the first creation task can describe the task of creating the first materialized column in an expression that can be understood by the information processing layer 701.

[0111] It should be noted that the embodiments of the present application do not limit the implementation methods of the above-mentioned processing processes such as "lexical analysis", "grammar checking", and "semantic analysis". For example, they can be implemented according to pre-set rules. Figure 4 For the "syntax parsing" shown in the figure, the "syntax parsing" process includes three processes: lexical parsing, grammar checking, and semantic analysis. In addition, the embodiments of the present application do not limit Figure 4 The implementation method of "validity check" is shown.

[0112] Step 224: the information processing layer 701 translates the first creation task according to the task description language of the creation device to be used to obtain a second creation task; wherein the second creation task is used to implement the creation of the first materialized column.

[0113] The task description language of the device to be used is used to describe a task in an expression that the device to be used can understand. It can be seen that the task description language of the device to be used is a dialect adapted to the device to be used, so that the task description language can express the language characteristics unique to the device to be used.

[0114] The second creation task is used to describe the task of creating the first materialized column in an expression that can be understood by the creation device to be used, so that the creation device to be used can assist the information processing layer 701 in completing the task of creating the first materialized column by executing the second creation task.

[0115] Step 225: the information processing layer 701 sends the second creation task to the creation device to be used, so that the creation device to be used executes the second creation task.

[0116] In an embodiment of the present application, after the information processing layer 701 obtains the second creation task expressed according to the language characteristics unique to the creation device to be used, the information processing layer 701 can send the second creation task to the creation device to be used, so that the creation device to be used can assist the information processing layer 701 in completing the task of creating the first materialized column by executing the second creation task, thereby realizing the creation process for the first materialized column.

[0117] In addition, the embodiment of the present application does not limit the above-mentioned “the creation device to be used performs the second creation task”. For example, it can be specifically: the creation device to be used creates the first materialized column in the data storage space according to the materialized column description information of the first materialized column, so that the data storage space stores the first materialized column (such as Figure 4 shown).

[0118] Based on the relevant contents of the above steps 221 to 225, it can be known that for the information processing system 700 based on the data lake including the information processing layer 701 and the task execution layer 702, the information processing layer 701 can not only be used to perform semantic analysis and other processing for user requests (for example, the above "materialized column creation request"), but also can automatically submit the tasks obtained by the semantic analysis to a task execution device in the task execution layer 702 for execution, so as to achieve the purpose of executing the task by any task execution device in the task execution layer 702. In this way, the purpose of performing data query on multiple task execution devices (for example, multiple OLAP engines) can be achieved by using a set of unified structured query language (Structured Query Language, SQL) specifications, thereby solving the adverse effects caused by the user's need to care about the unique language characteristics of each task execution device, which is conducive to improving user experience.

[0119] It can be seen that for developers, expanding the task execution device (for example, the OLAP engine) in the task execution layer 702 is convenient and low-cost. They only need to translate and connect the tasks according to the dialect of the newly expanded task execution device, without having to worry about other processing processes (for example, the syntax parsing process, the legality verification process, the task execution logic optimization process, etc.), and can easily achieve decoupling and pluggability.

[0120] Based on the relevant contents of the above steps 21 to 22, it can be known that for the information processing system 700 based on the data lake including the information processing layer 701, the information processing layer 701 in the information processing system 700 can provide a user interface to the first user, so that the first user can trigger the materialized column creation process of the information processing layer 701 by triggering a materialized column creation request on the user interface, so as to achieve the purpose of creating corresponding materialized columns in the data table based on the materialized column creation requirements of the first user, so that these materialized columns can replace some original data columns in the data table (for example, a subcolumn in a nested type column, etc.) for use, thereby effectively avoiding the adverse effects caused by the complicated access process of these original data columns, thereby helping to improve the information processing effect.

[0121] Materialized column writing process

[0122] In fact, after creating at least one materialized column for a data table, you can write data to these materialized columns. Because a materialized column is essentially a real data column in a data table, when you want to write data to a materialized column, you can follow the normal data writing method of a data column (for example, Figure 8 This is implemented by the data writing method shown in the upper right corner, etc.

[0123] However, the inventors found in their research on the above data writing method that the above data writing method has the following disadvantages: each time a materialized column is added or deleted for a data table, the data warehouse technology (Extract-Transform-Load, ETL) task of this data table needs to be modified, which is very user-unfriendly, which means that it is difficult to promote it in the future.

[0124] In addition, in order to solve the above problem, the request can be rewritten (such as Figure 8 The statement rewriting method shown in the upper left corner, etc.) is used to achieve the purpose of transparently uploading materialized columns for the ETL tasks of each data table.

[0125] Based on this, in order to better implement writing data to the materialized column, the embodiment of the present application also provides a data writing method based on the data lake, the method includes S901-S903 (such as Fig. 9 shown):

[0126] S901: Acquire a first data writing request triggered by a second user.

[0127] The second user is used to represent a person who has a need to write data into a data table (especially, a data table including materialized columns); and the second user is not limited in the present embodiment. In addition, the association relationship between the second user and the first user above is not limited in the present embodiment. For example, the two can be the same person or different people.

[0128] The first data write request is used to request writing data into the second data table; and the first data write request carries data column description information for the second data table, so that the data column description information can indicate which data the second user wants to write into each data column in the second data table.

[0129] The second data table refers to a data table that needs to be processed for data writing; and the embodiment of the present application does not limit the second data table. For example, it can be a data table including at least one materialized column and at least one ordinary column (for example, Figure 8 The data table with base_table as the table name shown in the figure) may also be a data table including only common columns. In addition, the embodiment of the present application does not limit the association relationship between the second data table and the first data table above. For example, the two may be the same data table or different data tables.

[0130] The above “data column description information” is used to describe information related to at least one data column in the second data table; and the embodiment of the present application does not limit the data column description information, for example, it may include: the table name of the data table where at least one data column in the second data table is located (for example, Figure 8The "base_table" shown in the figure), and the data sources of the written data of these data columns (for example, Figure 8 "origin_table" etc. as shown).

[0131] In addition, the embodiment of the present application does not limit the first data write request, for example, it can be a data write statement, so that the data write statement can express the user's demand to write data to at least one data column in the second data table.

[0132] In addition, the embodiments of the present application do not limit the above-mentioned “data writing statement”. For example, it can adopt a traditional statement for expressing data writing to a data column (for example, Figure 8 For another example, in order to further avoid adverse effects caused by the user not knowing which materialized columns exist in the second data table, the above-mentioned "data writing statement" can adopt a statement dedicated to expressing data writing for materialized columns (for example, Figure 8 The data write statement shown in the upper left corner, etc.) is implemented, so that the data table can be provided to the user transparently.

[0133] It should be noted that for Figure 8For the English string shown in the figure, the Chinese interpretation of "INSERT INTO TABLE base_table" is to write data into the data table with base_table as the table name; the Chinese interpretation of "SELECT item,count,people,people.age FROM origin_table" is to select the data of the data columns with item as the column name, the data column with count as the column name, the data column with people as the column name, and the subcolumn with age as the column name in the data column with people as the column name from the data table with origin_table as the table name; "SELECT item,count,people,FROM The Chinese interpretation of "origin_table" is to select the data columns with item as the column name, count as the column name, and people as the column name from the data table with origin_table as the table name; the Chinese interpretation of "select number of columns! = number of base_table columns" is that the number of data columns carried in the data writing statement is not equal to the actual number of data columns in the data table with base_table as the table name; the Chinese interpretation of "select number of columns = number of base_table columns" is that the number of data columns carried in the data writing statement is equal to the actual number of data columns in the data table with base_table as the table name; the Chinese interpretation of "insert" is to write.

[0134] In addition, the embodiment of the present application does not limit the triggering method of the first data write request. For example, it can be implemented by any existing or future request triggering method. For another example, when the first data write request is a data write statement, the second user can trigger the first data write request by inputting the data write statement on the corresponding user interface. The user interface corresponding to the second user refers to an interface that allows the second user to input a data write statement.

[0135] Furthermore, the embodiment of the present application does not limit the method for obtaining the first data write request. For example, when the execution subject of the first data write request provided in the embodiment of the present application is Figure 7 In the information processing system 700 based on a data lake shown, when the information processing layer 701 includes a user interface for a second user, the information processing layer 701 can obtain a first data writing request triggered by the second user from the user interface.

[0136] Based on the relevant content of S901 above, it can be known that if the second user wants to write data to a data table (especially, a data table with materialized columns), the second user can trigger a first data write request on its corresponding user interface, so that the first data write request can express the user's demand to write data to at least one data column in the second data table, so that the execution subject of the materialized column writing method provided in the embodiment of the present application (for example, Figure 7 The information processing layer 701 shown in the figure can interpret the user demand from the first data writing request.

[0137] S902: When it is determined that the data column description information carried by the first data write request meets the preset extension condition and it is determined that there is at least one second materialized column in the second data table, the first data write request is rewritten according to the materialized expression of the at least one second materialized column to obtain a second data write request.

[0138] The preset extension condition is used to indicate the condition satisfied by the data writing request that needs to automatically expand the data column information; and the embodiment of the present application does not limit the preset extension condition, for example, it can be specifically: the number of data columns involved in the data column description information (that is, the number of data columns involved in the first data writing request) is less than the actual number of data columns in the second data table. For ease of understanding, the following is explained with examples.

[0139] As an example, when the first data write request is Figure 8 The data writing statement "INSERT INTO TABLE base_tableSELECT item,count,people,FROM origin_table" is shown, and the second data table is Figure 8 In the data table with base_table as the table name, the data columns involved in the first data write request are the data columns with item as the column name, the data columns with count as the column name, and the data columns with people as the column name, so that the number of data columns involved in the first data write request is 3; but the data table with base_table as the table name includes four data columns with item as the column name, the data columns with count as the column name, the data columns with people as the column name, and the data columns with age as the column name, so that the actual number of data columns in the data table is 4. It can be seen that, because 4≠3, the number of data columns involved in the first data write request is not equal to the actual number of data columns in the data table, so that the data column description information carried by the first data write request meets the preset expansion condition, so that the data column information expansion processing can be performed for the first data write request later.

[0140] The "second materialized column" mentioned above is used to represent the materialized column existing in the second data table (especially, the materialized column existing in the second data table but not involved in the first data write request); and the creation process of the second materialized column is similar to the creation process of the first materialized column mentioned above (that is, any implementation method of the "materialized column creation method based on the data lake" shown above), and for the sake of brevity, it will not be repeated here.

[0141] In addition, the above “materialized expression of the second materialized column” is also similar to the above “materialized expression of the first materialized column”, and for the sake of brevity, it will not be repeated here.

[0142] The above "second data write request" refers to the rewriting result of the first data write request, so that the number of data columns involved in the second data write request is equal to the actual number of data columns in the second data table, so that the second data write request can better express the user's demand to write data to all data columns in the second data table. For ease of understanding, the following is an example.

[0143] As an example, when the first data write request is Figure 8 The data writing statement "INSERT INTO TABLE base_tableSELECT item,count,people,FROM origin_table" is shown, and the second data table is Figure 8 In the case of a data table with base_table as the table name, since the number of data columns involved in the first data write request is not equal to the actual number of data columns in the data table, the first data write request can be rewritten to obtain a second data write request (for example, Figure 8 The rewritten data write statement shown in the upper left corner is "INSERT INTOTABLE base_table SELECT item,count,people,people.age FROM origin_table"), so that the number of data columns involved in the second data write request is 4, thereby making the number of data columns involved in the second data write request equal to the actual number of data columns in the data table, so that the second data write request can better express the user's demand to write data to all data columns in the second data table.

[0144] The above-mentioned "second data write request" can be rewritten according to the materialized expression of at least one second materialized column in the second data table, so that the second data write request includes the materialized expressions of these second materialized columns, thereby enabling the second data write request to carry information related to all data columns in the second data table.

[0145] In fact, in some scenarios, the second user may not know that there are materialized columns in the second data table. Therefore, in order to avoid the adverse effects caused by this situation, the embodiment of the present application also provides a possible implementation method for determining the second data write request, which can be specifically: according to the position arrangement order of at least one second materialized column in the second data table, the materialized expression of the at least one second materialized column is sequentially written into the first data write request to obtain the second data write request. For ease of understanding, the following is an explanation with examples.

[0146] Assume that the first data write request is Figure 8 The data writing statement "INSERT INTO TABLE base_table SELECTitem,count,people,FROM origin_table" is shown in the figure, and the second data table is Figure 8 The data table shown has base_table as the table name.

[0147] As an example, based on the above assumptions, it can be known that because the number of data columns involved in the first data write request is not equal to the actual number of data columns in the data table, the data column description information carried by the first data write request satisfies the preset extension condition, so that when it is determined that the second data table includes a materialized column with age as the column name, it can be inferred that the first data write request does not involve information related to the materialized column. Therefore, in order to better write data to the second data table, the expression of the materialized column can be automatically added to the first data write request to obtain the second data write request (that is, Figure 8 The data write statement "INSERT INTO TABLE base_table SELECT item,count,people,people.age FROM origin_table" shown in the figure is used to make the second data write request carry the information related to the materialized column, so that the purpose of performing data writing processing on each data column (that is, each ordinary column and each materialized column) in the second data table can be achieved based on the second data write request. This can effectively avoid the failure of the data write operation to the second data table due to the second user not knowing that there is a materialized column in the second data table, thereby helping to improve the user experience.

[0148] Based on the relevant content of the above example, it can be known that when it is determined that the data column description information carried by the first data write request meets the preset extension condition and it is determined that there is at least one second materialized column in the second data table, it can be determined that the first data write request is very likely not to involve the second materialized column in the second data table, so the materialized expressions of these second materialized columns can be written into the first data write request in sequence according to the position arrangement order of these second materialized columns in the second data table to obtain the second data write request, so that the second data write request can not only carry information related to these second materialized columns, but also can sort the information related to these second materialized columns according to the position arrangement order of these second materialized columns in the second data table, so that the information related to these second materialized columns carried by the second data write request can maintain a one-to-one correspondence with these second materialized columns in the second data table, thereby ensuring the accuracy of data writing.

[0149] Based on the relevant content of S902 above, it can be known that after obtaining the first data write request, it is determined whether the data column description information carried by the first data write request meets the preset extension condition. If so, it is determined whether there is a second materialized column in the second data table, so that when it is determined that there is at least one second materialized column in the second data table, the first data write request is rewritten according to the materialized expressions of these second materialized columns to obtain the second data write request, so that the second data write request carries the materialized expressions of these second materialized columns, so that the second data write request carries information related to these second materialized columns, and further the second data write request carries information related to all data columns in the second data table, so that the purpose of automatically filling in the data write request that lacks information related to the materialized column can be achieved, so as to effectively solve the problem that the second user cannot perform data write processing on the second data because the second user is not clear about the information related to the materialized column in the second data table, which is conducive to improving user experience.

[0150] S903: Perform data writing processing on the second data table according to the second data writing request.

[0151] In an embodiment of the present application, after obtaining the second data write request, data can be written to the second data table (especially, data can be written to each data column in the second data table) according to the second data write request to implement the data writing process for the second data table.

[0152] Based on the relevant contents of S901 to S903 above, it can be known that for the data lake-based data writing method provided in the embodiment of the present application, after obtaining the first data writing request triggered by the second user, if it is determined that the data column description information carried by the first data writing request meets the preset extension condition, and it is determined that there is at least one second materialized column in the second data table, the first data writing request is first rewritten according to the materialized expressions of these second materialized columns to obtain the second data writing request, so that the second data writing request carries the materialized expressions of these second materialized columns, thereby realizing the automatic rewriting process for the first data writing request; and then, according to the second data writing request, data writing processing is performed on the second data table to realize the user demand for data writing processing on the second data table. It can be seen that the materialized column writing method provided in the embodiment of the present application can automatically rewrite data write requests that lack materialized column information, so that the rewritten data write requests can carry these materialized column information. Therefore, under the premise that the second user does not know that there are materialized columns in the second data table, the second user can also use the known common columns in the second data table to implement data write processing for all data columns in the second data table, which is conducive to improving user experience.

[0153] Based on the reasons for the above-mentioned “another possible implementation of a materialized column creation method based on a data lake”, the present application embodiment further provides another possible implementation of a data writing method based on a data lake. In this implementation, Figure 7 The data lake-based information processing system 700 shown executes the data writing method, and the execution process may specifically include steps 31 to 33:

[0154] Step 31: The information processing layer 701 obtains a first data writing request triggered by a second user.

[0155] It should be noted that for the relevant content of step 31, please refer to S901 above.

[0156] Based on the relevant content of step 31, it can be known that if the second user wants to write data to a data table (especially, a data table with materialized columns), the second user can trigger a first data write request on the user interface provided to it by the information processing layer 701, so that the first data write request can express the user's demand to write data to at least one data column in the second data table, so that the information processing layer 701 can interpret the user demand from the first data write request.

[0157] Step 32: When the information processing layer 701 determines that the data column description information carried by the first data write request meets the preset extension condition, and determines that there is at least one second materialized column in the second data table, the information processing layer 701 rewrites the first data write request according to the materialized expression of the at least one second materialized column to obtain a second data write request.

[0158] It should be noted that for the relevant content of step 32, please refer to the relevant content of S902 above.

[0159] Based on the relevant contents of the above step 32, it can be known that after the information processing layer 701 obtains the first data write request, the information processing layer 701 determines whether the data column description information carried by the first data write request meets the preset extension condition. If so, the information processing layer 701 continues to determine whether there is a second materialized column in the second data table, so that when it is determined that there is at least one second materialized column in the second data table, the information processing layer 701 rewrites the first data write request according to the materialized expressions of these second materialized columns to obtain a second data write request, so that the second data write request carries the materialized expressions of these second materialized columns, so that the second data write request carries information related to these second materialized columns, and further the second data write request carries information related to all data columns in the second data table, so that the purpose of automatically filling in the data write request that lacks information related to the materialized column can be achieved, so as to effectively solve the problem that the second user cannot perform data write processing on the second data because the second user is not clear about the information related to the materialized column in the second data table, which is conducive to improving user experience.

[0160] Step 33: the information processing layer 701 performs data writing processing on the second data table according to the second data writing request.

[0161] It should be noted that for the relevant content of step 33, please refer to S903 above.

[0162] In fact, the information processing layer 701 can implement the data writing process for the second data table with the help of the task execution layer 702 including multiple task execution devices. Based on this, the embodiment of the present application also provides a possible implementation method for the data writing process for the second data table, which can specifically include steps 331-335:

[0163] Step 331: The information processing layer 701 obtains data writing device description information.

[0164] The data writing device description information is used to describe a task execution device (eg, an OLAP engine in the task execution layer 702 ) that can execute the task of writing data to the second data table.

[0165] In addition, the content related to writing data into the device description information is similar to the content related to "creating device description information for materialized columns" shown in step 221 above, so for the sake of brevity, it will not be repeated here.

[0166] Based on the relevant content of the above step 331, it can be known that for the information processing layer 701, after the information processing layer 701 obtains the first data write request triggered by the second user, the information processing layer 701 can determine the data write device description information of the second data table based on the first data write request, so that the data write device description information can describe the task execution device used to perform the task of writing data to the second data table, so that the data writing process for the second data table can be completed with the help of the execution device later.

[0167] Step 332: The information processing layer 701 determines the writing device to be used according to the data writing device description information. Among them, the task execution layer 702 includes the writing device to be used.

[0168] The writing device to be used refers to a task execution device (for example, Figure 2 The Spark engine shown); and the write device to be used exists in the task execution layer 702.

[0169] In addition, the embodiment of the present application does not limit the writing device to be used. For example, if the task execution layer 702 includes multiple OLAP engines (such as Figure 2 As shown), the writing device to be used may be any OLAP engine in the task execution layer 702.

[0170] In addition, the embodiment of the present application does not limit the implementation method of step 332. For example, when the above "data writing device description information" includes a device identifier, step 332 can specifically be: directly determine the task execution device with the device identifier in the task execution layer 702 as the writing device to be used.

[0171] Based on the relevant content of the above step 332, it can be known that for the information processing layer 701, after the information processing layer 701 obtains the data writing device description information of the second data table, the information processing layer 701 interprets the write device to be used from the data writing device description information, so that the write device to be used is used to perform the task of writing data to the second data table, so that the information processing layer 701 can subsequently use the write device to be used to complete the task of writing data to the second data table.

[0172] Step 333: The information processing layer 701 determines a first write task from the second data write request.

[0173] The first writing task is used to describe the task of performing data writing processing on the second data table in an expression that can be understood by the information processing layer 701 .

[0174] In addition, the embodiment of the present application does not limit the implementation method of step 333. For example, when the above "second data write request" is a data write statement, step 333 can be specifically as follows: after the information processing layer 701 obtains the second data write request triggered by the second user, the information processing layer 701 can perform a series of processing such as lexical parsing, grammar checking, and semantic analysis on the second data write request to obtain a first write task, so that the first write task can describe the task of performing data write processing on the second data table in an expression that can be understood by the information processing layer 701.

[0175] Step 334: the information processing layer 701 translates the first writing task according to the task description language of the writing device to be used to obtain a second writing task; wherein the second writing task is used to implement data writing processing on the second data table.

[0176] The task description language of the writing device to be used is used to describe a task in an expression that can be understood by the writing device to be used. It can be seen that the task description language of the writing device to be used is a dialect adapted to the writing device to be used, so that the task description language can express the language characteristics unique to the writing device to be used.

[0177] The second writing task is used to describe the task of writing data to the second data table in an expression that can be understood by the writing device to be used, so that the writing device to be used can assist the information processing layer 701 in completing the task of writing data to the second data table by executing the second writing task.

[0178] Step 335: the information processing layer 701 sends the second writing task to the writing device to be used, so that the writing device to be used executes the second writing task.

[0179] In an embodiment of the present application, after the information processing layer 701 obtains the second writing task expressed according to the language characteristics unique to the writing device to be used, the information processing layer 701 can send the second writing task to the writing device to be used, so that the writing device to be used can assist the information processing layer 701 in completing the task of performing data writing processing on the second data table by executing the second writing task, thereby realizing the data writing process for the second data table.

[0180] Based on the relevant contents of the above steps 31 to 33, it can be known that for the information processing system 700 based on the data lake including the information processing layer 701, the information processing layer 701 in the information processing system 700 can provide a user interface to the second user, so that the second user can trigger the data writing process of the information processing layer 701 by triggering the first data writing request on the user interface, so as to achieve the purpose of writing data to some materialized columns in the data table based on the data writing needs of the second user, so that these materialized columns can store data information, so that these materialized columns can subsequently replace some original data columns in the data table (for example, a subcolumn in a nested type column, etc.) to provide data, thereby effectively avoiding the adverse effects caused by the complicated access process of these original data columns, thereby helping to improve the information processing effect.

[0181] Materialized column query process

[0182] In fact, in order to further improve the information processing effect, not only the data writing process of the materialized column can be set to be transparent to the user, but also the data query process of the materialized column can be set to be transparent to the user, so that when the user queries a certain data table, he only needs to use the relevant content of the known ordinary columns without considering the relevant content of the unknown materialized columns.

[0183] In order to achieve the above requirements, the embodiment of the present application also provides a data query method based on a data lake, and the data query method includes S1001-S1003:

[0184] S1001: Acquire a first data query request triggered by a third user.

[0185] The third user is used to represent a person who has a data query requirement for a data table (especially a data table including materialized columns); and the third user is not limited in the present embodiment. In addition, the association relationship between the third user and the first user (or the second user) mentioned above is not limited in the present embodiment. For example, the two can be the same person or different people.

[0186] The first data query request is used to request a data query for the third data table (that is, to query certain data from the third data table); and the first data query request carries data query object description information for the third data table, so that the data query object description information can indicate which data columns the third user wishes to query data from in the third data table.

[0187] The third data table refers to a data table that needs to be processed for data query; and the embodiment of the present application does not limit the third data table, for example, it can be a data table including at least one materialized column and at least one ordinary column, or it can be a data table including only ordinary columns. In addition, the embodiment of the present application does not limit the association relationship between the third data table and the first data table (or the second data table) above, for example, the two can be the same data table or different data tables.

[0188] The above-mentioned "data query object description information" is used to describe information related to at least one data (especially, at least one data column) in the third data table; and the embodiment of the present application does not limit the data query object description information, for example, it may include: the column name of at least one data column in the third data table (for example, the column name "people.age", etc.).

[0189] In addition, the embodiment of the present application does not limit the first data query request, for example, it can be a data query statement, so that the data query statement can express the user's demand to query some data from the third data table. It should be noted that the embodiment of the present application does not limit the above-mentioned "data query statement", for example, it can be implemented using a traditional statement for expressing the query of certain data from a data table (for example, similar to the statement "SELECT people.age FROM base_table").

[0190] In addition, the embodiment of the present application does not limit the triggering method of the first data query request. For example, it can be implemented by any existing or future request triggering method. For another example, when the first data query request is a data query statement, the third user can trigger the first data query request by inputting the data query statement on the corresponding user interface. The user interface corresponding to the third user refers to an interface that allows the third user to input a data query statement.

[0191] In addition, the embodiment of the present application does not limit the method for obtaining the first data query request. For example, when the execution subject of the first data query request provided in the embodiment of the present application is Figure 7 In the information processing system 700 based on a data lake shown, when the information processing layer 701 includes a user interface for a third user, the information processing layer 701 can obtain a first data query request triggered by the third user from the user interface.

[0192] Based on the relevant content of S1001 above, it can be known that if a third user wants to query some data from a data table (especially, a data table with materialized columns), the third user can trigger a first data query request on its user interface, so that the first data query request can express the user's demand for querying some data from the second data table, so that the execution subject of the data query method based on the data lake provided in the embodiment of the present application (for example, Figure 7 The information processing layer 701 shown in the figure can interpret the user demand from the first data query request.

[0193] S1002: When there is at least one third materialized column in the third data table, the first data query request is rewritten using the materialized column description information of the at least one third materialized column to obtain a second data query request.

[0194] The third materialized column is used to represent the materialized column existing in the third data table; and the creation process of the third materialized column is similar to the creation process of the first materialized column mentioned above (that is, any implementation method of the "materialized column creation method based on the data lake" shown above), and for the sake of brevity, it will not be repeated here.

[0195] The above “materialized column description information of the third materialized column” is used to describe the third materialized column; and the “materialized column description information of the third materialized column” is similar to the above “materialized column description information of the first materialized column”, and will not be described here for brevity.

[0196] The above-mentioned "second data query request" refers to the rewritten result of the first data query request, so that the second data query request can indicate which data columns (for example, which materialized columns and / or which ordinary columns) in the third data table need to be queried for data; and the embodiments of the present application do not limit the second data query request. For example, the second data query request may carry the column name of at least one materialized column.

[0197] In addition, the embodiment of the present application is not limited to the above-mentioned implementation method of "using the materialized column description information of the at least one third materialized column to rewrite the first data query request to obtain the second data query request". For ease of understanding, the following is an explanation with examples.

[0198] As an example, when there is at least one third materialized column in the third data table, the determination process of the second data query request includes steps 41 to 43:

[0199] Step 41: extract all materialized columns and their corresponding materialized expressions from the third data table to obtain at least one third materialized column and its corresponding materialized expression.

[0200] In an embodiment of the present application, after obtaining the first data query request, it can be determined that the third data table (for example, the data table shown in Table 4 below) is the data table required to be used when the third user performs a data query based on the table name of the data table carried by the first data query request (for example, base_table), so that when it is determined that there is at least one third materialized column in the third data table, in order to better use the third data table, each third materialized column and the materialized expression corresponding to each materialized column can be directly extracted from the third data table, so that it can be subsequently determined whether these materialized expressions are in the first data query request with the help of the materialized expressions corresponding to each materialized column.

[0201]

[0202] Table 4 The creation process of each data column in a data table

[0203] Step 42: Match the materialized expressions corresponding to each third materialized column with the data query object description information carried in the first data query request to obtain a matching result.

[0204] The matching result is used to indicate whether the materialized expression involved in the third data table appears in the first data query request.

[0205] In addition, the embodiments of the present application do not limit the matching results. For example, when the first data query request is the data query statement shown in Table 5 below, and the third data table is the data table shown in Table 4, the third data table may include the "key-value pairs of materialized expressions and materialized columns" shown in Table 4, so that the matching result can be the matching result shown in Table 5, so that the matching result can indicate which materialized columns in the third data table have materialized expressions that successfully match the request expression content involved in the first data query request, so that the rewrite processing of the first data query request can be implemented based on the matching result.

[0206] It should be noted that, for Table 5 below, "people.age\\age" in Table 5 is used to indicate that the content "people.age" in the data query statement successfully matches the materialized expression of the materialized column with age as the column name in the data table shown in Table 4; and for the interpretation of other matching results, please refer to the interpretation of the matching result "people.age\\age" above.

[0207]

[0208] Table 5 Data query statements and matching results

[0209] In addition, for the above step 42, in order to ensure that the matching result is optimal as much as possible, the longest expression matching principle can be used for matching. For example, for the matching process shown in Table 5, although the materialized expression a+1 of the materialized column with a_1_count as the column name can successfully match the content "a+1" in the data query statement, and the materialized expression a+a+1 of the materialized column with a_a_1_count as the column name can successfully match the content "a+a+1" in the data query statement, when matching is performed according to the longest expression matching principle, the former is usually discarded and the latter is selected.

[0210] Step 43: If the matching result indicates that there is at least one materialized expression of a to-be-used materialized column in at least one third materialized column that matches at least one to-be-used content in the data query object description information carried by the first data query request, then the first data query request is rewritten using the materialized column identifier of the at least one materialized column to be used to obtain a second data query request.

[0211] Among them, the materialized column to be used refers to a materialized column existing in the third data table that successfully matches at least one statement content in the first data query request, so that the materialized column to be used is used to indicate which materialized columns in the third data table whose materialized expressions appear in the first data query request.

[0212] The “content to be used” in the above text is used to represent the content (for example, people.age, etc.) existing in the first data query request that successfully matches the materialized expression of a materialized column to be used.

[0213] In addition, the embodiment of the present application does not limit the implementation method of the above step "using the materialized column identifier of at least one materialized column to be used to rewrite the first data query request to obtain the second data query request". For example, it can be specifically: using the materialized identifier of the first materialized column to be used to replace the to-be-used content in the first data query request that matches the materialized expression of the first materialized column to be used; and using the materialized identifier of the second materialized column to be used to replace the to-be-used content in the first data query request that matches the materialized expression of the second materialized column to be used; ... (and so on); using the materialized identifier of the Nth materialized column to be used to replace the to-be-used content in the first data query request that matches the materialized expression of the Nth materialized column to be used to obtain the second data query request, so that the second data query request no longer carries the materialized expressions of these materialized columns to be used, but carries the materialized column identifiers of these materialized columns to be used. Wherein, N indicates the number of materialized columns to be used.

[0214] Based on the relevant contents of the above steps 41 to 43, it can be known that after obtaining the first data query request for requesting a data query for the third data table, the materialized column identifier of at least one third materialized column in the third data table can be used to replace the materialized column expressions of the third materialized columns that appear in the first data query request to obtain a second data query request, so that any materialized column expression involved in the third data table no longer exists in the second data query request, thereby achieving the purpose of using some materialized columns in the third materialized columns to replace some ordinary columns to provide data.

[0215] In fact, when some materialized columns in the third data table are used to directly replace ordinary columns for data provision, the following phenomenon may occur: when the first data query request is the data query statement shown in Table 5 above, and the third data table is the data table shown in Table 4 above, if the content "score[0]" in the first data query request is replaced with score_0, then the two contents "score_0" and "score[1]" appear in the replaced first data query request at the same time. Although the correctness of the execution result can be guaranteed, during execution, the data of the materialized column with score_0 as the column name and the ordinary column with score as the column name in the third data table need to be read into the memory. At this time, because the ordinary column with score as the column name contains the data of score[0] and score[1], after the ordinary column with score as the column name is read into the memory, the data recorded by the materialized column with score_0 as the column name already exists in the memory, which is equivalent to reading the data recorded by score[0] one more time, which may easily lead to poor query performance.

[0216] In order to overcome the above phenomenon, the embodiment of the present application further provides another possible implementation of the process of determining the second data query request, which may specifically include steps 51 to 55:

[0217] Step 51: extract all materialized columns and their corresponding materialized expressions from the third data table to obtain at least one third materialized column and its corresponding materialized expression.

[0218] It should be noted that for the relevant content of step 51, please refer to the above step 41.

[0219] Step 52: Match the materialized expressions corresponding to each third materialized column with the data query object description information carried by the first data query request to obtain a matching result.

[0220] It should be noted that for the relevant content of step 52, please refer to step 42 above.

[0221] Step 53: Determine at least one materialized column to be used according to the matching result.

[0222] In an embodiment of the present application, after obtaining the matching result, if the matching result indicates that there is at least one materialized expression of at least one materialized column to be used in at least one third materialized column that matches at least one content to be used in the data query object description information carried by the first data query request, then these materialized columns to be used can be obtained so that these materialized columns to be used can indicate which materialized columns in the third data table may participate in the rewriting process for the first data query request.

[0223] Step 54: When it is determined that the associated materialized column of the to-be-eliminated materialized column in the at least one to-be-used materialized column satisfies a preset association condition with the to-be-queried data column in the data query object description information carried by the first data query request, and the associated materialized columns of each to-be-used materialized column are not the to-be-queried data column, the to-be-eliminated materialized column is deleted from the at least one to-be-used materialized column to obtain at least one candidate materialized column.

[0224] The materialized column to be removed refers to a materialized column to be used that needs to be deleted, and the associated materialized column of the materialized column to be removed meets the preset association condition with the data column to be queried in the data query object description information. In addition, the embodiment of the present application does not limit the number of materialized columns to be removed.

[0225] The associated materialized column of the materialized column to be removed refers to the data column in the third data table that appears in the materialized expression of the materialized column to be removed. It can be seen that for the materialized column to be removed, the associated materialized column of the materialized column to be removed is also a data column in the third data table; and the associated materialized column appears in the materialized expression of the materialized column to be removed. For example, if the materialized column to be removed is Figure 8 As shown in the materialized column with age as the column name, the associated materialized column of the materialized column to be removed is Figure 8 As shown, a subcolumn named age is within a normal column named people.

[0226] The preset association condition can be preset, for example, it can be specifically: both are sub-columns under the same data column. For example, for the two sub-columns score[0] and score[1] included in the common column with score as the column name, the two sub-columns are both sub-columns under the common column with score as the column name, so that the preset association condition is satisfied between the two sub-columns.

[0227] The data column to be queried refers to a data column involved in the first data query request, which satisfies a preset association condition with the associated materialized column of the materialized column to be eliminated and has no association relationship with any materialized column to be used. For ease of understanding, the following is explained with examples.

[0228] As an example, when the first data query request is the data query statement shown in Table 5 above, at least one materialized column to be used includes each materialized column involved in the "matching result" shown in Table 5 above, and each third materialized column in the third data table and its corresponding materialized expression are the "materialized expression and materialized column key-value pairs" shown in Table 5 above, because the materialized expression of the materialized column with score_0 as the column name involves the subcolumn score[0] in the ordinary column with score as the column name, the subcolumn score[0] is the associated materialized column of the materialized column with score_0 as the column name; and because the two subcolumns score[0] and score[1] are both subcolumns of the ordinary column with score as the column name, the preset association condition is satisfied between the two subcolumns score[0] and score[1]; and because the associated materialized columns of each materialized column to be used are not the subcolumn score[1], there is no materialized column among the used materialized columns that can replace the subcolumn score[1] to provide data. It can be seen that when the materialized column to be removed is a materialized column with score_0 as the column name, the data column to be queried that meets the preset association condition with the materialized column to be removed is the sub-column of score[1].

[0229] Based on the above content, if the materialized column identifier of the materialized column with score_0 as the column name is directly used to replace the materialized column expression of the materialized column with score_0 as the column name in the first data query request, the first data query request after replacement will involve both the materialized column with score_0 as the column name and the subcolumn score[1] in the ordinary column with score as the column name. As a result, in the subsequent data query process, not only all subcolumn data in the ordinary column with score as the column name needs to be read from the data storage space, but also the materialized column with score_0 as the column name needs to be read from the storage space. As a result, the data recorded in score[0] is actually read twice, which will lead to resource waste (for example, I / O resource waste, memory resource waste, etc.). Therefore, in order to avoid such resource waste, the materialized column with score_0 as the column name can be directly deleted from the above-mentioned "at least one materialized column to be used" so that the materialized column with score_0 as the column name will not participate in the rewriting process for the first data query request. In this way, the adverse effects caused by replacing the materialized column expression of the materialized column with score_0 as the column name in the first data query request with the materialized column identifier of the materialized column with score_0 as the column name can be effectively avoided.

[0230] Based on the relevant contents of the above step 54, it can be known that after obtaining at least one materialized column to be used, it can be determined whether there is a data column to be queried corresponding to each materialized column to be used among all the data columns involved in the first data query request, and a determination result can be obtained; if the determination result indicates that there is at least one data column to be queried corresponding to a materialized column to be eliminated among all the data columns involved in the first data query request, then these materialized columns to be eliminated can be deleted from these materialized columns to be used, and at least one candidate materialized column can be obtained, so that these candidate materialized columns can participate in the rewriting process for the first data query request.

[0231] Step 55: rewrite the first data query request using the materialized column identifier of at least one candidate materialized column to obtain a second data query request.

[0232] In an embodiment of the present application, after obtaining at least one candidate materialized column, the materialized column identifiers of these candidate materialized columns can be used to rewrite the first data query request to obtain a second data query request, so that the materialized expressions of these candidate materialized columns do not exist in the second data query request, but the materialized column identifiers of these candidate materialized columns exist, thereby achieving the purpose of using some materialized columns in the third materialized column to replace some ordinary columns to provide data.

[0233] It should be noted that the rewriting process involved in step 55 is similar to the rewriting process involved in step 43 above, and for the sake of brevity, it will not be repeated here.

[0234] Based on the relevant contents of the above steps 51 to 55, it can be known that after obtaining the first data query request for requesting data query for the third data table, at least one alternative materialized column can be first screened out from all materialized columns of the third data table; then the materialized column identifiers of these alternative materialized columns are used to replace the materialized column expressions of these alternative materialized columns that appear in the first data query request to obtain a second data query request, so that any materialized column expression of these alternative materialized columns no longer exists in the second data query request, thereby achieving the purpose of using some materialized columns in the third data table to replace some ordinary columns to provide data.

[0235] In fact, materialized columns can support dynamic addition or deletion, which means that different materialized columns may exist in different partitions of the data storage space. Therefore, in order to further improve the correctness of the rewrite, it can be ensured that the materialized columns involved in the replacement exist in all query partitions.

[0236] Based on this, the embodiment of the present application further provides another possible implementation of the process of determining the second data query request, which may specifically include steps 61 to 67:

[0237] Step 61: Determine at least one candidate materialized column set of the third data table according to the storage space query range description information carried in the first data query request.

[0238] Among them, the storage space query range description information is used to describe which partitions in the data storage space store the third data table for data query; and the embodiment of the present application does not limit the storage space query range description information, for example, it can be the partition described by the content "WHERE date BETWEEN'20181001'AND'20181201'" shown in Table 5 above.

[0239] The above-mentioned "candidate materialized column set" is used to record the materialized columns stored for the third data table in a certain partition. For example, when the third data table is the data table shown in Table 4 above, the third data table stores a data column with age as the column name, a data column with name as the column name, a data column with gender as the column name, a data column with x as the column name, a data column with score_0 as the column name, a data column with a_1_count as the column name, and a data column with a_a_1_count as the column name in the partition corresponding to October 1, 2018, so that the candidate materialized column set of the third data table under the partition corresponding to October 1, 2018 is {a data column with age as the column name, a data column with name as the column name, a data column with gender as the column name, a data column with score_0 as the column name, a data column with a_1_count as the column name, and a data column with a_a_1_count as the column name. Similarly, the set of candidate materialized columns for the partition corresponding to November 1, 2018 in the third data table is {a data column with age as the column name, a data column with name as the column name, a data column with gender as the column name, a data column with x as the column name, a data column with score_0 as the column name, a data column with a_1_count as the column name, and a data column with a_a_1_count as the column name}.

[0240] Based on the relevant content of the above step 61, it can be known that after obtaining the first data query request, at least one partition to be queried can be determined according to the storage space query range description information carried by the first data query request, so that these partitions to be queried all store the third data table; then all materialized columns are extracted from the third data table stored in each partition to be queried, and a candidate materialized column set corresponding to each partition to be queried is obtained, so that each candidate materialized column set can respectively represent the materialized columns stored in each partition to be queried for the third data table.

[0241] It should be noted that the above "at least one third materialized column" is obtained based on the union of all candidate materialized column sets of the third data table, so that these third materialized columns can represent the materialized columns that have appeared in the third data table stored in at least one query partition requested by the third user.

[0242] Step 62: Determine at least one intersection materialized column from at least one candidate materialized column set.

[0243] The intersection materialized columns are used to represent materialized columns that have appeared in the third data table stored in all query partitions requested by the third user.

[0244] Based on the relevant content of step 62, it can be known that after obtaining at least one candidate materialized column set of the third data table, at least one intersection materialized column can be determined based on the intersection between these candidate materialized column sets, so that these intersection materialized columns can represent the intersection between these candidate materialized column sets, so that these intersection materialized columns can represent the materialized columns that have appeared in the third data table stored in all query partitions requested by the third user.

[0245] It should be noted that the embodiment of the present application does not limit the execution time of step 61-step 62, and the execution time of step 61-step 62 is later than the acquisition time of the above "first data query request".

[0246] Step 63: extract all materialized columns and their corresponding materialized expressions from the third data table to obtain at least one third materialized column and its corresponding materialized expression.

[0247] It should be noted that for the relevant content of step 63, please refer to the above step 41.

[0248] Step 64: Match the materialized expressions corresponding to the third materialized columns with the data query object description information carried in the first data query request to obtain a matching result.

[0249] It should be noted that for the relevant content of step 64, please refer to the above step 42.

[0250] Step 65: Determine at least one materialized column to be used according to the matching result.

[0251] It should be noted that for the relevant content of step 65, please refer to the above step 53.

[0252] Step 66: Filter out at least one target materialized column from at least one materialized column to be used using at least one intersection materialized column.

[0253] In an embodiment of the present application, after obtaining at least one intersection materialized column (for example, "materialized columns common to all query partitions" shown in Table 6 below) and at least one materialized column to be used (for example, "matched materialized columns" shown in Table 6 below), at least one target materialized column (for example, "finally used materialized column" shown in Table 6 below) can be determined based on the intersection between these intersection materialized columns and these materialized columns to be used, so that these target materialized columns can represent those materialized columns that have appeared in the third data table stored in all query partitions requested by the third user and whose materialized expressions successfully match at least one content in the first data query request.

[0254] It should be noted that, for Table 6, since the materialized column with y as the column name was created on November 1, 2018 (as shown in Table 4 above), the materialized column with y as the column name can only appear in the data table stored from November 1, 2018; however, since the query partition requested by the third user is the partition for storing the third data table from October 1, 2018 to December 1, 2018, the partition for storing the third data table from November 1, 2018 to December 1, 2018 has a materialized column with y as the column name, but the partition for storing the third data table from October 1, 2018 to October 31, 2018 does not have a materialized column with y as the column name, so it is necessary to filter out the materialized column with y as the column name so that the materialized column with y as the column name no longer exists in the intersection of the materialized columns of all query partitions for the data table.

[0255]

[0256] Table 6 A screening process for the target materialization column

[0257] In fact, in order to avoid as much as possible the adverse effects caused by using certain materialized columns in the third data table to directly replace ordinary data for providing data (for example, the adverse effects overcome by the above steps 51 to 55), the embodiment of the present application also provides another possible implementation of step 66, which may specifically include steps 661 and 662:

[0258] Step 661: Determine at least one materialized column to be screened according to the intersection between at least one intersection materialized column and at least one materialized column to be used.

[0259] In an embodiment of the present application, after obtaining at least one intersection materialized column (for example, "materialized columns common to all query partitions" shown in Table 6) and at least one materialized column to be used (for example, "matched materialized columns" shown in Table 6), at least one materialized column to be screened (for example, "finally used materialized column" shown in Table 6) can be determined based on the intersection between these intersection materialized columns and these materialized columns to be used, so that these materialized columns to be screened can represent those materialized columns that have appeared in the third data table stored in all query partitions requested by the third user and whose materialized expressions successfully match at least one content in the first data query request.

[0260] Step 662: When it is determined that the associated materialized column of the to-be-discarded materialized column in at least one to-be-screened materialized column and the to-be-compared data column in the data query object description information carried by the first data query request meet a preset association condition, and the associated materialized columns of each to-be-screened materialized column are not the to-be-compared data columns, the to-be-discarded materialized column is deleted from the at least one to-be-screened materialized column to obtain at least one target materialized column.

[0261] Among them, the materialized column to be discarded refers to the materialized column to be screened and deleted; and the associated materialized column of the materialized column to be discarded and the data column to be compared in the data query object description information meet the preset association conditions. In addition, the embodiment of the present application does not limit the number of materialized columns to be discarded. In addition, the relevant content of the materialized column to be discarded is similar to the relevant content of the "materialized column to be eliminated" above. For the sake of brevity, it will not be repeated here.

[0262] For the relevant content of the preset association condition, please refer to the relevant content of the preset association condition shown in step 54 above.

[0263] The data column to be compared refers to a data column involved in the first data query request, which satisfies a preset association condition between the associated materialized column of the materialized column to be discarded and has no association relationship with each materialized column to be screened. In addition, the relevant content of the data column to be compared is similar to the relevant content of the "data column to be compared" above, and for the sake of brevity, it will not be repeated here.

[0264] To facilitate understanding of step 662, an example is provided below for explanation.

[0265] Assume that the third data table is the data table shown in Table 4; the first data query request is the data query statement shown in Table 5; and the at least one materialized column to be screened includes the “finally used materialized column” shown in Table 6.

[0266] As an example, based on the above assumptions, it can be known that because the first data query request is the data query statement shown in Table 5, the data column involved in the first data query request is the "data column involved in the first data query request" shown in Table 7; and because the third data table is the data table shown in Table 4, in the data column with location as the column name in the third data table, there are sub-columns with x as the column name and sub-columns with y as the column name, and in the data column with score as the column name in the third data table, there are sub-columns for recording array values ​​of each dimension (for example, the two sub-columns score[0] and score[1], etc.); and because at least one of the materialized columns to be screened includes the "finally used materialized columns" shown in Table 6, the sub-columns with x as the column name in these materialized columns to be screened are The data column to be compared corresponding to the materialized column with the column name is the subcolumn with the column name y in the data column with the column name location involved in the first data query request, and the data column to be compared corresponding to the materialized column with the column name score_0 is the subcolumn represented by score[1] in the first data query request. Therefore, in order to avoid adverse effects caused by some materialized columns replacing ordinary columns for data provision as much as possible, the materialized column with the column name x and the materialized column with the column name score_0 can be directly deleted from these materialized columns to be screened, and at least one target materialized column (for example, at least one target materialized column shown in Table 7) can be obtained, so that these target materialized columns can be used to participate in the rewriting process for the first data query request later.

[0267]

[0268] Table 7 Another screening process for the target materialization column

[0269] Based on the relevant content of the above step 66, it can be known that after obtaining at least one intersection materialized column and at least one materialized column to be used, these intersection materialized columns can be referenced to filter out at least one target materialized column from these materialized columns to be used, so that these target materialized columns can be used subsequently to participate in the rewriting process for the first data query request.

[0270] Step 67: rewrite the first data query request using the materialized column identifier of at least one target materialized column to obtain a second data query request.

[0271] It should be noted that the rewriting process involved in step 67 is similar to the rewriting process involved in step 43 above, and for the sake of brevity, it will not be repeated here.

[0272] It can be seen that in an embodiment of the present application, after obtaining at least one target materialized column (for example, at least one target materialized column shown in Table 7 above), the materialized column identifiers of these target materialized columns can be used to rewrite the first data query request (for example, the first data query request shown in Table 8 below) to obtain a second data query request (for example, the second data query request shown in Table 8 below), so that the materialized expressions of these target materialized columns do not exist in the second data query request, but the materialized column identifiers of these target materialized columns exist, thereby achieving the purpose of using some materialized columns in the third materialized column to replace some ordinary columns to provide data.

[0273]

[0274] Table 8 Rewriting process for the first data query request

[0275] Based on the relevant contents of the above steps 61 to 67, it can be known that after obtaining the first data query request for requesting a data query for the third data table, the materialized column identifier of at least one intersection materialized column common to all query partitions of the third data table can be used to replace the materialized column expressions of these intersection materialized columns that appear in the first data query request to obtain a second data query request, so that any materialized column expression of these intersection materialized columns no longer exists in the second data query request, thereby achieving the purpose of using some materialized columns in the third materialized column that are common to all query partitions to replace some ordinary columns to provide data.

[0276] Based on the relevant content of the above 1002, it can be known that after obtaining the first data query request for performing data query on the third data table, when there is one less third materialized column in the third data table, the materialized column description information of these third materialized columns can be used to rewrite the first data query request to replace the materialized expressions of some third materialized columns recorded in the first data query request with the materialized column identifiers of these third materialized columns to obtain the second data query request, so that when using the second data query request to perform data query processing on the third data table, the purpose of using some materialized columns in the third data table instead of some ordinary columns to provide data can be achieved.

[0277] S1003: Perform data query processing on the third data table according to the second data query request.

[0278] In an embodiment of the present application, after obtaining the second data query request, data query processing can be performed on the third data table according to the second data query request to implement the data query process for the third data table, thereby achieving the purpose of using some materialized columns in the third data table to replace some ordinary columns for data provision.

[0279] Based on the relevant contents of S1001 to S1003 above, it can be known that for the data query method based on the data lake provided in the embodiment of the present application, after obtaining the first data query request triggered by the third user, if it is determined that there is at least one third materialized column in the third data table involved in the first data query request, the first data query request is first rewritten according to the materialized column description information of these third materialized columns, so as to replace the materialized expressions of some third materialized columns recorded in the first data query request with the materialized column identifiers of these third materialized columns, and obtain the second data query request, so that the second data query request can involve some ordinary columns and some materialized columns in the third data table; then, according to the second data query request, data query processing is performed on the third data table to achieve the user demand for data query processing on the third data table, so that the purpose of using some materialized columns in the third data table to replace some ordinary columns for data provision can be achieved, thereby effectively solving the adverse effects caused by directly using these ordinary columns for data provision, and thus effectively improving the user data query experience.

[0280] The same reason as the above-mentioned "another possible implementation method of a materialized column creation method based on a data lake", the present application embodiment also provides another possible implementation method of a data query method based on a data lake, in which the Figure 7 The data lake-based information processing system 700 shown executes the data query method, and the execution process may specifically include steps 71 to 73:

[0281] Step 71: The information processing layer 701 obtains a first data query request triggered by a third user.

[0282] It should be noted that for the relevant content of step 71, please refer to S1001 above.

[0283] Based on the relevant content of step 71, it can be known that if a third user wants to query some data from a data table (especially, a data table with materialized columns), the third user can trigger a first data query request on the user interface provided to it by the information processing layer 701, so that the first data query request can express the user's demand to query some data from the second data table, so that the information processing layer 701 can interpret the user demand from the first data query request.

[0284] Step 72: When there is at least one third materialized column in the third data table, the information processing layer 701 rewrites the first data query request using the materialized column description information of the at least one third materialized column to obtain a second data query request.

[0285] It should be noted that for the relevant content of step 72, please refer to the relevant content of S1002 above.

[0286] Based on the relevant content of the above step 72, it can be known that after the information processing layer 701 obtains the first data query request for performing data query on the third data table, when there is one less third materialized column in the third data table, the information processing layer 701 can use the materialized column description information of these third materialized columns to rewrite the first data query request to replace the materialized expressions of some third materialized columns recorded in the first data query request with the materialized column identifiers of these third materialized columns, and obtain the second data query request, so that when using the second data query request to perform data query processing on the third data table, the purpose of using some materialized columns in the third data table instead of some ordinary columns to provide data can be achieved.

[0287] Step 73: the information processing layer 701 performs data query processing on the third data table according to the second data query request.

[0288] It should be noted that for the relevant content of step 73, please refer to S1003 above.

[0289] In fact, the information processing layer 701 can implement the data query process for the third data table with the help of the task execution layer 702 including multiple task execution devices. Based on this, the embodiment of the present application also provides a possible implementation method of the data query process for the third data table, which can specifically include steps 731-735:

[0290] Step 731: The information processing layer 701 obtains data query device description information.

[0291] The data query device description information is used to describe a task execution device (eg, an OLAP engine in the task execution layer 702 ) that can execute the task of performing data query processing on the third data table.

[0292] In addition, the relevant content of the data query device description information is similar to the relevant content of the “materialized column creation device description information” shown in step 221 above, so for the sake of brevity, it will not be repeated here.

[0293] Based on the relevant content of the above step 731, it can be known that for the information processing layer 701, after the information processing layer 701 obtains the first data query request triggered by the third user, the information processing layer 701 can determine the data query device description information of the third data table based on the first data query request, so that the data query device description information can describe the task execution device used to perform the task of performing data query processing on the third data table, so that the data query process for the third data table can be completed with the help of the execution device later.

[0294] Step 732: The information processing layer 701 determines the query device to be used according to the data query device description information.

[0295] The query device to be used refers to a task execution device used to execute the task of performing data query processing on the third data table; and the query device to be used exists in the task execution layer 702.

[0296] In addition, the embodiment of the present application does not limit the query device to be used. For example, if the task execution layer 702 includes multiple OLAP engines (such as Figure 2 As shown), the query device to be used can be any OLAP engine in the task execution layer 702.

[0297] In addition, the embodiment of the present application does not limit the implementation method of step 732. For example, when the above "data query device description information" includes a device identifier, step 732 can specifically be: directly determining the task execution device with the device identifier in the task execution layer 702 as the query device to be used.

[0298] Based on the relevant content of the above step 732, it can be known that for the information processing layer 701, after the information processing layer 701 obtains the data query device description information of the third data table, the information processing layer 701 interprets the query device to be used from the data query device description information, so that the query device to be used is used to perform the task of performing data query processing on the second data table, so that the information processing layer 701 can subsequently use the query device to be used to complete the task of performing data query processing on the second data table.

[0299] Step 733: The information processing layer 701 determines the first query task from the second data query request.

[0300] The first query task is used to describe the task of performing data query processing on the second data table in an expression that can be understood by the information processing layer 701 .

[0301] In addition, the embodiment of the present application does not limit the implementation method of step 733. For example, when the above "second data query request" is a data query statement, step 733 can be specifically as follows: after the information processing layer 701 obtains the second data query request triggered by the second user, the information processing layer 701 can perform a series of processing such as lexical parsing, grammar checking, and semantic analysis on the second data query request to obtain a first query task, so that the first query task can describe the task of performing data query processing on the third data table in an expression that can be understood by the information processing layer 701.

[0302] Step 734: The information processing layer 701 translates the first query task according to the task description language of the query device to be used to obtain a second query task, wherein the second query task is used to implement data query processing on the third data table.

[0303] The task description language of the query device to be used is used to describe a task in an expression that the query device to be used can understand. It can be seen that the task description language of the query device to be used is the dialect adapted to the query device to be used, so that the task description language can express the unique language characteristics of the query device to be used.

[0304] The second query task is used to describe the task of performing data query processing on the third data table in an expression that can be understood by the query device to be used, so that the query device to be used can assist the information processing layer 701 in completing the task of performing data query processing on the third data table by executing the second query task.

[0305] Step 735: the information processing layer 701 sends the second query task to the query device to be used, so that the query device to be used executes the second query task.

[0306] In an embodiment of the present application, after the information processing layer 701 obtains the second query task expressed according to the language characteristics unique to the query device to be used, the information processing layer 701 can send the second query task to the query device to be used, so that the query device to be used can assist the information processing layer 701 in completing the task of performing data query processing on the third data table by executing the second query task, thereby realizing the data query process for the third data table.

[0307] Based on the relevant contents of steps 71 to 73 above, it can be known that for the information processing system 700 based on the data lake including the information processing layer 701, the information processing layer 701 in the information processing system 700 can provide a user interface to the third user, so that the third user can trigger the data query process of the information processing layer 701 by triggering a first data query request on the user interface, so as to achieve the purpose of providing data based on the data query needs of the third user and using some materialized columns in the data table instead of some ordinary columns. This can effectively avoid the adverse effects caused by the complicated access process of these ordinary columns, thereby helping to improve the information processing effect.

[0308] Based on the materialized column creation method based on the data lake provided in the above method embodiment, the present application embodiment also provides a materialized column creation device based on the data lake, which is explained and illustrated below in conjunction with the accompanying drawings. It should be noted that for the technical details of the materialized column creation device based on the data lake provided in the present application embodiment, please refer to the relevant content of the materialized column creation method based on the data lake.

[0309] See also Fig.11 , which is a structural schematic diagram of a materialized column creation device based on a data lake provided in an embodiment of the present application.

[0310] The materialized column creation device 1100 based on the data lake provided in the embodiment of the present application includes:

[0311] The first acquisition unit 1101 is used to acquire a materialized column creation request triggered by a first user; wherein the materialized column creation request is used to request to create a first materialized column in a first data table; the materialized column creation request carries a materialized expression of the first materialized column; the materialized expression is used to describe a data association relationship between the first materialized column and a target column in the first data table;

[0312] The materialized column creation unit 1102 is used to create the first materialized column according to the materialized column creation request; wherein the first materialized column is used to replace the target column to provide data for the data query request carrying the materialized expression.

[0313] In one possible implementation, the materialized column creation unit 1102 is specifically used to create the first materialized column in the data storage space according to the materialized column description information carried by the materialized column creation request, so that the first materialized column is stored in the data storage space; wherein the materialized column description information includes the materialized expression of the first materialized column.

[0314] In a possible implementation manner, the materialized column creating unit 1102 includes:

[0315] The expression storage subunit is used to create metadata of the first materialized column in the data storage space; and store the materialized expression of the first materialized column in the metadata according to a preset description method.

[0316] In a possible implementation manner, the materialized column creation device 1100 based on the data lake further includes:

[0317] A fourth acquisition unit is used to acquire materialized column creation device description information;

[0318] A first determining unit, configured to determine a device to be created based on the materialized column creation device description information;

[0319] The materialized column creation unit 1102 is specifically used to: determine a first creation task from the materialized column creation request; translate the first creation task according to the task description language of the creation device to be used to obtain a second creation task; wherein the second creation task is used to implement the creation of the first materialized column; and send the second creation task to the creation device to be used so that the creation device to be used executes the second creation task.

[0320] In a possible implementation manner, the fourth acquisition unit is specifically used to: when it is determined that the materialized column creation request belongs to the first request type, query the task execution device description information corresponding to the first request type from a preset mapping relationship to determine to create the device description information for the materialized column.

[0321] In a possible implementation manner, the fourth acquisition unit is specifically configured to: when the materialized column creation request carries the materialized column creation device description information, extract the materialized column creation device description information from the materialized column creation request.

[0322] Based on the above-mentioned relevant contents of the materialized column creation device 1100 based on the data lake, it can be known that for the materialized column creation device 1100 based on the data lake provided in the embodiment of the present application, after obtaining the materialized column creation request triggered by the first user, a first materialized column is created in the first data table according to the materialized column creation request, so that the first data table includes the first materialized column, so that the user demand for creating the first materialized column in the first data table expressed by the materialized column creation request can be realized. Among them, because there is a data association relationship between the first materialized column and the target column in the first data table, in some cases the first materialized column can replace the target column to respond to the data query request for the first data table, so that the adverse effects caused by the inconvenience of reading the target column can be effectively avoided, thereby effectively improving the reading efficiency of the target column, and then helping to improve the information processing effect.

[0323] Based on the data writing method based on the data lake provided by the above method embodiment, the present application embodiment also provides a data writing device based on the data lake, which is explained and illustrated below in conjunction with the accompanying drawings. It should be noted that for the technical details of the data writing device based on the data lake provided by the present application embodiment, please refer to the relevant content of the data writing method based on the data lake.

[0324] See also Fig.12 , which is a structural schematic diagram of a data writing device based on a data lake provided in an embodiment of the present application.

[0325] The data lake-based data writing device 1200 provided in the embodiment of the present application includes:

[0326] The second acquisition unit 1201 is used to acquire a first data write request triggered by a second user; wherein the first data write request is used to request to write data into a second data table; and the first data write request carries data column description information for the second data table;

[0327] A first rewriting unit 1202 is configured to rewrite the first data write request according to a materialized expression of the at least one second materialized column to obtain a second data write request when it is determined that the data column description information satisfies a preset extension condition and that at least one second materialized column exists in the second data table; wherein the second materialized column is created by using any implementation of the materialized column creation method based on a data lake provided in an embodiment of the present application;

[0328] The data writing unit 1203 is used to write data to the second data table according to the second data writing request.

[0329] In a possible implementation, the first rewriting unit 1202 is specifically used to write the materialized expression of the at least one second materialized column into the first data write request in sequence according to the position arrangement order of the at least one second materialized column in the second data table to obtain a second data write request.

[0330] In a possible implementation manner, the data lake-based data writing device 1200 further includes:

[0331] A fifth acquisition unit, used for acquiring data writing device description information;

[0332] A second determining unit, configured to determine a writing device to be used according to the data writing device description information;

[0333] The data writing unit 1203 is specifically used to: determine a first writing task from the second data writing request; translate the first writing task according to the task description language of the writing device to be used to obtain a second writing task; wherein the second writing task is used to implement data writing processing on the second data table; send the second writing task to the writing device to be used so that the writing device to be used executes the second writing task.

[0334] Based on the relevant content of the above-mentioned data lake-based data writing device 1200, it can be known that for the data lake-based data writing device 1200 provided in the embodiment of the present application, after obtaining the first data writing request triggered by the second user, if it is determined that the data column description information carried by the first data writing request meets the preset extension condition, and it is determined that there is at least one second materialized column in the second data table, then the first data writing request is first rewritten according to the materialized expressions of these second materialized columns to obtain the second data writing request, so that the second data writing request carries the materialized expressions of these second materialized columns, thereby realizing the automatic rewriting process for the first data writing request; and then according to the second data writing request, data writing processing is performed on the second data table to realize the user demand for data writing processing on the second data table. It can be seen that the materialized column writing method provided in the embodiment of the present application can automatically rewrite data write requests that lack materialized column information, so that the rewritten data write requests can carry these materialized column information. Therefore, under the premise that the second user does not know that there are materialized columns in the second data table, the second user can also use the known common columns in the second data table to implement data write processing for all data columns in the second data table, which is conducive to improving user experience.

[0335] Based on the data query method based on the data lake provided by the above method embodiment, the present application embodiment also provides a data query device based on the data lake, which is explained and illustrated below in conjunction with the accompanying drawings. It should be noted that for the technical details of the data query device based on the data lake provided by the present application embodiment, please refer to the relevant content of the above data query method based on the data lake.

[0336] See also Fig.13 , which is a structural diagram of a data query device based on a data lake provided in an embodiment of the present application.

[0337] The data query device 1300 based on the data lake provided in the embodiment of the present application includes:

[0338] The third acquisition unit 1301 is used to acquire a first data query request triggered by a third user; wherein the first data query request is used to request a data query for a third data table;

[0339] The second rewriting unit 1302 is configured to, when there is at least one third materialized column in the third data table, rewrite the first data query request using materialized column description information of the at least one third materialized column to obtain a second data query request; wherein the third materialized column is created using any implementation of the materialized column creation method based on the data lake provided in the embodiment of the present application;

[0340] The data query unit 1303 is used to perform data query processing on the third data table according to the second data query request.

[0341] In one possible implementation, the first data query request includes data query object description information; the materialized column description information includes a materialized expression and a materialized column identifier; the second rewriting unit 1302 is specifically used to: when it is determined that the materialized expression of at least one materialized column to be used in the at least one third materialized column matches at least one content to be used in the data query object description information, use the materialized column identifier of at least one materialized column to be used to rewrite the first data query request to obtain a second data query request.

[0342] In a possible implementation manner, the second rewriting unit 1302 is specifically configured to replace the to-be-used content that matches the materialized expression of each to-be-used materialized column in the first data query request with the materialized column identifier of each to-be-used materialized column, to obtain a second data query request.

[0343] In a possible implementation manner, the first data query request carries storage space query range description information; the data lake-based data query device 1300 further includes:

[0344] A third determining unit, configured to determine at least one candidate materialized column set of the third data table according to the storage space query range description information;

[0345] a fourth determining unit, configured to determine at least one intersection materialized column according to an intersection between the at least one candidate materialized column set;

[0346] A materialized column screening unit, configured to screen out at least one target materialized column from the at least one materialized column to be used by using the at least one intersection materialized column;

[0347] The second rewriting unit 1302 is specifically configured to rewrite the first data query request by using the materialized column identifier of the at least one target materialized column to obtain a second data query request.

[0348] In a possible implementation manner, the data query device 1300 based on the data lake further includes:

[0349] a materialized column deletion unit, configured to, when it is determined that a preset association condition is satisfied between an associated materialized column of a materialized column to be removed in the at least one materialized column to be used and a data column to be queried in the data query object description information, and when none of the associated materialized columns of the materialized columns to be used is the data column to be queried, delete the materialized column to be removed from the at least one materialized column to be used, so as to obtain at least one candidate materialized column; wherein the associated materialized column of the materialized column to be removed refers to a data column in the third data table that appears in a materialized expression of the materialized column to be removed;

[0350] The second rewriting unit 1302 is specifically configured to rewrite the first data query request by using the materialized column identifier of the at least one candidate materialized column to obtain a second data query request.

[0351] In a possible implementation manner, the data query device 1300 based on the data lake further includes:

[0352] A sixth acquisition unit, used to acquire data query device description information;

[0353] A fifth determining unit, configured to determine a query device to be used according to the data query device description information;

[0354] The data query unit 1303 is specifically used to determine a first query task from the second data query request; translate the first query task according to the task description language of the query device to be used to obtain a second query task; wherein the second query task is used to implement data query processing on the third data table; and send the second query task to the query device to be used so that the query device to be used executes the second query task.

[0355] Based on the relevant content of the above-mentioned data lake-based data query device 1300, it can be known that for the data lake-based data query device 1300 provided in the embodiment of the present application, after obtaining the first data query request triggered by the third user, if it is determined that there is at least one third materialized column in the third data table involved in the first data query request, the first data query request is first rewritten according to the materialized column description information of these third materialized columns, so as to replace the materialized expressions of some third materialized columns recorded in the first data query request with the materialized column identifiers of these third materialized columns, and obtain a second data query request, so that the second data query request can involve some ordinary columns and some materialized columns in the third data table; then, according to the second data query request, data query processing is performed on the third data table to achieve the user demand for data query processing on the third data table, so as to achieve the purpose of using some materialized columns in the third data table instead of some ordinary columns to provide data, thereby effectively solving the adverse effects caused by directly using these ordinary columns for data provision, and thus effectively improving the user data query experience.

[0356] Based on the materialized column creation method based on a data lake, the data writing method based on a data lake, and the data query method based on a data lake provided in the above method embodiment, the present application embodiment also provides an information processing system based on a data lake, which is explained and illustrated below in conjunction with the accompanying drawings. It should be noted that for the technical details of the information processing system based on a data lake provided in the present application embodiment, please refer to the relevant contents of the materialized column creation method based on a data lake, the data writing method based on a data lake, and the data query method based on a data lake.

[0357] See also Fig.14 , which is a structural diagram of an information processing system based on a data lake provided in an embodiment of the present application.

[0358] The information processing system 1400 based on the data lake provided in the embodiment of the present application includes an information processing layer 1401; wherein the information processing layer 1401 is used to execute any implementation of the materialized column creation method based on the data lake provided in the embodiment of the present application, or execute any implementation of the data writing method based on the data lake provided in the embodiment of the present application, or execute any implementation of the data query method based on the data lake provided in the embodiment of the present application.

[0359] In one possible implementation, the system 1400 also includes a task execution layer 1402 and an object storage layer 1403; wherein the task execution layer 1402 includes at least one task execution device; and the task execution layer 1402 is used to execute the tasks to be executed sent by the information processing layer 1401; and the object storage layer 1403 is used to provide data storage space for the system.

[0360] To facilitate understanding of the working principle of the information processing system 1400 based on the data lake, some possible implementations of the information processing system 1400 are described below.

[0361] In a possible implementation manner, the information processing layer 1401 is used to obtain a materialized column creation request triggered by a first user; wherein the materialized column creation request is used to request to create a first materialized column in a first data table; the materialized column creation request carries a materialized expression of the first materialized column; the materialized expression is used to describe a data association relationship between the first materialized column and a target column in the first data table;

[0362] The information processing layer 1401 is further used to create the first materialized column according to the materialized column creation request; wherein the first materialized column is used to replace the target column to provide data for the data query request carrying the materialized expression.

[0363] In one possible implementation, the information processing layer 1401 is specifically used to create the first materialized column in the data storage space provided by the object storage layer 1403 according to the materialized column description information carried by the materialized column creation request, so that the first materialized column is stored in the data storage space; wherein the materialized column description information includes the materialized expression of the first materialized column.

[0364] In a possible implementation manner, the information processing layer 1401 is specifically configured to create metadata of the first materialized column in the data storage space; and store the materialized expression of the first materialized column in the metadata according to a preset description method.

[0365] In a possible implementation manner, the information processing layer 1401 is further used to obtain materialized column creation device description information;

[0366] The information processing layer 1401 is further used to create device description information according to the materialized column, and determine the device to be used in the task execution layer 1402;

[0367] The information processing layer 1401 is specifically used to determine a first creation task from the materialized column creation request; translate the first creation task according to the task description language of the creation device to be used to obtain a second creation task; wherein the second creation task is used to implement the creation of the first materialized column; and send the second creation task to the creation device to be used so that the creation device to be used executes the second creation task.

[0368] In one possible implementation, the information processing layer 1401 is specifically used to query the task execution device description information corresponding to the first request type from a preset mapping relationship when determining that the materialized column creation request belongs to the first request type, and determine to create the device description information for the materialized column.

[0369] In a possible implementation manner, the information processing layer 1401 is specifically configured to extract the materialized column creation device description information from the materialized column creation request when the materialized column creation request carries the materialized column creation device description information.

[0370] In a possible implementation manner, the information processing layer 1401 is further used to obtain a first data write request triggered by a second user; wherein the first data write request is used to request to write data into a second data table; and the first data write request carries data column description information for the second data table;

[0371] The information processing layer 1401 is further configured to rewrite the first data write request according to a materialized expression of the at least one second materialized column to obtain a second data write request when it is determined that the data column description information satisfies a preset extension condition and when it is determined that there is at least one second materialized column in the second data table; wherein the second materialized column is created by using any implementation of the materialized column creation method based on a data lake provided in an embodiment of the present application;

[0372] The information processing layer 1401 is further configured to perform data writing processing on the second data table according to the second data writing request.

[0373] In one possible implementation, the information processing layer 1401 is specifically used to write the materialized expression of the at least one second materialized column into the first data write request in sequence according to the position arrangement order of the at least one second materialized column in the second data table, so as to obtain the second data write request.

[0374] In a possible implementation manner, the information processing layer 1401 is further used to obtain data writing device description information;

[0375] The information processing layer 1401 is further used to determine the writing device to be used in the task execution layer 1402 according to the data writing device description information;

[0376] The information processing layer 1401 is specifically used to determine a first write task from the second data write request; translate the first write task according to the task description language of the write device to be used to obtain a second write task; wherein the second write task is used to implement data writing processing on the second data table; send the second write task to the write device to be used, so that the write device to be used executes the second write task.

[0377] In a possible implementation manner, the information processing layer 1401 is further used to obtain a first data query request triggered by a third user; wherein the first data query request is used to request a data query for a third data table;

[0378] The information processing layer 1401 is further configured to, when there is at least one third materialized column in the third data table, rewrite the first data query request using materialized column description information of the at least one third materialized column to obtain a second data query request; wherein the third materialized column is created using any implementation of the materialized column creation method based on a data lake provided in an embodiment of the present application;

[0379] The information processing layer 1401 is further configured to perform data query processing on the third data table according to the second data query request.

[0380] In a possible implementation manner, the first data query request includes data query object description information; the materialized column description information includes a materialized expression and a materialized column identifier;

[0381] The information processing layer 1401 is specifically used to rewrite the first data query request using the materialized column identifier of at least one materialized column to be used to obtain a second data query request when it is determined that the materialized expression of at least one materialized column to be used in the at least one third materialized column matches at least one content to be used in the data query object description information.

[0382] In a possible implementation, the information processing layer 1401 is specifically configured to replace the to-be-used content that matches the materialized expression of each to-be-used materialized column in the first data query request with the materialized column identifier of each to-be-used materialized column, to obtain a second data query request.

[0383] In a possible implementation manner, the first data query request carries storage space query range description information;

[0384] The information processing layer 1401 is further configured to determine at least one candidate materialized column set of the third data table according to the storage space query range description information;

[0385] The information processing layer 1401 is further configured to determine at least one intersection materialized column according to the intersection between the at least one candidate materialized column set;

[0386] The information processing layer 1401 is further configured to use the at least one intersection materialized column to filter out at least one target materialized column from the at least one materialized column to be used;

[0387] The information processing layer 1401 is specifically configured to rewrite the first data query request by using the materialized column identifier of the at least one target materialized column to obtain a second data query request.

[0388] In a possible implementation manner, the information processing layer 1401 is further used to, when it is determined that the associated materialized column of the to-be-eliminated materialized column in the at least one to-be-used materialized column satisfies a preset association condition with the to-be-queried data column in the data query object description information, and the associated materialized columns of each to-be-used materialized column are not the to-be-queried data column, delete the to-be-eliminated materialized column from the at least one to-be-used materialized column to obtain at least one candidate materialized column; wherein the associated materialized column of the to-be-eliminated materialized column refers to a data column in the third data table that appears in the materialized expression of the to-be-eliminated materialized column;

[0389] The information processing layer 1401 is specifically configured to rewrite the first data query request using the materialized column identifier of the at least one candidate materialized column to obtain a second data query request.

[0390] In a possible implementation manner, the information processing layer 1401 is also used to obtain data query device description information;

[0391] The information processing layer 1401 is further used to determine the query device to be used according to the data query device description information;

[0392] The information processing layer 1401 is specifically used to determine the first query task from the second data query request; translate the first query task according to the task description language of the query device to be used to obtain the second query task; wherein the second query task is used to implement data query processing on the third data table; send the second query task to the query device to be used, so that the query device to be used executes the second query task.

[0393] Based on the above-mentioned relevant contents of the information processing system 1400 based on the data lake, it can be known that for the information processing system 1400 based on the data lake provided in the embodiment of the present application, at least one materialized column can be created for a data table first, so that these materialized columns are used to store data related to ordinary columns in the data table (for example, high-frequency sub-columns such as "people.age" below), so that when the user subsequently triggers a data query request for the ordinary column, the materialized column can replace the ordinary column to feedback the queried data to the user. This can effectively overcome the adverse effects caused by directly feedback the queried data to the user by the ordinary column (for example, wasting IO resources, increasing additional calculations, etc.), thereby effectively improving the data query effect, and then effectively improving the information processing effect for these data tables.

[0394] Based on the above content related to materialized columns, it can be seen that the series of information processing processes based on materialized columns provided in the embodiments of the present application can achieve the following beneficial effects shown in (1) to (5):

[0395] (1) Fundamentally solve the problem of low reading performance of native OLAP engines for nested type fields such as Map, Struct, Array, and Json. Actual scenario tests can bring an average performance improvement of 60%-90%, and the storage overhead is only 1.06%, which is specifically reflected in the following three aspects (1.1)-(1.3):

[0396] (1.1) Invalid IO and repeated calculations can be avoided;

[0397] (1.2) Support vectorized reading;

[0398] (1.3)Support Filter PushDown.

[0399] (2) Easy to use. The input and writing process and data query process for materialized columns are automatically completed by the engine. Users only need to add / delete materialized columns based on the business perspective. This is specifically reflected in the following three aspects (2.1)-(2.3):

[0400] (2.1) The online table can transparently launch the materialized column function, and the ETL tasks of the target table and downstream dependent tasks do not need to be modified;

[0401] (2.2) It can adapt to the ever-changing high-frequency sub-columns. The materialized columns are hidden from the downstream, and the downstream tasks do not directly query the materialized columns. Therefore, adding / deleting materialized columns will not affect the downstream dependent tasks.

[0402] (2.3) The optimization of high-frequency sub-column related queries can achieve the best result, avoiding the problems existing in the business side's solution.

[0403] (3) Low maintenance cost: There is no need to maintain a new table. For storage cost, only the added materialized column data needs to be stored. For computing cost, since the data recorded in the materialized column is calculated and written together with other data when the data is written to the data table as a whole, this helps to reduce IO time.

[0404] (4) Covering more scenarios: In addition to optimizing nested types, materialized columns can also be used to create materialized columns for some calculation formulas with high computational costs (for example, a+a+1; or get_json_object, lower(name), number*100+1, etc.), avoiding repeated calculations during each query.

[0405] (5) Low cost for accessing OLAP engines: For users, when they need to query materialized columns, they only need to write a set of SQL statements according to the SQL specifications applicable to the information processing layer 1401, and they can query on multiple OLAP engines in the task execution layer 1402 without having to worry about the dialect characteristics of different OLAP engines. For developers, it is convenient and low-cost to expand the underlying engine. They only need to translate and connect the execution plan according to the dialect of the OLAP engine, without having to worry about SQL parsing, verification, and optimization modules, and can easily achieve decoupling and pluggability.

[0406] It should be noted that the words "first", "second", and "third" in the above "first materialized column", "second materialized column", and "third materialized column" involved in this application are only used to distinguish in which data table these materialized columns exist respectively, and have no other meanings. Similarly, the words "first", "second", and "third" in the above "first data table", "second data table", and "third data table" involved in this application are only used to distinguish the data tables used in different execution processes, and have no other meanings.

[0407] In addition, an embodiment of the present application also provides an electronic device, comprising a processor and a memory: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory, so that the electronic device executes any implementation of the materialized column creation method based on the data lake provided in the embodiment of the present application, or executes any implementation of the data writing method based on the data lake provided in the embodiment of the present application, or executes any implementation of the data query method based on the data lake provided in the embodiment of the present application.

[0408] See also Fig.15, which shows a schematic diagram of the structure of an electronic device 1500 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.15 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0409] like Fig.15 As shown, the electronic device 1500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 1501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1502 or a program loaded from a storage device 1508 into a random access memory (RAM) 1503. In the RAM 1503, various programs and data required for the operation of the electronic device 1500 are also stored. The processing device 1501, the ROM 1502, and the RAM 1503 are connected to each other via a bus 1504. An input / output (I / O) interface 1505 is also connected to the bus 1504.

[0410] Typically, the following devices may be connected to the I / O interface 1505: an input device 1506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 1507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1509. The communication device 1509 may allow the electronic device 1500 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.15 The electronic device 1500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0411] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 1509, or installed from the storage device 1508, or installed from the ROM 1502. When the computer program is executed by the processing device 1501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0412] The electronic device provided by the embodiment of the present disclosure and the method provided by the above embodiment belong to the same inventive concept, and the technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0413] The embodiment of the present application further provides a computer-readable medium, in which instructions or computer programs are stored. When the instructions or computer programs are executed on a device, the device executes any implementation of the materialized column creation method based on the data lake provided in the embodiment of the present application, or executes any implementation of the data writing method based on the data lake provided in the embodiment of the present application, or executes any implementation of the data query method based on the data lake provided in the embodiment of the present application.

[0414] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0415] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0416] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0417] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can execute the method.

[0418] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0419] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0420] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit / module does not, in some cases, constitute a limitation on the unit itself.

[0421] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0422] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0423] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0424] In addition, an embodiment of the present application also provides a computer program product. When the computer program product runs on a terminal device, the terminal device executes any implementation of the materialized column creation method based on the data lake provided in the embodiment of the present application, or executes any implementation of the data writing method based on the data lake provided in the embodiment of the present application, or executes any implementation of the data query method based on the data lake provided in the embodiment of the present application.

[0425] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0426] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0427] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0428] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A materialized column creation method based on a data lake, characterized in that: The method comprises: A materialized column creation request triggered by a first user is obtained; wherein the materialized column creation request is used to request the creation of a first materialized column in a first data table; the materialized column creation request carries a materialized expression of the first materialized column; the materialized expression is used to describe a data association relationship between the first materialized column and a target column in the first data table; the target column is a subcolumn in a nested type data column; the materialized expression includes an identifier of the target column; the identifier of the target column includes a column name of the nested type data column and a column name of the subcolumn; According to the materialized column creation request, create the first materialized column; wherein the first materialized column is used to replace the target column to provide data for the data query request carrying the materialized expression; The creating the first materialized column includes: The first materialized column is created in the first data table.

2. The method according to claim 1, characterized in that The step of creating the first materialized column according to the materialized column creation request includes: The first materialized column is created in the data storage space according to the materialized column description information carried in the materialized column creation request, so that the first materialized column is stored in the data storage space; wherein the materialized column description information includes a materialized expression of the first materialized column.

3. The method according to claim 2, characterized in that The creating the first materialized column in the data storage space includes: Creating metadata of the first materialized column in the data storage space; The materialized expression of the first materialized column is stored in the metadata according to a preset description method.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Get the description information of the device for creating the materialized column; Creating device description information according to the materialized column, and determining a device to be created; The step of creating the first materialized column according to the materialized column creation request includes: Determine a first creation task from the materialized column creation request; The first creation task is translated according to the task description language of the creation device to be used to obtain a second creation task; wherein the second creation task is used to implement the creation of the first materialized column; The second creation task is sent to the creation device to be used, so that the creation device to be used executes the second creation task.

5. The method according to claim 4, characterized in that The obtaining of materialized column creation device description information includes: When it is determined that the materialized column creation request belongs to the first request type, querying the task execution device description information corresponding to the first request type from the preset mapping relationship to determine the device description information for creating the materialized column; or, The obtaining of materialized column creation device description information includes: When the materialized column creation request carries the materialized column creation device description information, the materialized column creation device description information is extracted from the materialized column creation request.

6. A data writing method based on a data lake, characterized in that: The method comprises: Obtaining a first data write request triggered by a second user; wherein the first data write request is used to request to write data into a second data table; and the first data write request carries data column description information for the second data table; When it is determined that the data column description information satisfies the preset extension condition and it is determined that there is at least one second materialized column in the second data table, the first data write request is rewritten according to the materialized expression of the at least one second materialized column to obtain a second data write request; wherein the second materialized column is created by using the materialized column creation method based on the data lake according to any one of claims 1 to 5; According to the second data write request, data writing processing is performed on the second data table.

7. The method according to claim 6, characterized in that The rewriting the first data write request according to the materialized expression of the at least one second materialized column to obtain the second data write request includes: According to the position arrangement order of the at least one second materialized column in the second data table, the materialized expression of the at least one second materialized column is sequentially written into the first data write request to obtain a second data write request.

8. The method according to claim 6 or 7, characterized in that: The method further comprises: Get data and write device description information; Determining a writing device to be used according to the data writing device description information; The step of performing data writing processing on the second data table according to the second data writing request includes: Determine a first write task from the second data write request; The first writing task is translated according to the task description language of the writing device to be used to obtain a second writing task; wherein the second writing task is used to implement data writing processing on the second data table; The second writing task is sent to the writing device to be used, so that the writing device to be used executes the second writing task.

9. A data query method based on a data lake, characterized in that: The method comprises: Obtaining a first data query request triggered by a third user; wherein the first data query request is used to request a data query for a third data table; When there is at least one third materialized column in the third data table, the first data query request is rewritten using the materialized column description information of the at least one third materialized column to obtain a second data query request; wherein the third materialized column is created using the materialized column creation method based on a data lake according to any one of claims 1 to 5; According to the second data query request, data query processing is performed on the third data table.

10. The method according to claim 9, characterized in that The first data query request includes data query object description information; the materialized column description information includes a materialized expression and a materialized column identifier; The rewriting of the first data query request by using the materialized column description information of the at least one third materialized column to obtain a second data query request includes: When it is determined that the materialized expression of at least one to-be-used materialized column in the at least one third materialized column matches at least one to-be-used content in the data query object description information, the first data query request is rewritten using the materialized column identifier of the at least one to-be-used materialized column to obtain a second data query request.

11. The method according to claim 10, characterized in that The rewriting the first data query request by using the materialized column identifier of at least one materialized column to be used to obtain the second data query request includes: The materialized column identifier of each materialized column to be used is used to replace the to-be-used content in the first data query request that matches the materialized expression of each materialized column to be used, so as to obtain a second data query request.

12. The method according to claim 10, characterized in that The first data query request carries storage space query range description information; The method further comprises: Determining at least one candidate materialized column set of the third data table according to the storage space query range description information; Determine at least one intersection materialized column according to the intersection of the at least one candidate materialized column set; Using the at least one intersection materialized column, filter out at least one target materialized column from the at least one materialized column to be used; The rewriting the first data query request by using the materialized column identifier of at least one materialized column to be used to obtain the second data query request includes: The first data query request is rewritten using the materialized column identifier of the at least one target materialized column to obtain a second data query request.

13. The method according to claim 10, characterized in that The method further comprises: When it is determined that the associated materialized column of the to-be-eliminated materialized column in the at least one to-be-used materialized column satisfies the preset association condition with the to-be-queried data column in the data query object description information, and the associated materialized columns of each to-be-used materialized column are not the to-be-queried data column, the to-be-eliminated materialized column is deleted from the at least one to-be-used materialized column to obtain at least one candidate materialized column; wherein the associated materialized column of the to-be-eliminated materialized column refers to a data column in the third data table that appears in the materialized expression of the to-be-eliminated materialized column; The rewriting the first data query request by using the materialized column identifier of at least one materialized column to be used to obtain the second data query request includes: The first data query request is rewritten using the materialized column identifier of the at least one candidate materialized column to obtain a second data query request.

14. The method according to any one of claims 9 to 13, characterized in that: The method further comprises: Get data query device description information; Determine the query device to be used according to the data query device description information; The performing data query processing on the third data table according to the second data query request includes: Determine a first query task from the second data query request; Translating the first query task according to the task description language of the query device to be used to obtain a second query task; wherein the second query task is used to implement data query processing on the third data table; The second query task is sent to the query device to be used, so that the query device to be used executes the second query task.

15. A materialized column creation device based on a data lake, characterized in that: include: A first acquisition unit is used to acquire a materialized column creation request triggered by a first user; wherein the materialized column creation request is used to request to create a first materialized column in a first data table; the materialized column creation request carries a materialized expression of the first materialized column; the materialized expression is used to describe a data association relationship between the first materialized column and a target column in the first data table; the target column is a subcolumn in a nested type data column; the materialized expression includes an identifier of the target column; the identifier of the target column includes a column name of the nested type data column and a column name of the subcolumn; A materialized column creation unit, configured to create the first materialized column according to the materialized column creation request; wherein the first materialized column is used to replace the target column to provide data for the data query request carrying the materialized expression; The materialized column creation unit is specifically used to create the first materialized column in the first data table.

16. A data writing device based on a data lake, characterized in that: include: A second acquisition unit is used to acquire a first data write request triggered by a second user; wherein the first data write request is used to request to write data into a second data table; and the first data write request carries data column description information for the second data table; a first rewriting unit, configured to rewrite the first data write request according to a materialized expression of the at least one second materialized column to obtain a second data write request when it is determined that the data column description information satisfies a preset extension condition and when it is determined that there is at least one second materialized column in the second data table; wherein the second materialized column is created by using the materialized column creation method based on a data lake according to any one of claims 1 to 5; A data writing unit is used to write data to the second data table according to the second data writing request.

17. A data query device based on a data lake, characterized in that: include: A third acquisition unit, configured to acquire a first data query request triggered by a third user; wherein the first data query request is used to request a data query for a third data table; a second rewriting unit, configured to, when there is at least one third materialized column in the third data table, rewrite the first data query request using materialized column description information of the at least one third materialized column to obtain a second data query request; wherein the third materialized column is created using the materialized column creation method based on a data lake according to any one of claims 1 to 5; A data query unit is used to perform data query processing on the third data table according to the second data query request.

18. An information processing system based on a data lake, characterized in that: The system includes an information processing layer; wherein the information processing layer is used to execute the materialized column creation method based on the data lake described in any one of claims 1 to 5, or execute the data writing method based on the data lake described in any one of claims 6 to 8, or execute the data query method based on the data lake described in any one of claims 9 to 14.

19. The information processing system according to claim 18, characterized in that: The system also includes a task execution layer and an object storage layer; wherein the task execution layer includes at least one task execution device; and the task execution layer is used to execute the tasks to be executed sent by the information processing layer; the object storage layer is used to provide data storage space for the system.

20. An electronic device, characterized in that: The device comprises a processor and a memory: The memory is used to store instructions or computer programs; The processor is used to execute the instructions or computer programs in the memory so that the electronic device executes the materialized column creation method based on the data lake according to any one of claims 1 to 5, or executes the data writing method based on the data lake according to any one of claims 6 to 8, or executes the data query method based on the data lake according to any one of claims 9 to 14.

21. A computer readable medium, characterized in that The computer-readable medium stores instructions or computer programs. When the instructions or computer programs are executed on a device, the device executes the materialized column creation method based on a data lake as described in any one of claims 1 to 5, or executes the data writing method based on a data lake as described in any one of claims 6 to 8, or executes the data query method based on a data lake as described in any one of claims 9 to 14.

22. A computer program product, characterized in that When the computer program product runs on a terminal device, the terminal device executes the materialized column creation method based on a data lake as described in any one of claims 1 to 5, or executes the data writing method based on a data lake as described in any one of claims 6 to 8, or executes the data query method based on a data lake as described in any one of claims 9 to 14.