A data modeling method, device, computer equipment and storage medium

By creating virtual tables in the data modeling interface, the problems of resource waste and security risks in traditional data modeling are solved, undifferentiated data processing and modeling are achieved, and data modeling efficiency and query retrieval efficiency are improved.

CN118312573BActive Publication Date: 2024-09-06BEIJING DIPEAK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410738186.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-06
Estimated Expiration
2044-06-07

Smart Images

  • Figure CN118312573B
    Figure CN118312573B
Patent Text Reader

Abstract

The present disclosure provides a data modeling method, apparatus, computer equipment and storage medium, wherein the method comprises: displaying a modeling interface, the modeling interface being used to display multiple initial data sources; in response to a target data source being selected, displaying multiple source data under the target data source, and in response to a virtual table creation operation for the source data, displaying a first identifier of a first virtual table corresponding to the source data; the first virtual table is generated according to data attribute information corresponding to the source data; in response to a selection operation for the first identifier, displaying first virtual tables corresponding to each selected first identifier, and in response to a data processing logic creation operation for the selected first virtual table, displaying a second identifier of a second virtual table; in response to a selection operation for a third identifier, displaying third virtual tables corresponding to each selected third identifier, and in response to a modeling relationship creation operation for the third virtual table, displaying a target virtual table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of database technology, and in particular to a data modeling method, apparatus, computer equipment and storage medium. Background Art

[0002] Data from different data sources are often stored in different databases. In order to better manage data in external data sources, for example, to manage data in data systems corresponding to different enterprises, data modeling can often be used. The purpose of data modeling is to create a data table with a new database structure or an alternative database structure for the data in the database corresponding to the external data source, and then use the data table to query and retrieve the data. A fully optimized data model helps to create a simplified logical database, eliminate redundant data, reduce storage requirements, and achieve efficient retrieval.

[0003] The traditional data modeling process requires the use of the Extract-Transform-Load (ELT) process to load data from the source end to the target end before modeling. Among them, ETL is mainly responsible for extracting data (such as relational data, data files, etc.) from various data sources (such as various databases) to a temporary intermediate layer for transformation processing, and finally loading the transformed data to the target end. After the data is loaded to the target end, the data is modeled to obtain the modeling results. However, the traditional modeling method not only requires targeted processing of data from different data sources, but also has the problem of resource waste and security risks caused by the need to load data to the target end, which affects the efficiency of data modeling. Summary of the invention

[0004] The embodiments of the present disclosure at least provide a data modeling method, apparatus, computer device and storage medium.

[0005] In a first aspect, an embodiment of the present disclosure provides a data modeling method, including:

[0006] Displaying a modeling interface, wherein the modeling interface is used to display a variety of initial data sources;

[0007] In response to a target data source being selected from the multiple initial data sources, multiple source data under the target data source are displayed, and in response to a virtual table creation operation for at least one of the source data, a first identifier of a first virtual table corresponding to each of the source data is displayed; the first virtual table is generated according to data attribute information corresponding to the source data;

[0008] In response to a selection operation for the first identifier, first virtual tables corresponding to the selected first identifiers are displayed, and in response to a data processing logic creation operation for the selected first virtual table, a second identifier of a second virtual table corresponding to the selected first virtual table is displayed; the second virtual table is generated according to the data processing logic configured for the selected first virtual table, and the data processing logic is used to perform logical processing on the data attribute information in the first virtual table;

[0009] In response to a selection operation on a third identifier, third virtual tables corresponding to the selected third identifiers are displayed, and in response to a modeling relationship creation operation on the third virtual table, a target virtual table is displayed; the third identifier includes the first identifier and / or the second identifier; the target virtual table is generated according to a modeling relationship configured by a user for the third virtual table and a hierarchical relationship of the third virtual table, and the modeling relationship is used to indicate a connection relationship and / or associated data attribute information between the third virtual tables.

[0010] In a possible implementation, the target virtual table is generated according to the following steps:

[0011] In the case where the third virtual table includes the second virtual table, determining the data reference relationship and target data processing logic corresponding to the target virtual table according to the hierarchical relationship of the third virtual table, wherein the data reference relationship is used to locate the source data corresponding to the target virtual table;

[0012] The target virtual table is generated according to the data attribute information in the third virtual table, the modeling relationship corresponding to the third virtual table, the data processing logic, and the data reference relationship.

[0013] In a possible implementation manner, when the target data source is an unstructured data source, the source data includes various data topics, and each data topic includes at least one string of data;

[0014] The data attribute information of the source data is determined according to the following steps:

[0015] For any of the data topics, perform structured processing on any string data generated under the data topic to obtain target structured data corresponding to the string data;

[0016] According to the target structured data, data attribute information corresponding to the data subject is determined.

[0017] In a possible implementation, when the target data source is a structured data source, the source data includes various data tables, each of which includes at least one structured data;

[0018] The data attribute information of the source data is determined according to the following steps:

[0019] Attribute information is extracted from any of the data tables to obtain the data attribute information corresponding to each of the data tables.

[0020] In a possible implementation manner, after displaying the target virtual table, the method further includes:

[0021] In response to a query request for the target virtual table, data results queried from the target data source are displayed; the data results are obtained by using a source data engine of the target data source to query the source data located by the data reference relationship corresponding to the target virtual table in accordance with the modeling relationship and the data processing logic corresponding to the target virtual table.

[0022] In a possible implementation manner, in response to the data processing logic creation operation for the selected first virtual table, displaying the second identifier of the second virtual table corresponding to the selected first virtual table includes:

[0023] In response to the data processing logic creation operation for the selected first virtual table, a logic setting page is displayed; the logic setting page is used to display a plurality of preset processing logics;

[0024] Acquire each first preset processing logic selected by a user, and first target logic parameters respectively set for each first preset processing logic;

[0025] In response to the logic determination operation, the second identifier of the second virtual table at the next level corresponding to the selected first virtual table is displayed; the second virtual table is obtained by logically processing the data attribute information in the selected first virtual table using the data processing logic generated according to each of the first preset processing logics and the corresponding first target logic parameters.

[0026] In a possible implementation manner, before responding to the selection operation on the third identifier, the method further includes:

[0027] In response to selecting any second identifier, displaying a second virtual table corresponding to the selected second identifier;

[0028] In response to the logic creation operation for the selected second virtual table, a logic setting page is displayed; the logic setting page is used to display a plurality of preset processing logics;

[0029] Acquire each second preset processing logic selected by a user, and a second target logic parameter respectively set for each second preset processing logic;

[0030] In response to the logic determination operation, the second identifier of the newly generated second virtual table is displayed; the newly generated second virtual table is a virtual table at the next level of the selected second virtual table, and the newly generated second virtual table is obtained by logically processing the data attribute information in the selected second virtual table using the data processing logic generated according to each of the second preset processing logics and the corresponding second target logic parameters.

[0031] In a possible implementation, the selection operation includes a marker drag operation;

[0032] In response to the selection operation for the third identifier, displaying the third virtual tables corresponding to the selected third identifiers respectively includes:

[0033] In response to a dragging operation of dragging the third identifier to the table display area, displaying third virtual tables corresponding to the dragged third identifiers respectively;

[0034] In response to the modeling relationship creation operation for the third virtual table, displaying the target virtual table includes:

[0035] In response to the connection operation for the target data attribute information in different third virtual tables, an association relationship configuration page is displayed; the association relationship configuration page displays a connection relationship selection control;

[0036] In response to triggering the connection relationship selection control, a plurality of preset connection relationships are displayed, and the preset connection relationship selected by the user is used as the first target connection relationship between different third virtual tables;

[0037] In response to the first confirmation creation operation, a target virtual table is displayed; the associated data attribute information in the modeling relationship of the target virtual table is two target data attribute information connected by the connection operation, and the connection relationship in the modeling relationship of the target virtual table includes the first target connection relationship.

[0038] In a possible implementation, in response to the modeling relationship creation operation on the third virtual table, displaying the target virtual table includes:

[0039] In response to a trigger operation on the displayed third virtual table, a modeling relationship setting page is displayed; the modeling relationship setting page displays a related node setting control and a connection relationship selection control;

[0040] In response to triggering the associated node setting control, displaying the fourth identifiers of the respective fourth virtual tables, and determining the fourth identifier selected by the user; the fourth virtual table at least includes the third virtual table;

[0041] In response to triggering the connection relationship selection control, a plurality of preset connection relationships are displayed, and the preset connection relationship selected by the user is used as a second target connection relationship between the triggered third virtual table and the fourth virtual table corresponding to the selected fourth identifier;

[0042] In response to the second determination creation operation, a target virtual table is displayed; the connection relationship in the modeling relationship of the target virtual table includes the second target connection relationship.

[0043] In a possible implementation manner, after obtaining each first preset processing logic selected by the user and the first target logic parameter respectively set for each first preset processing logic, the method further includes:

[0044] In response to the logic test operation, the logic test result is displayed; the logic test result is obtained by using the data processing logic generated according to each of the first preset processing logics and the corresponding first target logic parameters to perform logical processing on the source data located by the data reference relationship corresponding to the selected first virtual table.

[0045] In a possible implementation, in response to a target data source being selected from the multiple initial data sources, displaying multiple source data under the target data source includes:

[0046] In response to a target data source among the multiple initial data sources being selected, obtaining registration information input by a user;

[0047] In a case where the registration information indicates that the user has access rights to the target data source, multiple source data corresponding to the target data source are displayed.

[0048] In a second aspect, the present disclosure also provides a data modeling device, including:

[0049] A first display module is used to display a modeling interface, wherein the modeling interface is used to display a variety of initial data sources;

[0050] a second display module, configured to, in response to a target data source being selected from the multiple initial data sources, display a plurality of source data under the target data source, and, in response to a virtual table creation operation for at least one of the source data, display a first identifier of a first virtual table corresponding to each of the source data; the first virtual table is generated according to data attribute information corresponding to the source data;

[0051] a third display module, configured to display the first virtual tables corresponding to the selected first identifiers in response to a selection operation on the first identifier, and to display the second identifier of the second virtual table corresponding to the selected first virtual table in response to a data processing logic creation operation on the selected first virtual table; the second virtual table is generated according to the data processing logic configured for the selected first virtual table, and the data processing logic is used to perform logic processing on the data attribute information in the first virtual table;

[0052] a fourth display module, for displaying the third virtual tables corresponding to the selected third identifiers in response to a selection operation on the third identifier, and for displaying the target virtual table in response to a modeling relationship creation operation on the third virtual table; the third identifier includes the first identifier and / or the second identifier; the target virtual table is generated according to the modeling relationship configured by the user for the third virtual table and the hierarchical relationship of the third virtual table, and the modeling relationship is used to indicate the connection relationship and / or associated data attribute information between the third virtual tables.

[0053] In a third aspect, an optional implementation of the present disclosure further provides a computer device, a processor, and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the machine-readable instructions perform the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.

[0054] In a fourth aspect, an optional implementation of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are executed.

[0055] For a description of the effects of the above-mentioned data modeling apparatus, computer device, and computer-readable storage medium, please refer to the description of the above-mentioned data modeling method, which will not be repeated here.

[0056] In the data modeling method, apparatus, computer equipment and storage medium provided by the embodiments of the present disclosure, different initial data sources correspond to different databases. After any data source among the multiple initial data sources is selected as the target data source, since the first virtual table is generated according to the data attribute information, which does not include specific source data, in the visual modeling interface, the first virtual table created for the source data in the target data source can be used to achieve conversion and modeling of the source data in the database without copying the source data in the target data source, thereby avoiding the problem of resource waste and security risks caused by repeated copying of data, thereby improving data modeling efficiency. Since the target data source can be any one of the multiple initial data sources, and after the target data source is selected, the modeling of the target data source can be achieved by configuring the logic and modeling relationship of the first virtual table in the visual modeling interface, so by creating a virtual table, the differences between different data sources can be shielded, and the data in different target data sources can be processed by using the visual modeling interface and the first virtual table, achieving indifferent data processing and modeling, so that there is no need to perform targeted processing on the data under different data sources. In addition, by creating virtual tables for modeling, the two processes of data conversion (i.e., logical processing) and data modeling can be combined together to ensure the consistency between data conversion and data modeling and avoid invalid data conversion. After the modeling is completed, not only can the data logic in the database be simplified and redundant data in the database be eliminated, but the modeling results can also be used to query and retrieve the data in the database, thereby improving the query and retrieval efficiency of the data in the database.

[0057] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.

[0059] Figure 1 A flow chart of a data modeling method provided by an embodiment of the present disclosure is shown;

[0060] Figure 2 A schematic diagram of a modeling interface provided by an embodiment of the present disclosure is shown;

[0061] Figure 3 A schematic diagram showing a display of source data provided by an embodiment of the present disclosure is shown;

[0062] Figure 4 A schematic diagram of a details page of a data table provided in an embodiment of the present disclosure is shown;

[0063] Figure 5 A schematic diagram showing another modeling interface provided by an embodiment of the present disclosure is shown;

[0064] Figure 6 A schematic diagram of a logic setting page provided by an embodiment of the present disclosure is shown;

[0065] Figure 7 A schematic diagram showing a display of a setting page of multiple data processing logics and logic test results provided by an embodiment of the present disclosure is shown;

[0066] Figure 8 A schematic diagram of a modeling relationship setting page provided by an embodiment of the present disclosure is shown;

[0067] Fig. 9 A query schematic diagram provided by an embodiment of the present disclosure is shown;

[0068] Fig.10 A schematic diagram of a modeling process provided by an embodiment of the present disclosure is shown;

[0069] Fig.11 A schematic diagram of a data modeling device provided by an embodiment of the present disclosure is shown;

[0070] Fig.12 A schematic diagram of the structure of a computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.

[0072] In addition, the terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. The "plurality or several" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0073] According to research, in the traditional data modeling process, after using the ETL process to load data from different databases into the system, the data modeler can associate the data tables that have been loaded into the system during the modeling process, and clarify the relationship between different data tables through different modeling methods. However, since the data tables in the system have been loaded through the ETL process, the data modeler cannot perform secondary processing on the data tables during the modeling process. If you want to perform secondary processing on some of the loaded data tables during the modeling process, you need to interrupt the modeling process and re-process the ETL, and then use the data tables obtained after the re-ETL to re-model, which greatly affects the efficiency of data modeling. In order to avoid the problem of repeated ETL and improve modeling efficiency, a tool, namely data building tool (DBT), was later proposed. Dbt can achieve data modeling by combining ETL and data modeling, but when DBT is used by data modelers, there are many DBT concepts that need to be learned, which increases the difficulty of use. Moreover, when using dbt for modeling, not only is it necessary to perform targeted processing on data from different data sources, but the source data also needs to be loaded into its own system, which results in resource waste and security risks, and has limited effect on improving the efficiency of data modeling.

[0074] Based on the above research, the present disclosure provides a data modeling method, device, computer equipment and storage medium. Different initial data sources correspond to different databases. After any data source among multiple initial data sources is selected as a target data source, since the first virtual table is generated according to data attribute information, which does not include specific source data, in a visual modeling interface, the first virtual table created for the source data in the target data source can be used to convert and model the source data in the database without copying the source data in the target data source, thereby avoiding the problem of resource waste and security risks caused by repeated copying of data, thereby improving data modeling efficiency. Since the target data source can be any one of multiple initial data sources, and after the target data source is selected, the modeling of the target data source can be achieved by configuring the logic and modeling relationship of the first virtual table in the visual modeling interface. Therefore, by creating a virtual table, the differences between different data sources can be shielded. By using the visual modeling interface and the first virtual table, the data in different target data sources can be processed, achieving indiscriminate data processing and modeling, so that there is no need to perform targeted processing on the data under different data sources. In addition, by creating virtual tables for modeling, the two processes of data conversion (i.e., logical processing) and data modeling can be combined together to ensure the consistency between data conversion and data modeling and avoid invalid data conversion. After the modeling is completed, not only can the data logic in the database be simplified and redundant data in the database be eliminated, but the modeling results can also be used to query and retrieve the data in the database, thereby improving the query and retrieval efficiency of the data in the database.

[0075] The defects existing in the above solutions are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed by the present disclosure for the above problems below should be the contributions made by the inventor to the present disclosure during the disclosure process.

[0076] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0077] It should be noted that the specific terms mentioned in the embodiments of the present disclosure include:

[0078] Hive: is a data warehouse tool used for data extraction, transformation, and loading. It is a mechanism for storing, querying, and analyzing large-scale data.

[0079] Oracle: A relational database management system with good portability, ease of use, and powerful functions, suitable for all types of large, medium, and small microcomputer environments;

[0080] OceanBase - a native distributed database.

[0081] Hologress: is a relational database focused on real-time query and analysis. It uses optimization technologies such as column storage and indexing to provide low query latency and high-performance query response.

[0082] MySQL: A relational database management system. Relational databases store data in different tables instead of putting all data in one large warehouse.

[0083] StarRocks: An open-source, next-generation, ultra-fast, full-scenario database that can efficiently support a variety of data analysis scenarios, including multi-dimensional analysis, real-time analysis, and high-concurrency analysis of large amounts of data.

[0084] Kafka: A high-throughput distributed publish-subscribe messaging system that handles all the action streams from consumers on a website.

[0085] Message Queue: Message queue, referred to as MQ, refers to a container for storing messages. In fact, it is essentially a queue for storing data.

[0086] Kerberos: is a computer network authorization protocol used to authenticate personal communications in a secure manner over an insecure network.

[0087] SQL: Structured Query Language, a database query and programming language used to access data and query, update, and manage relational database systems;

[0088] Case when: A syntax in SQL that indicates that once a certain WHEN condition is met, the data will exit the CASE WHEN and no other CASE conditions will be considered.

[0089] To facilitate understanding of the present embodiment, a data modeling method disclosed in the embodiment of the present disclosure is first introduced in detail. The executor of the data modeling method provided in the embodiment of the present disclosure is generally a terminal device or other processing device with certain computing capabilities, wherein the terminal device may be a user equipment (User Equipment, UE), a mobile device, a user terminal, a terminal, a personal digital assistant (Personal Digital Assistant, PDA), a handheld device, a computer device, etc.; in some possible implementations, the data modeling method may be implemented by a processor calling computer-readable instructions stored in a memory.

[0090] The data modeling method provided by the embodiment of the present disclosure is described below by taking the execution subject as a client as an example.

[0091] like Figure 1 As shown, it is a flowchart of a data modeling method provided by an embodiment of the present disclosure, which may include the following steps:

[0092] S101: Display a modeling interface, where the modeling interface is used to display a variety of initial data sources.

[0093] Here, the modeling interface is an interface provided to users (also called data modelers) for data modeling. In the modeling interface, multiple types of initial data sources can be displayed. Different types of initial data sources can have different data storage methods and are related to different databases or data queues. Exemplarily, the initial data source can include but is not limited to Hive, Oracle, OcaeanBase, Hologress, Postgres, MySQL, StarRocks, Kafka, and messagequeue.

[0094] like Figure 2 , which is a schematic diagram of a modeling interface provided by an embodiment of the present disclosure. Specifically, the data modeling method provided by an embodiment of the present disclosure can be carried out using a developed modeling tool as a carrier, and after the user opens the modeling tool, the modeling interface can be displayed. Figure 2 In the modeling interface, a data source type selection control is displayed. When the user triggers the data source type selection control, multiple types of initial data sources can be displayed in response to the trigger operation. Figure 2 Four types of data sources (i.e., Hive, Oracle, OcaeanBase, and Hologress) are shown in the figure, but in actual application, all types of data sources supported by the embodiments of the present disclosure can be displayed.

[0095] S102: In response to a target data source being selected from a plurality of initial data sources, multiple source data under the target data source are displayed, and in response to a virtual table creation operation for at least one source data, a first identifier of a first virtual table corresponding to each source data is displayed; the first virtual table is generated according to data attribute information corresponding to the source data.

[0096] Here, the target data source is a data source selected from multiple initial data sources. There may be at least one source data under each initial data source, and different source data may come from different business scenarios, different business lines, etc. For example, an application scenario of the data modeling method provided by the embodiment of the present disclosure is to model data from any external database. Different types of data sources have different structural attribute information, and different structural attributes correspond to different source data. In the case where the structural attribute information of the data source is an unstructured data attribute, the source data may include various data topics, and each data topic includes at least one string data; in the case where the structural attribute information of the data source is a structured data attribute, the source data may include various data tables, and each data table includes at least one structured data. For example, in the case where the data source is a kafka queue, it can be known that the data in the kafka queue is streaming string data (i.e., string data that arrives one by one at irregular intervals), and different string data may correspond to different data topics; in the case where the data source is a Hive database, the Hive database may include multiple divided data tables, each data table has a certain amount of structured data, and each data table has corresponding data attribute information. For example, in a specific implementation, the data attribute information may be the schema information corresponding to the data table. A piece of source data may correspond to a first virtual table, a virtual table corresponds to a first identifier, and different virtual tables correspond to different first identifiers.

[0097] In specific implementation, in response to a user's selection operation (e.g., click) on any of the multiple initial data sources displayed in the modeling interface, the selected initial data source can be used as the target data source. Then, multiple source data matching the structural attribute information of the target data source can be obtained and displayed. Among them, the source data matching the structural attribute information of the target data source can include a data table or a data subject. For example, in the case where the target data source has unstructured data attributes, the source data is a data subject; in the case where the target data source has structured data attributes, the source data is a data table. For displaying the source data, the specific information corresponding to each source data can be directly displayed, or the identification information of each source data can be displayed. For example, in the case where the source data is a data table, the complete data table can be directly displayed, or the identification information of each data table can be displayed. For example, in response to a selection operation on a Hive data source displayed in the modeling interface, the identification information of multiple data tables under the Hive data source is obtained and displayed. Or, in response to a selection operation on a Kafka data source displayed in the modeling interface, the identification information of multiple data subjects under the Kafka data source is obtained and displayed.

[0098] like Figure 3As shown in FIG. 1 , a schematic diagram of displaying source data provided by an embodiment of the present application is shown, wherein the target data source is a hive data source, and the database corresponding to the data source is an abcde database. Figure 3 The source data displayed in the table are the table names of each data table. In addition, the data source and database to which each data table belongs and the button for querying the details of the data table are also displayed (i.e. Figure 3 ), create a button for the first virtual table corresponding to the data table (i.e. Figure 3 ). If the user triggers the details button of a data table, one or more of the table data, data attribute information, and data partition information corresponding to the data table can be queried from the database corresponding to the data table and displayed to the user. The data attribute information here can be the schema information of the data table. If the user does not trigger the details button of the data table, there is no need to query the corresponding table data or data attribute information from the database corresponding to the data table. Figure 4 , which is a schematic diagram of a details page of a data table provided in an embodiment of the present application, wherein: Figure 4 The page shown can be in response to a user trigger Figure 3 The page displayed after clicking the details button corresponding to table name 1 in the table name 1 shows the schema information preview mark, data preview mark and data partition preview mark of the data table corresponding to table name 1. Users can view the corresponding information by triggering these marks. Figure 4 In the default triggering mark is the schema information preview mark, which shows the field information of each field under the schema information. The field information may include field name, field type, whether it can be empty (null), primary key, partition key, partition format, field description, etc. Figure 4 A “create virtual table” flag is also shown, and by triggering the flag, a first virtual table corresponding to a data table with a table name of 1 can be created.

[0099] In addition, Figure 3 Also shown is an indicator for creating first virtual tables for multiple data tables at the same time (i.e., a "batch create source virtual tables" indicator). By triggering this indicator, the user can select multiple data tables and synchronously create corresponding first virtual tables for the multiple data tables.

[0100] After displaying multiple source data, in response to the virtual table creation operation for at least one source data, the virtual modeling engine corresponding to the modeling tool provided by the embodiment of the present disclosure can be used to create a first virtual table corresponding to the source data and determine the first identifier of the first virtual table according to the data attribute information corresponding to the source data. Then the client can obtain the first identifier of the generated first virtual table and display it to the user. It should be noted that when generating the first virtual table corresponding to a certain data table, only the data attribute information of the data table (specifically schema information) needs to be used, and the specific data included in the data table does not need to be used, nor does it need to load the specific data included in the data table locally (i.e., the modeling tool end provided by the embodiment of the present disclosure). Therefore, the generated first virtual table does not include any specific data, but only includes the data attribute information corresponding to the data table. In this way, by creating the first virtual table attached to the source, the data table in the external data source is mapped to the virtualization system, and the reference to the data table in the external data source is realized, thereby completing the transformation from the physical table to the virtualization.

[0101] In addition, after creating a first virtual table corresponding to a data table, a data reference relationship between the data table and the first virtual table can be created. The data reference relationship can be used to locate the data table corresponding to the first virtual table and query specific data from the data table when querying data on the first virtual table.

[0102] by Figure 3 For example, in response to the user's Figure 3 The trigger operation of the "Create source virtual table" identifier corresponding to the name 1 in the data table is used to create a first virtual table corresponding to the data table and determine the corresponding first identifier based on the data attribute information of the data table with name 1. The client can then obtain the first identifier and display it. During implementation, the user can trigger the "Create source virtual table" identifier corresponding to different data table names according to specific data processing requirements, thereby realizing the creation of virtual tables for the data tables corresponding to these data table names. The client can then display the first identifiers of the correspondingly generated first virtual tables to the user. Of course, the user can also use Figure 3 The "Batch create source virtual tables" flag is used to batch create the first virtual tables corresponding to multiple data tables.

[0103] In one embodiment, the step of displaying multiple source data may also be implemented according to the following steps:

[0104] In response to a target data source being selected from the multiple initial data sources, registration information input by a user is obtained; and when the registration information indicates that the user has access rights to the target data source, multiple source data corresponding to the target data source are displayed.

[0105] Here, the registration information may be permission verification information input by the user, such as a user name and password, a verification code, a verification password, Kerberos authentication information, etc. If the registration information indicates that the user has access rights, it can be said that the registration is successful and the user has the right to reference the target data source.

[0106] For example, in Figure 2 There are also optional authentication methods displayed, namely username / password authentication and Kerberos authentication. Users can choose any authentication method to enter registration information. Figure 2 In the example, the selected authentication method is username / password authentication. When this authentication method is selected, Figure 2 It can also display a user name input box, a password input box, a data source remark information input box, a test data source identifier for testing the data source, and a connection data source identifier for connecting to the data source. Among them, after being triggered, the test data source identifier can be used to test the security and stability of the target data source selected by the user; after being triggered, the connection data source identifier can determine whether the registration information entered by the user is correct. If it is correct, it is determined that the user has access rights to the target data source, and the target data source is connected to achieve a reference to the target data source, and then multiple source data corresponding to the target data source can be obtained and displayed; if the registration information is incorrect, the connection to the target data source is refused, and a registration failure prompt message is displayed.

[0107] For example, after the user selects the target data source, the user name and password information entered by the user can be obtained, and in response to the user triggering the operation of connecting to the data source identifier, the virtual modeling engine is used to use the user name and password information as registration information and determine whether the registration information indicates that the user has access rights. If so, the target data source is connected and displayed as follows: Figure 3 If not, a registration failure prompt message is generated and displayed.

[0108] In this way, by entering the registration information and using the registration information to verify the user, it is possible to accurately determine whether the user has the permission to use the external data source. If the user has the permission to use, by connecting to the data source, the data source can be referenced without copying the entity data in the data source to the local computer. Moreover, no matter which external initial data source is selected as the target data source, the reference to the external data source can be completed by using the registration information, and there is no need to perform a complex EL process on the external data source, thereby reducing the reference complexity of different types of data sources and quickly supporting a large number of data sources.

[0109] S103: In response to a selection operation for the first identifier, display the first virtual tables corresponding to the selected first identifiers respectively, and in response to a data processing logic creation operation for the selected first virtual table, display the second identifier of the second virtual table corresponding to the selected first virtual table; the second virtual table is generated according to the data processing logic configured for the selected first virtual table, and the data processing logic is used to perform logical processing on the data attribute information in the first virtual table.

[0110] Here, the selection operation for the first identifier can be a single-click operation, a double-click operation, a drag operation, etc. The specific selection operation can be set according to experience and is not limited here. The specific first identifier to be selected can be determined according to the needs of the actual data processing business, and different needs require different first virtual tables to be processed. The data modeling process can specifically include two processes, namely a virtual table data processing process and a virtual table modeling process, wherein the virtual table data processing process is to perform a data processing logic creation operation on the virtual table, that is, to use the data processing logic to process the data attribute information in the virtual table; the virtual table modeling process is to perform a modeling relationship creation operation on the virtual table, that is, to construct a modeling relationship between virtual tables to obtain a target virtual table. The data modeling method provided in the embodiment of the present application supports the completion of a virtual table data processing process and a virtual table modeling process in one modeling interface.

[0111] The data processing logic creation operation is used to create conversion logic (i.e., T logic in ELT) for the data attribute information in the first virtual table. For example, the data processing logic can be logic for filtering fields in the first virtual table, logic for weighted summation of fields in the first virtual table, etc.

[0112] The second virtual table is a new virtual table obtained by processing the data attribute information in the first virtual table using the data processing logic created by the user. Since the data processing logic is created for the first virtual table based on the business requirements, each second virtual table created can also be called a business virtual table. The second identifier is used to identify the second virtual table, and one second virtual table corresponds to one second identifier.

[0113] Taking the selection operation as a drag operation as an example, in response to the user dragging any first identifier to the modeling area in the modeling page, the first virtual table corresponding to the first identifier can be displayed in the modeling area. Then, in response to the user's data processing logic creation operation for the displayed first virtual table, the data processing logic created by the user can be obtained. Using the virtualization modeling engine, the data attribute information in the first virtual table is logically processed according to the data processing logic to generate a second virtual table and its corresponding second identifier. Then, the client can display the second identifier in the table identifier display area corresponding to the business virtual table.

[0114] Easy to understand, such as Figure 5 As shown, it is a schematic diagram of another modeling interface provided by an embodiment of the present application, wherein a virtual table identifier is displayed in the modeling interface, and after the virtual table identifier is triggered, a first virtual table identifier (i.e., the source virtual table identifier) ​​and a second virtual table identifier (i.e., the business virtual table identifier) ​​can be displayed. After the first virtual table identifier is triggered, the first identifier of each first virtual table can be displayed in the table identifier display area of ​​the modeling interface; after the second virtual table identifier is triggered, the first identifier of each second virtual table can be displayed in the table identifier display area of ​​the modeling interface. Figure 5 In the example, the second virtual table identifier is triggered, and the second identifiers of the multiple second virtual tables that have been created are displayed in the table identifier display area of ​​the modeling interface, and three second virtual tables are displayed in the modeling area of ​​the modeling interface.

[0115] S104: In response to a selection operation on the third identifier, display the third virtual tables corresponding to the selected third identifiers respectively, and in response to a modeling relationship creation operation on the third virtual table, display the target virtual table; the third identifier includes the first identifier and / or the second identifier; the target virtual table is generated according to the modeling relationship configured by the user for the third virtual table and the hierarchical relationship of the third virtual table, and the modeling relationship is used to indicate the connection relationship and / or associated data attribute information between the third virtual tables.

[0116] Here, the third identifier may be the second identifier and / or the first identifier, and the target virtual table is the final modeling result obtained by the user after modeling the data. The third virtual table is a virtual table with a third identifier. The modeling relationship is used to indicate the table connection relationship and / or associated data attribute information between the third virtual tables used to create the target virtual table. Among them, the connection relationship may include left join, right join, inner join, full outer join, cross join, etc. The associated data attribute information is used to characterize the fields associated between the third virtual tables, also known as the association key between the third virtual tables. For example, in the case where the data attribute information is schema information, the associated data attribute information may be the field information associated between different third virtual tables. A hierarchical relationship is a nested relationship. The hierarchical relationship of the third virtual table is used to characterize virtual tables of each layer corresponding to the third virtual table. For example, when the third virtual table is created using the second virtual table 1, the second virtual table 1 is created using the second virtual table 2, and the second virtual table 2 is created using the first virtual table 1, the hierarchical relationship of the third virtual table may be that the first layer is the first virtual table 1, the second layer is the second virtual table 2, the third layer is the second virtual table 1, and the fourth layer is the third virtual table.

[0117] The modeling relationship creation operation is used to create associations between different third virtual tables. The specific modeling relationships and the third identifiers required are also determined according to specific business needs. The target virtual table does not include any entity data in the target data source, but only includes data attribute information, data processing logic, and data reference relationships. Therefore, the target virtual table will not have data occupied by entities, and its storage cost is very low. However, because the target virtual table has corresponding representation information, users can still perform a series of operations such as query and reference on the target virtual table in the usual way.

[0118] Taking the example that the third identifier only includes the second identifier, in specific implementation, in response to the user dragging a certain number of second identifiers to the modeling area of ​​the modeling interface, the second virtual tables corresponding to the dragged second identifiers can be displayed as the third virtual table in the modeling area. Alternatively, taking the example that the third identifier includes the second identifier and the first identifier, in specific implementation, in response to the user dragging a certain number of first identifiers to the modeling area of ​​the modeling interface, and in response to the user dragging a certain number of second identifiers to the modeling area of ​​the modeling interface, the second virtual tables corresponding to the dragged second identifiers and the first virtual tables corresponding to the dragged first identifiers can be displayed as the third virtual table in the modeling area.

[0119] Then, after displaying each third virtual table in the modeling area, the connection relationship and / or associated data attribute information between different third virtual tables indicated by the user can be obtained in response to the modeling relationship creation operation of the user for each displayed third virtual table. Using the virtualization modeling engine, a target virtual table and a corresponding target identifier are generated according to the obtained connection relationship and / or associated data attribute information, as well as the data attribute information in the third virtual table, the data processing logic corresponding to the third virtual table, and the hierarchical relationship of the third virtual table. Then, the client can display the target identifier in the table identifier display area of ​​the modeling interface, and display the target virtual table in the modeling area of ​​the modeling interface.

[0120] For example, in Figure 5 In the modeling area of ​​the modeling interface, three second virtual tables are displayed. The three second virtual tables include a main table and two sub-tables (sub-table 1 and sub-table 2). The associated data attribute information between the main table and sub-table 1 is current_code and OPDATE, and the connection relationship is a left join; the associated data attribute information between the main table and sub-table 2 is current_name and OPMODE, and the connection relationship is a left join.

[0121] In this way, by dragging and dropping and graphical modeling, the modeling relationship between multiple virtual tables can be quickly created, and graphical modeling can be performed in a virtualized manner. In addition, by selecting virtual tables in a graphical manner, selecting the association keys between virtual tables and configuring the connection relationship, a new virtual table can be quickly and conveniently constructed, and complex modeling can be completed based on the nested relationship of virtual tables.

[0122] Optionally, after displaying the first virtual table corresponding to the selected first identifier, in response to the user's modeling relationship creation operation for the displayed first virtual table, a second virtual table corresponding to the first virtual table and its corresponding second identifier can be generated using a virtualization modeling engine according to the modeling relationship configured by the user. Then, the client can display the generated second identifier to the user. In this way, the data modeling method provided in the embodiment of the present application can utilize the created virtual table to combine the data modeling process and the data processing logic according to business needs during the modeling process through virtualization modeling, thereby simplifying the data modeling process.

[0123] In this way, different initial data sources correspond to different databases. After any data source among the multiple initial data sources is selected as the target data source, since the first virtual table is generated according to the data attribute information, which does not include specific source data, in the visual modeling interface, the first virtual table created for the source data in the target data source can be used to achieve conversion and modeling of the source data in the database without copying the source data in the target data source, thereby avoiding the problem of resource waste and security risks caused by repeated copying of data, thereby improving data modeling efficiency. Since the target data source can be any one of the multiple initial data sources, and after the target data source is selected, the modeling of the target data source can be achieved by configuring the logic and modeling relationship of the first virtual table in the visual modeling interface, so by creating a virtual table, the differences between different data sources can be shielded, and the data in different target data sources can be processed by using the visual modeling interface and the first virtual table, achieving indifferent data processing and modeling, so that there is no need to perform targeted processing on the data under different data sources. In addition, by creating a virtual table for modeling, the two processes of data conversion (i.e., logical processing) and data modeling can be combined together, thereby ensuring the consistency between data conversion and data modeling, and avoiding invalid data conversion work. After the modeling is completed, not only can the data logic in the database be simplified and redundant data in the database be eliminated, but the modeling results can also be used to query and retrieve the data in the database, thereby improving the query and retrieval efficiency of the data in the database.

[0124] Moreover, through virtual modeling, for any external target data source, it is no longer necessary to repeatedly copy the data to the local computer through data import. Data can be quickly applied on the customer's existing data system, reducing the waste of resources and security risks caused by repeated copying of data between different systems. In addition, the data system of this product can be easily combined with the customer's existing data system, avoiding the complex docking process of traditional data systems. At the same time, virtualization greatly simplifies the process of data logic processing and modeling, allowing users to quickly produce and accumulate data assets.

[0125] In one embodiment, the target virtual table can be generated by using a virtualization modeling engine according to the following steps:

[0126] In the case where the third virtual table includes the second virtual table, determining the data reference relationship and the target data processing logic corresponding to the target virtual table according to the hierarchical relationship of the third virtual table, wherein the data reference relationship is used to locate the source data corresponding to the target virtual table;

[0127] A target virtual table is generated according to the data attribute information in the third virtual table, the modeling relationship corresponding to the third virtual table, the data processing logic, and the data reference relationship.

[0128] Here, since the second virtual table is often obtained by performing logical processing or modeling processing on the first virtual table, the second virtual table often belongs to a virtual table under the subordinate level of the first virtual table. At this time, in order to ensure that the source data corresponding to the second virtual table in the target data source can be accurately located during data query, the hierarchical relationship of the second virtual table needs to be used to determine the data reference relationship corresponding to the second virtual table.

[0129] Each virtual table corresponds to a data reference relationship. For the first virtual table, the data reference relationship of the first virtual table can be created when the first virtual table is created by using the virtualization modeling engine according to the data attribute information of the source data. The data reference relationship is used to indicate the mapping relationship between the first virtual table and the source data, so that when querying the first virtual table, the corresponding source data in the target data source can be located and queried according to the data reference relationship. For the second virtual table, the data reference relationship corresponding to the second virtual table can be determined according to the data reference relationship of each first virtual table used when creating the second virtual table. For example, when the second virtual table is obtained by logically processing the first virtual table using the data processing logic configured by the user, the data reference relationship of the second virtual table can be determined according to the source data indicated by the data reference relationship corresponding to the first virtual table. For example, the second virtual table 1 is created according to the first virtual table 1, and the data reference relationship of the first virtual table 1 indicates that the first virtual table 1 is related to the data table 1 in the target data source, then the data reference relationship of the second virtual table 1 can be the mapping relationship between the second virtual table 1 and the data table 1.

[0130] In the case where the second virtual table is obtained by modeling multiple first virtual tables, the data reference relationship of the second virtual table can be determined according to the source data indicated by the data reference relationships respectively corresponding to the multiple first virtual tables. For example, the second virtual table 1 is created according to the first virtual table 1, the first virtual table 2 and the first virtual table 3, the data reference relationship of the first virtual table 1 indicates that the first virtual table 1 is related to the data table 1 in the target data source, the data reference relationship of the first virtual table 2 indicates that the first virtual table 2 is related to the data table 2 in the target data source, and the data reference relationship of the first virtual table 3 indicates that the first virtual table 3 is related to the data table 3 in the target data source, then the data reference relationship of the second virtual table 1 can be the mapping relationship between the second virtual table 1 and the data table 1, and between the data table 2 and the data table 3.

[0131] In specific implementation, when using the virtualization modeling engine to create a target virtual table, it is possible to first determine whether the third virtual table includes the second virtual table. If not, it means that this modeling is directly performed on each first virtual table, and there is no data processing logic setting. The target virtual table can be generated based on the data attribute information in each third virtual table, the modeling relationship corresponding to the third virtual table, and the data reference relationship.

[0132] In the case where the second virtual table is included in the third virtual table, it is necessary to first determine the hierarchical relationship of the second virtual table. According to the hierarchical relationship, the virtual tables under each upper level of the second virtual table are determined, and according to the data reference relationship and data processing logic corresponding to these virtual tables, the data reference relationship and target data processing logic corresponding to the target virtual table are determined. Among them, the target data processing logic can be determined according to the data processing logic of each virtual table hierarchically located above the target virtual table. Then, after determining the data reference relationship and target data processing logic corresponding to the target virtual table, a target virtual table that can characterize the modeling relationship, data attribute information, data reference relationship and target data processing logic corresponding to the target virtual table can be generated according to the data attribute information and modeling relationship of the third virtual table.

[0133] In one embodiment, when the structural attribute information of the target data source is different, the process of determining the data attribute information of the source data is also different. Specifically, the structural attribute information can be divided into two types, one is an unstructured data attribute indicating that the target data source is an unstructured data source, and the other is a structured data attribute indicating that the target data source is a structured data source. The following will introduce the method of determining data attribute information in different situations:

[0134] Case 1: When the target data source is an unstructured data source, the source data includes various data topics, and each data topic includes at least one string data. For example, when the target data source is a kafka queue, it means that the target data source is an unstructured data source, and the structural attribute information of the target data source is an unstructured data attribute. As for the data in the kafka queue, the data in the queue arrives one by one at irregular intervals, and the data is all string data. In the queue, although the arrival time of different string data is different, the queue can be subdivided into different data topics, and the string data under each data topic can be updated in real time. However, the results of splitting any string data under the data topic and extracting the data attributes based on the split results are the same. Based on this attribute of the unstructured data source, the data attribute information can be determined according to the following steps when creating a virtual table:

[0135] For any data subject, any string data generated under the data subject is structured to obtain target structured data corresponding to the string data; based on the target structured data, the data attribute information corresponding to the data subject is determined.

[0136] Here, structured processing is used to parse and split string data, where different types of unstructured data sources have different corresponding structured processing methods. The target structured data is the various fields obtained after the string data is structured.

[0137] Exemplarily, when the target data source is an unstructured data source, each source data displayed in the modeling interface can be a subject identifier of each data subject, and then in response to the user's virtual table creation operation for any data subject, the virtual table modeling engine can be used to obtain any string data under the data subject from the target data source, and then the string data can be structured to obtain the corresponding target structured data. Afterwards, the data attribute information of the target structured data can be extracted to obtain the data attribute information corresponding to the data subject. Then, the data attribute information can be used to construct a first virtual table corresponding to the data subject. Here, the constructed first virtual table can specifically be a streaming table, which can indicate that the data in the target data source is streaming data, and the table only includes data attribute information.

[0138] In this way, for unstructured data such as Kafka, through the virtual table-like method of streaming tables, it is possible to achieve structured management of data under Kafka, standardize the use of non-standard data sources, and realize data modeling for real-time scenarios.

[0139] Case 2: When the target data source is a structured data source, the source data includes various data tables, and each data table includes at least one structured data. Here, when the target data source is a Hive data source, it means that the target data source is a structured data source, and the structural attribute information of the target data source is a structured data attribute. Since the data included in the structured data source is usually batch data, and each batch data has been divided into different data tables, and since each data table has corresponding data attribute information, when creating a virtual table, the data attribute information is determined according to the following steps:

[0140] Extract attribute information from any data table to obtain data attribute information corresponding to the data table.

[0141] Exemplarily, when the target data source is a structured data source, each source data displayed in the modeling interface can be identification information of each data table. Then, in response to the user's virtual table creation operation for a data table corresponding to any identification information, the virtual table modeling engine can be used to extract the schema information of the data table from the data table provided by the target data source, use the schema information as data attribute information of the data table, and create a first virtual table corresponding to the data table based on the data attribute information.

[0142] In this way, when the target data source provides streaming string data and batch data table data respectively, by using different data attribute information determination methods in a targeted manner, virtual modeling processing can be implemented for both streaming data and batch data, thereby avoiding the impact of data sources with different structural attribute information on the modeling process and improving the versatility of data modeling.

[0143] In one embodiment, the step of displaying the second identifier in S103 may be implemented in the following steps:

[0144] S103 - 1 : In response to the data processing logic creation operation for the selected first virtual table, a logic setting page is displayed; the logic setting page is used to display a variety of preset processing logics.

[0145] Here, different preset processing logics have different logic processing functions. For the same preset processing logic, when the parameters are set differently, the corresponding logic functions are also different. Specifically, the various preset processing logics may include expression processing logic, case when processing logic, and data filtering processing logic; wherein, the expression processing logic is used to provide a simple operation rule between fields and between fields and simple numbers, which can easily perform simple processing on the data, and can set units to achieve simple data calculations; case when processing logic is a common data processing method, which can classify data by bucketing to achieve classified processing of data; data filtering processing logic is another common data processing method, which can set the logic of data cleaning by setting filtering conditions, clean the data that does not meet the conditions, and leave the data that meets the conditions.

[0146] The data processing logic creation operation may be, for example, an operation marked with “data processing” in the modeling interface.

[0147] like Figure 6 As shown in FIG. 1 , a schematic diagram of a logic setting page provided in an example of the present application is shown. After displaying the first virtual table, in response to the user clicking the “data processing” icon in the modeling interface, the following logic setting page is displayed: Figure 6 The logical settings page is shown. Figure 6 In the data processing logic setting area, a preset processing logic selection control, a new column name setting box, an alias setting box, a unit setting box, a field description setting box, and a new data processing logic control are displayed. After the preset processing logic selection control is triggered, various preset processing logics can be displayed, and then a preset processing logic selected by the user can be used as the first preset processing logic. When the new data processing logic control is triggered, Figure 6Below the existing data processing logic setting area, add a new data processing logic setting area, and then set the new data processing logic in the data processing logic setting area. The data processing logics set in different data processing logic setting areas are parallel processing logics for the first virtual table. At the same time, if the user needs to set multiple data processing logics, the logical relationship between the multiple data processing logics can be entered in the logical relationship setting box displayed in the logic setting page. For example, Figure 7 The data filtering relationship setting box shown in can be used to set the logical relationship between multiple data filtering logics.

[0148] In addition, the logic setting page also displays a cancel control, a confirmation control, and a test control. The cancel control is used to cancel the data processing logic after being triggered and close the logic setting page; the confirmation control is used to process the first virtual table according to the data processing logic configured by the user to obtain the second virtual table after being triggered. The test control is used to test the data processing logic configured by the user after being triggered.

[0149] S103 - 2 : Acquire each first preset processing logic selected by the user, and first target logic parameters respectively set for each first preset processing logic.

[0150] Here, the first preset processing logic may be regarded as the preset processing logic used in the data processing logic configured for the first virtual table; and the first target logic parameter may be regarded as the logic parameter configured for the first preset processing logic.

[0151] In specific implementation, if you show Figure 6 After the logical setup page shown, the user only needs to use Figure 6 In the data processing logic setting area, the preset processing logic is selected and the specific logic parameters are set. At this time, the first preset processing logic and the first target logic parameter obtained at this time only include one; if the user triggers at least one new data processing logic control, the user can Figure 6 The preset processing logic selected in the data processing logic setting area and the preset processing logic selected after each triggering of the new data processing logic control are all used as the first preset processing logic. Figure 6 The logical parameters set in the data processing logic setting area and the logical parameters set each time the newly added data processing logic control is triggered are used as the first target logical parameters.

[0152] Exemplarily, the data processing logics set by the user in each data processing logic setting area displayed in the logic setting page may be determined based on the processing logic selection operations and logic parameter setting operations respectively performed by the user in each data processing logic setting area.

[0153] S103-3: In response to the logic determination operation, the second identifier of the second virtual table at the next level corresponding to the selected first virtual table is displayed; the second virtual table is obtained by logically processing the data attribute information in the selected first virtual table using the data processing logic generated according to each first preset processing logic and the corresponding first target logic parameter.

[0154] Here, the logic determination operation may be an operation of triggering a determination control in the logic setting page. Since the first virtual table is logically processed using the data processing logic configured by the user, the obtained second virtual table may be regarded as a virtual table at the next level of the first virtual table.

[0155] Exemplarily, in response to a determination control in a trigger logic setting page, a virtualization modeling engine can be used to perform logical processing on the data attribute information of the first virtual table according to the first preset processing logic and the first target logic parameters respectively set by the user in each data processing logic setting area, to obtain a second virtual table and its corresponding second identifier, and determine the data reference relationship of the second virtual table according to the data reference relationship of the first virtual table.

[0156] In this way, users can quickly configure data processing logic in a graphical way, and shield the differences in SQL statements between different data systems. Users only need to use a graphical configuration to process data from different data sources, realizing indiscriminate data processing. In addition, users can process data by defining data processing logic. This processing avoids the generation of a large amount of data each time ETL in the existing technology, and instead meets the user's data query needs through the faster performance of the engine, reducing the resources consumed by invalid data calculations.

[0157] In one embodiment, after executing S103-2, that is, after the user configures at least one data processing logic for the first virtual table, each configured data processing logic can also be tested. Specifically, the logic test result can be displayed in response to the logic test operation; the logic test result is obtained by using the data processing logic generated according to each first preset processing logic and the corresponding first target logic parameter to perform logical processing on the source data located by the data reference relationship corresponding to the selected first virtual table.

[0158] Here, the logic test operation may specifically be the operation of the test control in the trigger logic setting page. The logic test result is the data screened from the source data after the source data located by the data reference relationship corresponding to the first virtual table is logically processed according to the data processing logic configured by the user.

[0159] like Figure 7 As shown, it is a schematic diagram showing a setting page of multiple data processing logics and a display of logic test results provided in an embodiment of the present application, wherein Figure 7 In the example, three data processing logic setting areas are shown. In each data processing logic setting area, the first preset processing logic selected by the user is the data filtering logic. Figure 7 After testing the controls in , you can Figure 7 In the right area, the logic test results are displayed. Figure 7 In the example, the logic test result includes 6 columns, each of which includes 5 value data. The logic test result can be obtained according to the following process: the virtualization modeling engine generates each data processing logic configured by the user according to the first preset processing logic and the corresponding first target logic parameter configured in each data processing logic setting area, and then calls the source processing engine of the target data source to perform data filtering operations on the source data corresponding to the first virtual table according to these data processing logics to obtain each filtered data. Then, the virtualization modeling engine can obtain the filtered data and feed the filtered data back to the client as the logic test result. In this way, the client can display the logic test results to the user.

[0160] In this way, by displaying the logic test results, users can test the configured data processing logic in real time, and determine the rationality of the data processing logic based on the logic test results, and then determine whether the data processing logic needs to be modified, which effectively improves the rationality of the configured data processing logic.

[0161] In one embodiment, the modeling method provided by the embodiment of the present disclosure is also directed to the multi-layer data processing logic of the virtual table to implement complex data processing or nested processing. Specifically, before responding to the selection operation for the third identifier, the multi-layer data processing logic can also be set according to the following steps:

[0162] Step 1: In response to selecting any second identifier, displaying a second virtual table corresponding to the selected second identifier.

[0163] For example, when the user triggers Figure 5After the second virtual table identifier is added, the second identifiers of multiple second virtual tables that have been created can be displayed in the table identifier display area. Then, in response to the user dragging any second identifier to the modeling area of ​​the modeling interface, the second virtual table corresponding to the second identifier can be displayed in the modeling area.

[0164] Step 2: In response to the logic creation operation for the selected second virtual table, a logic setting page is displayed; the logic setting page is used to display a variety of preset processing logics.

[0165] For example, after the selected second virtual table is displayed, in response to the user clicking the "data processing" icon in the modeling interface, the following display may be displayed: Figure 6 The logic settings page is shown.

[0166] Step 3: Acquire each second preset processing logic selected by the user, and the second target logic parameters respectively set for each second preset processing logic.

[0167] Here, the second preset processing logic may be regarded as the preset processing logic used in the data processing logic configured for the second virtual table; and the second target logic parameter may be regarded as the logic parameter configured for the second preset processing logic.

[0168] In specific implementation, regarding the step of obtaining the second preset processing logic and the second target logic parameter, reference may be made to the step of obtaining the first preset processing logic and the first target logic parameter in S103-2 above, which will not be repeated here.

[0169] Step 4: In response to the logic determination operation, display the second identifier of the newly generated second virtual table; the newly generated second virtual table is a virtual table at the next level of the selected second virtual table, and the newly generated second virtual table is obtained by logically processing the data attribute information in the selected second virtual table using the data processing logic generated according to each second preset processing logic and the corresponding second target logic parameter.

[0170] Here, the logic determination operation may be an operation of a determination control in the trigger logic setting page. Since the second virtual table is logically processed using the data processing logic configured by the user, the obtained new second virtual table may be regarded as a virtual table at the next level of the second virtual table.

[0171] Exemplarily, in response to the determination control in the trigger logic setting page, the virtual modeling engine can be used to perform logic processing on the data attribute information of the second virtual table according to the second preset processing logic and the second target logic parameter respectively set by the user in each data processing logic setting area, to obtain a new second virtual table and its corresponding second identifier, and determine the data reference relationship of the new second virtual table according to the data reference relationship of the selected second virtual table. At the same time, the new second virtual table can be used as a virtual table of the next level of the selected second virtual table, and the second identifier of the new second virtual table can be displayed in the table identifier display area as the identifier of the next level of the second identifier of the selected second virtual table.

[0172] Optionally, for a second virtual table, when the second virtual table is obtained after data logic processing of the first virtual table, the second identifier of the second virtual table can also be displayed in the table identifier display area as the identifier of the next level of the first identifier of the first virtual table.

[0173] It should be noted that after generating a new second virtual table, if a deeper level of data processing is required, the second virtual table corresponding to the selected second identifier can be displayed in response to selecting any new second identifier, and then the second virtual table corresponding to the selected second identifier can be returned to execute step 2 to obtain the second virtual table of the next level of the new second virtual table. In this way, by repeatedly executing steps 1 to 4, multiple second virtual tables with multi-layer nested relationships can be obtained to implement multi-layer data processing logic. For example, according to data processing logic 1, the second virtual table 1 is processed, and the virtual table of the next level of the second virtual table 1 is the second virtual table 11; according to data processing logic 2, the second virtual table 11 is processed, and the virtual table of the next level of the second virtual table 11 is the second virtual table 111; according to data processing logic 3, the second virtual table 111 is processed, and the virtual table of the next level of the second virtual table 111 is the second virtual table 1111, wherein the nested relationship of the multi-layer data processing logic is that the next level of the data processing logic 1 is the data processing logic 2, and the next level of the data processing logic 2 is the data processing logic 3.

[0174] In one embodiment, whether it is the first identifier, the second identifier, or the third identifier, the selection operation for these identifiers may include an identifier dragging operation. Specifically, the identifier dragging operation may be an operation of dragging the identifier from the table identifier display area to the modeling area. In this case, the operation of displaying the virtual table corresponding to the third identifier in S104 may be implemented according to the following steps:

[0175] In response to a dragging operation of dragging the third identifier to the table display area, third virtual tables corresponding to the dragged third identifiers are displayed.

[0176] For example, in response to Figure 5 A drag operation is performed on any identifier displayed in the table identifier display area, the identifier is used as the third identifier, and a third virtual table corresponding to the identifier is displayed in the modeling area.

[0177] Furthermore, the step of displaying the target virtual table in S104 may also be implemented according to the following steps:

[0178] S104 - 1 : In response to the connection operation on target data attribute information in different third virtual tables, an association relationship configuration page is displayed; a connection relationship selection control is displayed in the association relationship configuration page.

[0179] Here, the modeling relationship refers to the association relationship and the associated data attribute information between at least two virtual tables. During modeling, the selected multiple third virtual tables may include a main table and multiple subsidiary tables.

[0180] The target data attribute information is the data attribute information selected by the user that needs to establish a connection relationship, and specifically can be two data attribute information that need to establish a connection relationship between any two third virtual tables. For example, if attribute 1 of the third virtual table 1 needs to establish a connection relationship with attribute 2 of the third virtual table 2, then attribute 1 and attribute 2 can be a set of target data attribute information; if attribute 1 of the third virtual table 1 needs to establish a connection relationship with attribute 2 of the third virtual table 2, then attribute 1 and attribute 2 can be a set of target data attribute information; if attribute 2 of the third virtual table 1 needs to establish a connection relationship with attribute 3 of the third virtual table 3, then attribute 1 and attribute 3 can be a set of target data attribute information.

[0181] For any virtual table displayed in the modeling area, the data attribute information of the virtual table can be displayed to the user. Figure 5 In the example, 10 data attribute information of the main table are displayed to the user in the form of a column. The connection operation can specifically be an operation of establishing a connection between data attribute information in different third virtual tables. The association relationship configuration page is used to configure the connection relationship between any set of target data attribute information. After being triggered, the connection relationship selection control can display various preset connection relationships for selection, wherein the preset connection relationship can include left connection, right connection, inner connection, full connection, cross connection, etc.

[0182] Exemplarily, after displaying each third virtual table selected by the user in the modeling area, in response to the user's connection operation to establish a connection between target data attribute information in any two third virtual tables, the connection between the target data attribute information can be displayed, and the association relationship configuration page can be displayed.

[0183] S104 - 2 : In response to triggering the connection relationship selection control, multiple preset connection relationships are displayed, and the preset connection relationship selected by the user is used as the first target connection relationship between different third virtual tables.

[0184] Exemplarily, in response to a user clicking on a connection relationship selection control, multiple selectable preset connection relationships may be displayed in the association relationship configuration page. Then, in response to a user selecting operation (e.g., clicking operation) on any preset connection relationship, the selected preset connection relationship is used as the first target connection relationship between the target data attribute information, and the first target connection relationship is also used as the connection relationship between the two third virtual tables corresponding to the target data attribute information.

[0185] by Figure 5 The three second virtual tables shown in the figure are used as examples of the third virtual table. Figure 5 In the example, there is a connection between the current_code attribute of the main table and the OPDATE attribute of the secondary table 1, so the current_code attribute and the OPDATE attribute are a set of target data attribute information, and the first target connection relationship of the set of target data attribute information is a left connection. There is a connection between the current_name attribute of the main table and the OPMODE attribute of the secondary table 2, so the current_name attribute and the OPMODE attribute are a set of target data attribute information, and the first target connection relationship of the set of target data attribute information is also a left connection.

[0186] In this way, based on the connection operation initiated by the user between the data attribute information in different third virtual tables and the first target connection relationship selected for different connection operations, different modeling relationships can be established between the displayed third virtual tables.

[0187] Optionally, the modeling method provided in the embodiment of the present disclosure also targets multi-layer modeling relationships of virtual tables to implement complex data modeling or nested modeling. Figure 5 For example, after modeling the relationship between main table 1 and sub-table 1 or sub-table 2, if multi-layer modeling is required, a new third virtual table can be selected and displayed in the modeling area, for example, Figure 5 Then, in response to the connection operation for the target data attribute information in sub-table 1 (or sub-table 2) and sub-table 3, and according to the preset connection relationship selected by the user, the connection relationship between the target data attribute information in sub-table 1 (or sub-table 2) and sub-table 3 can be determined, and the connection relationship is simultaneously used as the connection relationship between sub-table 1 (or sub-table 2) and sub-table 3. In this way, a modeling relationship of one level can be formed between the main table and sub-table 1 (or sub-table 2), and a modeling relationship of the next level can be formed between sub-table 1 (or sub-table 2) and sub-table 3.

[0188] It is understandable that the specific number of levels of modeling relationships that need to be established can be determined based on specific business needs, and the embodiments of the present disclosure do not specifically limit this.

[0189] S104-3: In response to the first confirmation creation operation, display the target virtual table; the associated data attribute information in the modeling relationship of the target virtual table is two target data attribute information connected by the connection operation, and the connection relationship in the modeling relationship of the target virtual table includes the first target connection relationship.

[0190] Here, a creation mark may be displayed in the association relationship configuration page, and the first confirmation creation operation may be an operation in which the user clicks the creation mark.

[0191] Exemplarily, in response to the user clicking the operation of creating an identifier in the association relationship configuration page, the virtual modeling engine is used to use the target data attribute information of each group determined in S104-1 as the association data attribute information, and the first target connection relationships determined in S104-2 as the connection relationship, and the target virtual table and its corresponding target identifier are generated according to the data processing logic and data attribute information corresponding to the third virtual table. Then, the client can display the target identifier in the table identifier display area, and display the target virtual table in the modeling area.

[0192] In this way, the virtual table provides modeling capabilities for virtualized modeling. Users can select the third virtual table to model between offline tables or real-time tables. The modeling method through the interface is very simple. Users only need to select the third virtual table and select the corresponding join relationship and association key to quickly complete the modeling between virtual tables. In addition, through virtualization and graphical modeling, the virtual table data processing process and the virtual table modeling process can be integrated together, ensuring the consistency of virtual table data processing and data modeling, and avoiding invalid virtual table data processing work.

[0193] In one embodiment, the step of displaying the target virtual table in S104 may also be implemented according to the following steps:

[0194] A1: In response to a trigger operation on the displayed third virtual table, a modeling relationship setting page is displayed; the modeling relationship setting page displays a related node setting control and a connection relationship selection control.

[0195] Here, the trigger operation may include, for example, an operation of clicking a preset control on the third virtual table, an operation of double-clicking the third virtual table, etc. The modeling relationship setting page is used to set the modeling relationship for the third virtual table, specifically, to set the associated nodes of the third virtual table (i.e., other associated third virtual tables), the connection relationship between the associated nodes, and the associated data attribute information between the associated nodes, etc. The modeling relationship setting page at least displays an associated node setting control and a connection relationship selection control. The associated node setting control is used to display the selectable nodes after being triggered, and the connection relationship selection control is used to display the selectable preset connection relationships after being triggered.

[0196] Still Figure 5 For example, in response to the user's trigger operation on sub-table 1, the following table can be displayed: Figure 8 The Modeling Relationship Settings page shown. Figure 8 The associated node setting control in is the control corresponding to "Please select the parent node of the current sub-table". Figure 8 The connection relationship selection control in is the control corresponding to the "join relationship with the parent node". Figure 8 The time column setting control (i.e. the control corresponding to "Please select the secondary table time column"), the OK button and the Cancel button are also displayed. The time column setting control is used to set the time column of the virtual table after being triggered, the OK button is used to confirm the creation of the modeling relationship after being triggered, and the Cancel button is used to cancel the creation of the modeling relationship after being triggered.

[0197] A2: In response to triggering the associated node setting control, displaying the fourth identifiers of the respective fourth virtual tables, and determining the fourth identifier selected by the user; the fourth virtual table at least includes the third virtual table.

[0198] Here, the fourth virtual table may at least include the displayed third virtual tables. Optionally, the fourth virtual table may include the third virtual table, the second virtual table and the first virtual table. The fourth identifier is the identifier of the fourth virtual table.

[0199] For example, in response to a user trigger Figure 8 The associated node setting control in the display unit 1 displays the fourth identifiers of the fourth virtual tables that can be associated with the secondary table 1 and can be used as the main table of the secondary table 1. Then, in response to the user's selection operation on any of the displayed fourth identifiers, the fourth identifier can be used as the fourth identifier selected by the user, and the fourth virtual table corresponding to the fourth identifier selected by the user can be used as the associated virtual table of the secondary table 1.

[0200] A3: In response to triggering the connection relationship selection control, multiple preset connection relationships are displayed, and the preset connection relationship selected by the user is used as the second target connection relationship between the triggered third virtual table and the fourth virtual table corresponding to the selected fourth identifier.

[0201] For example, in response to a user trigger Figure 8 A connection relationship selection control is displayed to display multiple preset connection relationships, and then the preset connection relationship selected by the user is used as the second target connection relationship between the secondary table 1 and the fourth virtual table corresponding to the fourth identifier selected by the user.

[0202] A4: In response to the second determination creation operation, the target virtual table is displayed; the connection relationship in the modeling relationship of the target virtual table includes the second target connection relationship.

[0203] Here, the second creation confirmation operation may be an operation of clicking a confirmation button in the modeling relationship setting page.

[0204] Exemplarily, in response to the user clicking the OK button, the virtual modeling engine can be used to generate a target virtual table and its corresponding target identifier based on the second target connection relationship, the data attribute information and data processing logic in the secondary table 1, and the data attribute information and data processing logic in the fourth virtual table corresponding to the fourth identifier selected by the user. Then, the client can display the target identifier in the table identifier display area, and display the target virtual table in the modeling area.

[0205] Optionally, before executing A4, a user trigger may be triggered. Figure 8 The time column setting control in the sub-table 1 is used to determine the columns that can be used as the time column from the sub-table 1, and then the column selected by the user can be used as the time column of the sub-table 1. Then, the user can click the OK button to use the virtual modeling engine to generate the target virtual table and its corresponding target identifier according to the second target connection relationship, the time column selected by the user, the data attribute information and data processing logic corresponding to the sub-table 1, and the data attribute information and data processing logic in the fourth virtual table corresponding to the fourth identifier selected by the user.

[0206] In this way, after dragging the virtual table for display, you can use the modeling relationship setting page to set the connection relationship and associated nodes between virtual tables to easily implement snowflake or star modeling.

[0207] In one embodiment, after displaying the target virtual table, the data modeling method provided by the embodiment of the present disclosure also supports querying the modeling results. Specifically, it can respond to the query request for the target virtual table and display the data results queried from the target data source; the data results are obtained by using the source data engine of the target data source to query the source data located by the data reference relationship corresponding to the target virtual table according to the modeling relationship and data processing logic corresponding to the target virtual table.

[0208] Here, the query request may be an SQL query initiated for the target virtual table. The data result is the entity data queried from the source data located by the data reference relationship corresponding to the target data source.

[0209] like Fig. 9 As shown, a query schematic diagram provided by an embodiment of the present application is provided, wherein an SQL query identifier is displayed in the modeling page. After the identifier is triggered, an SQL statement writing area can be displayed in the modeling interface, and the target identifiers of each target virtual table that has been created can be displayed in the table identifier display area. Then, the SQL statement for the target virtual table entered by the user in the SQL statement writing area can be obtained, and in response to the query operation, the SQL statement entered by the user is sent as a query request to the virtualization modeling engine. The virtualization modeling engine then calls the source data engine of the target data source, and performs a data query on the source data located by the data reference relationship corresponding to the target virtual table according to the modeling relationship and data processing logic corresponding to the target virtual table, to obtain the data result. The virtualization modeling engine can then obtain the data result queried by the source data engine and feed it back to the client, so that the client displays the data result in the modeling page.

[0210] In this way, through SQL query, you can query the data of the target data source and the constructed target virtual table. When querying the target virtual table, you can use the source data engine of the target data source to query the source data associated with the target virtual table according to the modeling relationship and data processing logic corresponding to the target virtual table to obtain data results. The entire query process has low requirements on the computing resources of the virtualized modeling engine, and mainly relies on the source data engine. Since the source data engine has reliable computing resources, it can effectively improve data query efficiency.

[0211] Furthermore, when using the source data engine to query data, not all entity data in the source data associated with the target virtual table will be loaded locally, but only part of the data results queried by the source data engine will be loaded locally for display, effectively avoiding the problem of resource waste and security risks caused by duplicate data. In addition, the data results obtained by the query will not be persistently stored locally, effectively reducing the local storage pressure.

[0212] To facilitate understanding of the data modeling method provided in the embodiment of the present application, the embodiment of the present disclosure also provides a modeling process diagram. Fig.10 As shown, a schematic diagram of a modeling process provided by an embodiment of the present disclosure may include the following steps:

[0213] S1001: Register an external data source.

[0214] Specifically, this step is to use the registration information input by the user to determine whether the user has access rights to the target data source. If it is determined that the user has access rights, the virtual modeling system can be connected to the external data source system.

[0215] S1002: Create a data table in the target data source as a source virtual table.

[0216] Specifically, this step is to create a corresponding first virtual table for the data table selected by the user.

[0217] In this way, the virtualization process of data tables under various data sources is realized by attaching source virtual tables, so that they are included in the virtualization system.

[0218] S1003: Create data processing logic based on the virtual table to implement data processing for the virtual table.

[0219] Here, the data attribute information in the virtual table may be logically processed according to the data processing logic configured by the user in the modeling interface to obtain the second virtual table.

[0220] S1004: Determine whether multiple layers of data processing logic are required.

[0221] If so, the process may return to S1003, that is, create a multi-layer data processing logic according to the steps of S1003; if not, the process may execute S1005 described below.

[0222] In this way, the graphical data processing logic configuration is performed through virtualization, and the virtual table after executing the data processing logic is defined through logic definition, which improves the convenience and efficiency of data logic processing. In addition, complex data processing can be achieved based on the nested relationship of virtual tables.

[0223] S1005: Modeling based on the virtual table.

[0224] This step is to create a target virtual table according to the modeling relationship configured by the user in the modeling interface.

[0225] S1006: Determine whether multi-layer modeling is required.

[0226] If so, the process may return to S1005, that is, perform multi-layer modeling according to the steps of S1005; if not, the process may execute the following S1007.

[0227] In this way, graphical modeling is performed through virtualization, virtual tables are selected graphically, the association keys between virtual tables are selected, and the connection relationships are configured, thereby building new virtual tables, which improves the convenience and efficiency of data modeling. In addition, complex modeling can be completed based on the nested relationships of virtual tables, thereby realizing complex data processing.

[0228] S1007: Query modeling results.

[0229] In this step, in response to a query request for the target virtual table, the data results queried from the target data source may be displayed.

[0230] In this way, the constructed virtual table model can be queried through the modeling result query. At this time, the virtual table will find the corresponding data processing results based on the data table in the associated target data source and the constructed data processing logic. At this time, these data processing results will not be persisted, thus providing a new way of data application based on logic.

[0231] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0232] Based on the same inventive concept, a data modeling device corresponding to the data modeling method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned data modeling method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.

[0233] like Fig.11 FIG. 1 is a schematic diagram of a data modeling device provided by an embodiment of the present disclosure, comprising:

[0234] A first display module 1101 is used to display a modeling interface, where the modeling interface is used to display a variety of initial data sources;

[0235] The second display module 1102 is used for displaying a plurality of source data under the target data source in response to the target data source being selected from the plurality of initial data sources, and in response to a virtual table creation operation for at least one of the source data, displaying a first identifier of a first virtual table corresponding to each of the source data; the first virtual table is generated according to data attribute information corresponding to the source data;

[0236] The third display module 1103 is used to display the first virtual tables corresponding to the selected first identifiers in response to the selection operation for the first identifier, and to display the second identifier of the second virtual table corresponding to the selected first virtual table in response to the data processing logic creation operation for the selected first virtual table; the second virtual table is generated according to the data processing logic configured for the selected first virtual table, and the data processing logic is used to perform logical processing on the data attribute information in the first virtual table;

[0237] The fourth display module 1104 is used to display the third virtual tables corresponding to the selected third identifiers in response to the selection operation on the third identifier, and to display the target virtual table in response to the modeling relationship creation operation on the third virtual table; the third identifier includes the first identifier and / or the second identifier; the target virtual table is generated according to the modeling relationship configured by the user for the third virtual table and the hierarchical relationship of the third virtual table, and the modeling relationship is used to indicate the connection relationship and / or associated data attribute information between the third virtual tables.

[0238] In a possible implementation, the device further includes a generating module 1105, configured to generate the target virtual table according to the following steps:

[0239] In the case where the third virtual table includes the second virtual table, determining the data reference relationship and target data processing logic corresponding to the target virtual table according to the hierarchical relationship of the third virtual table, wherein the data reference relationship is used to locate the source data corresponding to the target virtual table;

[0240] The target virtual table is generated according to the data attribute information in the third virtual table, the modeling relationship corresponding to the third virtual table, the data processing logic, and the data reference relationship.

[0241] In a possible implementation manner, when the target data source is an unstructured data source, the source data includes various data topics, and each data topic includes at least one string of data;

[0242] The device further includes a first determining module 1106, configured to determine data attribute information of the source data according to the following steps:

[0243] For any of the data topics, perform structured processing on any string data generated under the data topic to obtain target structured data corresponding to the string data;

[0244] According to the target structured data, data attribute information corresponding to the data subject is determined.

[0245] In a possible implementation, when the target data source is a structured data source, the source data includes various data tables, each of which includes at least one structured data;

[0246] The device further includes a second determining module 1107, configured to determine data attribute information of the source data according to the following steps:

[0247] Attribute information is extracted from any of the data tables to obtain the data attribute information corresponding to the data table.

[0248] In a possible implementation, the device further includes a query module 1108, which is used, after displaying the target virtual table, to:

[0249] In response to a query request for the target virtual table, data results queried from the target data source are displayed; the data results are obtained by using a source data engine of the target data source to query the source data located by the data reference relationship corresponding to the target virtual table in accordance with the modeling relationship and the data processing logic corresponding to the target virtual table.

[0250] In a possible implementation, the third display module 1103, when displaying the second identifier of the second virtual table corresponding to the selected first virtual table in response to the data processing logic creation operation for the selected first virtual table, is used to:

[0251] In response to the data processing logic creation operation for the selected first virtual table, a logic setting page is displayed; the logic setting page is used to display a plurality of preset processing logics;

[0252] Acquire each first preset processing logic selected by a user, and first target logic parameters respectively set for each first preset processing logic;

[0253] In response to the logic determination operation, the second identifier of the second virtual table at the next level corresponding to the selected first virtual table is displayed; the second virtual table is obtained by logically processing the data attribute information in the selected first virtual table using the data processing logic generated according to each of the first preset processing logics and the corresponding first target logic parameters.

[0254] In a possible implementation manner, the third display module 1103, before responding to a selection operation on the third identifier, is further configured to:

[0255] In response to selecting any second identifier, displaying a second virtual table corresponding to the selected second identifier;

[0256] In response to the logic creation operation for the selected second virtual table, a logic setting page is displayed; the logic setting page is used to display a plurality of preset processing logics;

[0257] Acquire each second preset processing logic selected by a user, and a second target logic parameter respectively set for each second preset processing logic;

[0258] In response to the logic determination operation, the second identifier of the newly generated second virtual table is displayed; the newly generated second virtual table is a virtual table at the next level of the selected second virtual table, and the newly generated second virtual table is obtained by logically processing the data attribute information in the selected second virtual table using the data processing logic generated according to each of the second preset processing logics and the corresponding second target logic parameters.

[0259] In a possible implementation, the selection operation includes a marker drag operation;

[0260] The fourth display module 1104, when displaying the third virtual tables corresponding to the selected third identifiers in response to the selection operation on the third identifier, is used to:

[0261] In response to a dragging operation of dragging the third identifier to the table display area, displaying third virtual tables corresponding to the dragged third identifiers respectively;

[0262] The fourth display module 1104, when displaying the target virtual table in response to the modeling relationship creation operation for the third virtual table, is used to:

[0263] In response to the connection operation for the target data attribute information in different third virtual tables, an association relationship configuration page is displayed; the association relationship configuration page displays a connection relationship selection control;

[0264] In response to triggering the connection relationship selection control, a plurality of preset connection relationships are displayed, and the preset connection relationship selected by the user is used as the first target connection relationship between different third virtual tables;

[0265] In response to the first confirmation creation operation, a target virtual table is displayed; the associated data attribute information in the modeling relationship of the target virtual table is two target data attribute information connected by the connection operation, and the connection relationship in the modeling relationship of the target virtual table includes the first target connection relationship.

[0266] In a possible implementation, the fourth display module 1104, when displaying the target virtual table in response to the modeling relationship creation operation on the third virtual table, is configured to:

[0267] In response to a trigger operation on the displayed third virtual table, a modeling relationship setting page is displayed; the modeling relationship setting page displays a related node setting control and a connection relationship selection control;

[0268] In response to triggering the associated node setting control, displaying the fourth identifiers of the respective fourth virtual tables, and determining the fourth identifier selected by the user; the fourth virtual table at least includes the third virtual table;

[0269] In response to triggering the connection relationship selection control, a plurality of preset connection relationships are displayed, and the preset connection relationship selected by the user is used as a second target connection relationship between the triggered third virtual table and the fourth virtual table corresponding to the selected fourth identifier;

[0270] In response to the second determination creation operation, a target virtual table is displayed; the connection relationship in the modeling relationship of the target virtual table includes the second target connection relationship.

[0271] In a possible implementation, the device further includes a testing module 1109, which is used to: after obtaining each first preset processing logic selected by a user and a first target logic parameter set for each first preset processing logic:

[0272] In response to the logic test operation, the logic test result is displayed; the logic test result is obtained by using the data processing logic generated according to each of the first preset processing logics and the corresponding first target logic parameters to perform logical processing on the source data located by the data reference relationship corresponding to the selected first virtual table.

[0273] In a possible implementation manner, the second display module 1102, in response to a target data source being selected from the multiple initial data sources, when displaying multiple source data under the target data source, is used to:

[0274] In response to a target data source among the multiple initial data sources being selected, obtaining registration information input by a user;

[0275] In a case where the registration information indicates that the user has access rights to the target data source, multiple source data corresponding to the target data source are displayed.

[0276] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.

[0277] Based on the same technical concept, the embodiment of the present application also provides a computer device. Fig.12 FIG. 1 is a schematic diagram of a computer device provided in an embodiment of the present application, including:

[0278] Processor 1201, memory 1202 and bus 1203. The memory 1202 stores machine-readable instructions executable by the processor 1201, and the processor 1201 is used to execute the machine-readable instructions stored in the memory 1202. When the machine-readable instructions are executed by the processor 1201, the processor 1201 performs the following steps: S101: displaying a modeling interface, the modeling interface is used to display multiple initial data sources; S102: in response to a target data source being selected from multiple initial data sources, displaying multiple source data under the target data source, and in response to a virtual table creation operation for at least one source data, displaying a first identifier of a first virtual table corresponding to each source data; the first virtual table is generated according to the data attribute information corresponding to the source data; S103: in response to a selection operation for the first identifier, displaying the first virtual tables corresponding to the selected first identifiers, In response to the data processing logic creation operation for the selected first virtual table, the second identifier of the second virtual table corresponding to the selected first virtual table is displayed; the second virtual table is generated according to the data processing logic configured for the selected first virtual table, and the data processing logic is used to perform logical processing on the data attribute information in the first virtual table; and S104: in response to the selection operation for the third identifier, the third virtual tables corresponding to the selected third identifiers are displayed, and in response to the modeling relationship creation operation for the third virtual table, the target virtual table is displayed; the third identifier includes the first identifier and / or the second identifier; the target virtual table is generated according to the modeling relationship configured by the user for the third virtual table and the hierarchical relationship of the third virtual table, and the modeling relationship is used to indicate the connection relationship and / or associated data attribute information between the third virtual tables.

[0279] The above-mentioned memory 1202 includes internal memory 1221 and external memory 1222; the memory 1221 here is also called internal memory, which is used to temporarily store the calculation data in the processor 1201, as well as the data exchanged with the external memory 1222 such as the hard disk. The processor 1201 exchanges data with the external memory 1222 through the internal memory 1221. When the computer device is running, the processor 1201 and the memory 1202 communicate through the bus 1203, so that the processor 1201 executes the execution instructions mentioned in the above-mentioned method embodiment.

[0280] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the data modeling method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.

[0281] The computer program product of the data modeling method provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the steps of the data modeling method described in the above method embodiments. Please refer to the above method embodiments for details, which will not be repeated here.

[0282] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is embodied as a computer storage medium, and in another optional embodiment, the computer program product is embodied as a software product, such as a software development kit (SDK).

[0283] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.

[0284] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0285] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0286] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0287] If the technical solution of this application involves personal information, the product using the technical solution of this application has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using the technical solution of this application has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the "explicit consent" requirement. For example, on personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to the collection of his or her personal information; or on the device that processes personal information, the personal information processing rules are notified by obvious signs / information, and the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; among them, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.

[0288] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A data modeling method, characterized in that: include: Displaying a modeling interface, wherein the modeling interface is used to display a variety of initial data sources; In response to a target data source being selected from the multiple initial data sources, displaying multiple source data under the target data source, and in response to a virtual table creation operation for at least one of the source data, displaying a first identifier of a first virtual table corresponding to each of the source data; The first virtual table is generated according to data attribute information corresponding to the source data; In response to a selection operation on the first identifier, displaying first virtual tables corresponding to the selected first identifiers, and in response to a data processing logic creation operation on the selected first virtual table, displaying a second identifier of a second virtual table corresponding to the selected first virtual table; The second virtual table is generated according to the data processing logic configured for the selected first virtual table, the data processing logic being used to perform logical processing on the data attribute information in the first virtual table; In response to a selection operation on a third identifier, displaying third virtual tables corresponding to the selected third identifiers respectively, and in response to a modeling relationship creation operation on the third virtual table, displaying a target virtual table; the third identifier includes the first identifier and / or the second identifier; The target virtual table is generated according to the modeling relationship configured by the user for the third virtual table and the hierarchical relationship of the third virtual table, wherein the modeling relationship is used to indicate the connection relationship and / or associated data attribute information between the third virtual tables; The target virtual table is generated according to the following steps: In the case where the third virtual table includes the second virtual table, determining the data reference relationship and target data processing logic corresponding to the target virtual table according to the hierarchical relationship of the third virtual table, wherein the data reference relationship is used to locate the source data corresponding to the target virtual table; Generate the target virtual table according to the data attribute information in the third virtual table, the modeling relationship corresponding to the third virtual table, the data processing logic, and the data reference relationship; The step of displaying the second identifier of the second virtual table corresponding to the selected first virtual table in response to the data processing logic creation operation for the selected first virtual table includes: In response to a data processing logic creation operation for a selected first virtual table, a logic setting page is displayed; the logic setting page is used to display a plurality of preset processing logics; each first preset processing logic selected by a user and a first target logic parameter set for each first preset processing logic are obtained; in response to a logic determination operation, a second identifier of a second virtual table at a next level corresponding to the selected first virtual table is displayed; the second virtual table is obtained by performing logical processing on data attribute information in the selected first virtual table using the data processing logic generated according to each first preset processing logic and the corresponding first target logic parameter.

2. The method according to claim 1, characterized in that In the case where the target data source is an unstructured data source, the source data includes various data topics, and each data topic includes at least one string of data; The data attribute information of the source data is determined according to the following steps: For any of the data topics, perform structured processing on any string data generated under the data topic to obtain target structured data corresponding to the string data; According to the target structured data, data attribute information corresponding to the data subject is determined.

3. The method according to claim 1, characterized in that In the case where the target data source is a structured data source, the source data includes various data tables, each of which includes at least one structured data; The data attribute information of the source data is determined according to the following steps: Attribute information is extracted from any of the data tables to obtain the data attribute information corresponding to the data table.

4. The method according to claim 1, characterized in that: After displaying the target virtual table, the method further includes: In response to a query request for the target virtual table, data results queried from the target data source are displayed; the data results are obtained by using a source data engine of the target data source to query the source data located by the data reference relationship corresponding to the target virtual table in accordance with the modeling relationship and the data processing logic corresponding to the target virtual table.

5. The method according to claim 1, characterized in that Before responding to the selection operation on the third identifier, the method further includes: In response to selecting any second identifier, displaying a second virtual table corresponding to the selected second identifier; In response to the logic creation operation for the selected second virtual table, a logic setting page is displayed; the logic setting page is used to display a plurality of preset processing logics; Acquire each second preset processing logic selected by a user, and a second target logic parameter respectively set for each second preset processing logic; In response to the logic determination operation, the second identifier of the newly generated second virtual table is displayed; the newly generated second virtual table is a virtual table at the next level of the selected second virtual table, and the newly generated second virtual table is obtained by logically processing the data attribute information in the selected second virtual table using the data processing logic generated according to each of the second preset processing logics and the corresponding second target logic parameters.

6. The method according to claim 1, characterized in that The selection operation includes a marker drag operation; In response to the selection operation for the third identifier, displaying the third virtual tables corresponding to the selected third identifiers respectively includes: In response to a dragging operation of dragging the third identifier to the table display area, displaying third virtual tables corresponding to the dragged third identifiers respectively; In response to the modeling relationship creation operation for the third virtual table, displaying the target virtual table includes: In response to the connection operation for the target data attribute information in different third virtual tables, an association relationship configuration page is displayed; the association relationship configuration page displays a connection relationship selection control; In response to triggering the connection relationship selection control, a plurality of preset connection relationships are displayed, and the preset connection relationship selected by the user is used as the first target connection relationship between different third virtual tables; In response to the first confirmation creation operation, a target virtual table is displayed; the associated data attribute information in the modeling relationship of the target virtual table is two target data attribute information connected by the connection operation, and the connection relationship in the modeling relationship of the target virtual table includes the first target connection relationship.

7. The method according to claim 1, characterized in that In response to the modeling relationship creation operation for the third virtual table, displaying the target virtual table includes: In response to a trigger operation on the displayed third virtual table, a modeling relationship setting page is displayed; the modeling relationship setting page displays a related node setting control and a connection relationship selection control; In response to triggering the associated node setting control, displaying the fourth identifiers of the respective fourth virtual tables, and determining the fourth identifier selected by the user; the fourth virtual table at least includes the third virtual table; In response to triggering the connection relationship selection control, a plurality of preset connection relationships are displayed, and the preset connection relationship selected by the user is used as a second target connection relationship between the triggered third virtual table and the fourth virtual table corresponding to the selected fourth identifier; In response to the second determination creation operation, a target virtual table is displayed; the connection relationship in the modeling relationship of the target virtual table includes the second target connection relationship.

8. The method according to claim 1, characterized in that After obtaining each first preset processing logic selected by the user and setting the first target logic parameter for each first preset processing logic, the method further includes: In response to the logic test operation, the logic test result is displayed; the logic test result is obtained by using the data processing logic generated according to each of the first preset processing logics and the corresponding first target logic parameters to perform logical processing on the source data located by the data reference relationship corresponding to the selected first virtual table.

9. The method according to claim 1, characterized in that: In response to a target data source being selected from the multiple initial data sources, displaying multiple source data under the target data source includes: In response to a target data source among the multiple initial data sources being selected, obtaining registration information input by a user; In a case where the registration information indicates that the user has access rights to the target data source, multiple source data corresponding to the target data source are displayed.

10. A data modeling device, characterized in that: include: A first display module, used to display a modeling interface, wherein the modeling interface is used to display a variety of initial data sources; A second display module is used for, in response to a target data source being selected from the multiple initial data sources, displaying multiple source data under the target data source, and in response to a virtual table creation operation for at least one of the source data, displaying a first identifier of a first virtual table corresponding to each of the source data; The first virtual table is generated according to data attribute information corresponding to the source data; A third display module is used to display the first virtual tables corresponding to the selected first identifiers in response to the selection operation on the first identifier, and to display the second identifier of the second virtual table corresponding to the selected first virtual table in response to the data processing logic creation operation on the selected first virtual table; The second virtual table is generated according to the data processing logic configured for the selected first virtual table, the data processing logic being used to perform logical processing on the data attribute information in the first virtual table; a fourth display module, configured to display the third virtual tables corresponding to the selected third identifiers in response to a selection operation on the third identifiers, and to display the target virtual table in response to a modeling relationship creation operation on the third virtual table; the third identifier includes the first identifier and / or the second identifier; The target virtual table is generated according to the modeling relationship configured by the user for the third virtual table and the hierarchical relationship of the third virtual table, wherein the modeling relationship is used to indicate the connection relationship and / or associated data attribute information between the third virtual tables; A generating module is used to generate the target virtual table according to the following steps: In the case where the third virtual table includes the second virtual table, determining the data reference relationship and target data processing logic corresponding to the target virtual table according to the hierarchical relationship of the third virtual table, wherein the data reference relationship is used to locate the source data corresponding to the target virtual table; Generate the target virtual table according to the data attribute information in the third virtual table, the modeling relationship corresponding to the third virtual table, the data processing logic, and the data reference relationship; The third display module, when displaying the second identifier of the second virtual table corresponding to the selected first virtual table in response to the data processing logic creation operation for the selected first virtual table, is used to: In response to the data processing logic creation operation for the selected first virtual table, a logic setting page is displayed; the logic setting page is used to display a plurality of preset processing logics; Acquire each first preset processing logic selected by a user, and first target logic parameters respectively set for each first preset processing logic; In response to the logic determination operation, displaying a second identifier of a second virtual table at a next level corresponding to the selected first virtual table; The second virtual table is obtained by performing logical processing on the data attribute information in the selected first virtual table using the data processing logic generated according to each of the first preset processing logics and the corresponding first target logic parameters.

11. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the processor executes the steps of the data modeling method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a computer device, the computer device executes the steps of the data modeling method according to any one of claims 1 to 9.