Method and device for generating data table information, storage medium and electronic device

By using the visual configuration interface to generate data table metadata information in the real-time computing platform, the problem of cumbersome configuration and errors caused by user-defined data tables is solved, the efficiency and accuracy of data table configuration is improved, and business expansion and project expansion are supported.

CN113590593BActive Publication Date: 2024-09-24ZHEJIANG DAHUA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110893557.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-04
Publication Date
2024-09-24
Estimated Expiration
2041-08-04

AI Technical Summary

Technical Problem

In the real-time computing platform, users need to customize the data source table and data target table, which makes the configuration cumbersome and error-prone. Especially when the project scale expands, the workload of manually replacing configuration items is high, which restricts business expansion and project expansion.

Method used

Select the target physical table through the visual configuration interface, obtain the metadata information and configuration information associated with it, and generate the metadata information of the target data table, reducing the information that users need to configure, simplifying the configuration process, and reducing the risk of errors.

Benefits of technology

It improves the efficiency and accuracy of data table configuration, simplifies the configuration process, reduces the risk of errors, and supports business expansion and project expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113590593B
    Figure CN113590593B
Patent Text Reader

Abstract

The present application discloses a method and device for generating data table information, a storage medium and an electronic device, wherein the method comprises: determining a target physical table selected through a visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured for a real-time computing platform; obtaining target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table; generating target metadata information of the target data table based on the metadata information of the target physical table and the target configuration information. Through the present application, the problem that the configuration method of real-time tasks in the related art is relatively cumbersome and prone to errors due to the need for users to customize data tables is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular, to a method and device for generating data table information, a storage medium, and an electronic device. Background Art

[0002] The field of big data has been continuously improving. Existing offline computing has gradually failed to meet the needs of users. Real-time computing or near real-time computing has gained popularity among users. Currently, users can use real-time computing platforms to develop and debug real-time tasks.

[0003] When using the real-time computing platform, users need to write data source tables and data destination tables to specify the source and flow of data, and then write logic code to perform certain business processing on the data from the data source and then write it into the data destination table. The data source table and data destination table need to be associated with the actual physical table. When associating different types of physical tables, the configuration items required for the data source table and the data destination table are different, which makes the configuration cumbersome and error-prone. In addition, due to project changes, the original configuration items need to be manually replaced, which increases the workload when the project scale expands, restricting normal business expansion and project expansion.

[0004] It can be seen that the configuration method of real-time tasks in the related art has the problem that the operation is relatively cumbersome and prone to errors because the user needs to customize the data table (for example, the data source table, the data target table, etc.). Summary of the invention

[0005] The embodiments of the present application provide a method and device for generating data table information, a storage medium and an electronic device, so as to at least solve the problem that the configuration method of real-time tasks in the related art is relatively cumbersome and prone to errors due to the need for users to customize data tables.

[0006] According to one aspect of an embodiment of the present application, a method for generating data table information is provided, including: determining a target physical table selected through a visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured for a real-time computing platform; obtaining target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table; and generating target metadata information of the target data table based on the metadata information of the target physical table and the target configuration information.

[0007] According to another aspect of an embodiment of the present application, a method for generating data table information is also provided, including: in response to a first selection operation performed on a visual configuration interface, sending target indication information to a real-time computing platform, wherein the target indication information is used to indicate the selection of a target physical table of a target type as a physical table corresponding to a target data table in the real-time computing platform; obtaining target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table; and sending the target configuration information to the real-time computing platform so that the real-time computing platform generates target metadata information of the target data table based on the metadata information of the target physical table and the target configuration information.

[0008] According to another aspect of an embodiment of the present application, a device for generating data table information is also provided, including: a determination unit, used to determine a target physical table selected through a visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured for a real-time computing platform; an acquisition unit, used to acquire target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table; and a generation unit, used to generate target metadata information of the target data table based on the metadata information of the target physical table and the target configuration information.

[0009] According to another aspect of the embodiment of the present application, a device for generating data table information is also provided, comprising a first sending unit, configured to send target indication information to a real-time computing platform in response to a first selection operation performed on a visual configuration interface, wherein the target indication information is used to indicate the selection of a target physical table of a target type as a physical table corresponding to a target data table in the real-time computing platform; an acquisition unit, configured to acquire target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table; and a second sending unit, configured to send the target configuration information to the real-time computing platform, so that the real-time computing platform generates target metadata information of the target data table based on the metadata information of the target physical table and the target configuration information.

[0010] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for generating data table information when running.

[0011] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for generating data table information through the computer program.

[0012] In an embodiment of the present application, a method of using metadata information of a physical table hosted in a big data platform to generate metadata information of a data table of the big data platform is adopted, by determining a target physical table selected through a visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured for a real-time computing platform; obtaining target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with the metadata information of the target data table; and generating target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information. Since the metadata information of the data table of the big data platform is generated by using metadata information of a physical table hosted in a big data platform (for example, a real-time computing platform), the information of the data table that the user needs to configure (for example, fields, configuration items, etc.) can be reduced, thereby simplifying the configuration process of the data table and reducing the risk of errors in the configuration of the data table, achieving the technical effect of improving the configuration efficiency and accuracy of the data table, and thereby solving the problem that the configuration method of real-time tasks in related technologies is relatively cumbersome and prone to errors due to the need for users to customize data tables. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

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

[0015] Figure 1 is a schematic diagram of a hardware environment of an optional method for generating data table information according to an embodiment of the present application;

[0016] Figure 2 is a flow chart of an optional method for generating data table information according to an embodiment of the present application;

[0017] Figure 3 It is a schematic diagram of an optional statement concatenation process according to an embodiment of the present application;

[0018] Figure 4is a flowchart of an optional task processing according to an embodiment of the present application;

[0019] Figure 5 is a flowchart of another optional method for generating data table information according to an embodiment of the present application;

[0020] Figure 6 is a schematic diagram of an optional selection of a physical table according to an embodiment of the present application;

[0021] Figure 7 is a schematic diagram of an optional selection of fields in a physical table according to an embodiment of the present application;

[0022] Figure 8 is a schematic diagram of an optional custom data table field according to an embodiment of the present application;

[0023] Fig. 9 is a schematic diagram of an optional configuration custom configuration item according to an embodiment of the present application;

[0024] Fig.10 is a flowchart of another optional method for generating data table information according to an embodiment of the present application;

[0025] Fig.11 is a structural block diagram of an optional device for generating data table information according to an embodiment of the present application;

[0026] Fig.12 is a structural block diagram of another optional device for generating data table information according to an embodiment of the present application;

[0027] Fig.13 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

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

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] First, the technical terms involved in the embodiments of the present application are explained as follows:

[0031] 1. SQL (Structured Query Language), a special programming language;

[0032] 2. Flink (Forward link), a widely used open source real-time computing engine,

[0033] 3. Flink SQL: It is an extension based on Flink, aiming to lower the threshold for developers to use it. SQL language can be used to describe real-time computing data source tables, data output tables, and business logic components.

[0034] 4. Source: It is a special term in Flink SQL. It is an operator in Flink SQL and represents the data source table.

[0035] 5. Sink: It is a special term in Flink SQL. It is an operator in Flink SQL and represents the data destination table.

[0036] 6. Kafka, a distributed, partitioned, multi-replicated, multi-subscriber, distributed logging system coordinated by Zookeeper (an open source distributed application coordination service);

[0037] 7. ElasticSearch: A search server that provides a full-text search engine with distributed multi-user capabilities;

[0038] 8. Hive, a data warehouse tool for data extraction, transformation, and loading;

[0039] 9. JSON, JavaScript Object Notation, is a lightweight data exchange format;

[0040] 10. JDBC, Java Database Connectivity, is an application programming interface in the Java language used to standardize client programs to access the database.

[0041] According to one aspect of an embodiment of the present application, a method for generating data table information is provided. Optionally, in this embodiment, the method for generating data table information can be applied to Figure 1 In the hardware environment shown in FIG. 1 , a terminal 102 and a server 104 (a server of a real-time computing platform) are provided. Figure 1 As shown, the server 104 is connected to the terminal 102 via a network, and can be used to provide services (such as application services, etc.) for the terminal or a client installed on the terminal. A database can be set on the server or independently of the server to provide data storage services for the server 104.

[0042] The network may include but is not limited to at least one of the following: a wired network, a wireless network. The wired network may include but is not limited to at least one of the following: a wide area network, a metropolitan area network, a local area network, and the wireless network may include but is not limited to at least one of the following: WIFI (Wireless Fidelity), Bluetooth. The terminal 102 may not be limited to a PC, a mobile phone, a tablet computer, etc.

[0043] The method for generating data table information in the embodiment of the present application may be executed by the server 104, or by the terminal 102, or by both the server 104 and the terminal 102. The method for generating data table information in the embodiment of the present application may be executed by the terminal 102 or by a client installed thereon.

[0044] Taking the method for generating data table information in this embodiment executed by the server 104 (eg, a server of a real-time computing platform) as an example, Figure 2 is a flow chart of an optional method for generating data table information according to an embodiment of the present application, such as Figure 2 As shown, the process of the method may include the following steps:

[0045] Step S202, determining a target physical table selected through the visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured on the real-time computing platform.

[0046] The method for generating data table information in this embodiment can be applied to the scenario of configuring data tables of a big data platform, and the big data platform can be a real-time computing platform based on Flink SQL or other architectures. The above data table can be a data source table (for example, Source table), a data target table (for example, Sink table), etc. In this embodiment, the configuration of data tables (for example, Source, Sink) in FlinkSQL is used as an example for explanation.

[0047] Flink is a widely used real-time computing engine. In order to lower the threshold for developers, Flink supports SQL development. In FlinkSQL job editing, operation and big data platform (a real-time computing big data platform), Source and Sink are the internal expressions of FlinkSQL, which actually correspond to physical tables on the big data platform, such as Hive Table, Kafka Topic, ElasticSearch Index and other physically existing tables (i.e., physical tables). In order to use data tables in FlinkSQL, you need to configure the correspondence between FlinkSQL data tables and physical tables.

[0048] In order to facilitate the configuration of the data table, in this embodiment, a solution for generating Source and Sink statements (for example, generating metadata information of the data table) based on the big data platform and combined with the visual configuration method of Flink SQL real-time computing can be provided. Relevant personnel can use the visual configuration interface on the client corresponding to Flink SQL to configure the data table. Through the visual configuration interface, relevant personnel can select the corresponding physical table, that is, the target physical table, for the target data table to be configured on the real-time computing platform. The visual configuration interface can be a configuration interface of the first client running on the terminal device of the relevant personnel, and the configuration interface can configure the data table in a visual way; the type of the target physical table is the target type, for example, Kafka, ElasticSearch, Hive, etc.

[0049] The real-time computing platform can determine the target physical table selected through the above-mentioned visual configuration interface. For example, the real-time computing platform can receive indication information from the first client for indicating that the physical table selected as the target data table to be configured by the real-time computing platform is the target physical table. The timing for determining the target physical table can be after the relevant personnel select the target physical table on the visual configuration interface, or after the relevant personnel complete all configurations, which is not limited in this embodiment.

[0050] Step S204: acquiring target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table.

[0051] Relevant personnel can configure other configuration information, such as target configuration information, in addition to configuration information corresponding to metadata information of the target physical table through the visual configuration interface. The target configuration information here is configuration information associated with metadata information of the target data table, such as configuration information associated with fields in the target data table, configuration information associated with configuration items in the target data table, and other types of configuration information, which are not limited in this embodiment.

[0052] The real-time computing platform can obtain the above-mentioned target configuration information configured for the target data table through the above-mentioned visual configuration interface. Based on the above-mentioned target configuration information. The target configuration information can include one or more, and can include but is not limited to at least one of the following: configuration information associated with a field in the target data table, configuration information associated with a configuration item in the target data table.

[0053] Step S206: Generate target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0054] The metadata information of the data table is hosted in the big data platform, such as table type, field type and name, authentication information, table address, etc. In this embodiment, by integrating the existing physical table metadata information of the big data platform and combining the syntax characteristics of FlinkSQL, SQL statements for Source and Sink are automatically generated.

[0055] The target configuration information may include configuration information for indicating at least one of the following: metadata information selected from metadata information of the target physical table, and customized metadata information, such as fields, configuration items, etc. When generating metadata information of the target data table, the real-time computing platform may generate target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0056] The configuration process of the target data table can be executed separately or in the task node or process node interface, that is, the target data table is associated with the task node or process node. The target metadata information obtained can be used to create a target data table, which can be saved in the real-time computing platform or in other devices (for example, the user's server), which is not limited in this embodiment.

[0057] Through the above steps, the target physical table selected through the visual configuration interface is determined, wherein the target physical table is a physical table of the target type selected for the target data table to be configured for the real-time computing platform; the target configuration information configured for the target data table through the visual configuration interface is obtained, wherein the target configuration information is configuration information associated with the metadata information of the target data table; according to the metadata information of the target physical table and the target configuration information, the target metadata information of the target data table is generated, which solves the problem that the configuration method of real-time tasks in related technologies is relatively cumbersome and prone to errors due to the need for users to customize data tables, thereby improving the configuration efficiency and accuracy of data tables.

[0058] In an exemplary embodiment, generating target metadata information of a target data table according to metadata information of a target physical table and target configuration information includes:

[0059] S11, determining a target field and a target configuration item according to metadata information and target configuration information of a target physical table, wherein the target field is a field included in a target data table, the target configuration item is a configuration item of the target data table, and the target configuration item includes a first configuration item corresponding to the target physical table;

[0060] S12, generating target metadata information of the target data table according to the target fields and target configuration items.

[0061] When generating metadata information of the target data table, the real-time computing platform may determine the fields (i.e., target fields) contained in the target data table and the configuration items (i.e., target configuration items) of the target data table according to the metadata information of the target physical table and the target configuration information. The target configuration items may include all or part of the configuration items (i.e., first configuration items) contained in the target physical table determined by the metadata information of the target physical table. Optionally, the target field may include all or part of the fields contained in the target physical table determined by the metadata information of the target physical table.

[0062] According to the target fields and target configuration items, the real-time computing platform can generate metadata information of the target data table, thereby obtaining target metadata information, and the target metadata information can include but is not limited to: metadata information corresponding to the target fields, metadata information corresponding to the target configuration items. For example, the target metadata information may include table type, field type and name, authentication information, table address, etc.

[0063] Through this embodiment, based on the metadata information of the physical table and the target configuration information, the fields and configuration items included in the data table are determined, and then the metadata information of the data table is generated, which can improve the accuracy of metadata generation.

[0064] In an exemplary embodiment, after determining the target physical table selected through the visual configuration interface, the method further includes:

[0065] S21, sending the fields contained in the target physical table to the visualization configuration interface for display, wherein the first configuration information in the target configuration information is used to indicate the first field selected for the target data table from the fields contained in the target physical table through the visualization configuration interface, and the target fields include the first field.

[0066] The real-time computing platform can provide the relevant personnel with a function of selecting metadata information of the target physical table. After determining the target physical table, the real-time computing platform can send the fields contained in the target physical table to the visualization interface for display, for example, sending the fields contained in the target physical table to the first client so that the first client can display the fields contained in the target physical table on its visualization configuration interface.

[0067] The first client can interact with the relevant personnel through a visual interface to determine the field selected by the relevant personnel for the target data table from the fields included in the target physical table, that is, the first field, and indicate the first field to the real-time computing platform through the first configuration information. The real-time computing platform can receive the first configuration information to determine the first field selected from the fields included in the target physical table for the target data table, and the above-mentioned target field may include the first field.

[0068] Through this embodiment, the fields in the physical table corresponding to the data table are selected as the fields in the data table through the visual configuration interface, which can improve the flexibility and convenience of configuring the field information in the data table.

[0069] In an exemplary embodiment, obtaining target configuration information configured for a target data table through a visual configuration interface includes:

[0070] S31, obtaining second configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information includes the second configuration information, the second configuration information is used to indicate a second field, the second field is a custom field, and the target field includes the second field.

[0071] The real-time computing platform can provide the relevant personnel with a custom function of including fields in the data table. The relevant personnel can configure the custom field through the visual configuration interface, and the custom field is the second field. The first client can indicate the custom field configured through the visual configuration interface to the real-time computing platform through the second configuration information. The real-time computing platform can receive the second configuration information, thereby determining the second field that is custom configured for the target data table, and the above-mentioned target field can include the second field.

[0072] Optionally, the second field is a custom field, a field generated by a function. For example, a field obtained by type conversion (data date converted to a string date), data fusion or other methods from one or more fields contained in the target physical table, additional parameters (for example, generating the current time). In addition to the second field, the target field may also include all or part of the fields contained in the target physical table, for example, a field selected from the fields contained in the target physical table for the target data table, that is, the aforementioned first field. The method for determining the first field is similar to the aforementioned method, and will not be described in detail in this embodiment.

[0073] Through this embodiment, the custom fields are configured for the data table through the visual configuration interface, which can improve the flexibility and convenience of configuring the field information in the data table.

[0074] In an exemplary embodiment, obtaining target configuration information configured for a target data table through a visual configuration interface includes:

[0075] S41, obtaining third configuration information configured for the target data table through the visual configuration interface, wherein the third configuration information is used to indicate the second configuration item configured for the target data table through the visual configuration interface, and the target configuration item also includes the second configuration item.

[0076] The real-time computing platform can provide the relevant personnel with a custom function of the configuration items of the data table. The relevant personnel can configure the custom configuration items through the visual configuration interface, and the custom configuration items are the second configuration items. The first client can indicate the custom configuration items configured through the visual configuration interface to the real-time computing platform through the third configuration information. The real-time computing platform can receive the third configuration information, thereby determining the custom configuration items for the target data table custom configuration, and the above-mentioned target configuration items may include the second configuration items.

[0077] Optionally, the second configuration item is a custom configuration item, which can be used to define the authentication method, read and write strategy, etc. of the physical table. For example, the custom configuration item can specify the method of reading and writing data from the physical table, specify the driver of the physical table, authentication information (for example, user name, password, etc.), data reading cycle, the number of rows of data read at one time, etc.

[0078] According to this embodiment, the custom configuration items are configured for the data table through the visual configuration interface, so that the flexibility and convenience of configuring the configuration items of the data table can be improved.

[0079] In an exemplary embodiment, after generating target metadata information of the target data table according to the target fields and target configuration items, the method further includes:

[0080] S51, performing statement splicing according to the target metadata information to obtain a target creation statement, wherein the target creation statement is used to create a target data table in the real-time computing platform;

[0081] S52: Send the target creation statement to the first client, so that the first client displays the target creation statement on the visual configuration interface, wherein the first client is the client to which the visual configuration interface belongs.

[0082] After obtaining the target metadata information, the real-time computing platform may not feed back any information to the first client. Optionally, in this embodiment, in order to facilitate relevant personnel to view the configuration results of the data table, the real-time computing platform may re-integrate the target metadata information and splice it into a target creation statement, which can be used to create a target data table in the real-time computing platform.

[0083] For example, the big data platform can obtain the table name, table type, field information, instance where the table is located, and other information based on the physical table selected by the user, and use the above information to generate the Source and Sink definition statements of Flink SQL (that is, the data table creation statement).

[0084] After obtaining the target creation statement, the real-time computing platform can send the target creation statement to the first client. After receiving the target creation statement, the first client can display the target creation statement on the visual configuration interface to facilitate relevant personnel to view the creation statement of the configured target data table. In addition, relevant personnel can also adjust the target data table configuration information through the visual configuration interface, thereby updating the metadata information of the target data table, etc. The update process is similar to the above and will not be repeated here.

[0085] Through this embodiment, by using the metadata information of the data table to generate a creation statement for the data table and sending it to the client for display, the convenience of information acquisition can be improved and the user experience can be improved.

[0086] In an exemplary embodiment, performing statement concatenation according to target metadata information to obtain a target creation statement includes:

[0087] S61, generating a target table name of a target data table according to the table name in the target metadata information;

[0088] S62, mapping a first field type of a first field in the target metadata information to a second field type corresponding to the real-time computing platform, to obtain a field to be spliced ​​of the second field type, wherein the first field is a field in the target field that belongs to the target physical table;

[0089] S63, when it is determined according to the target metadata information that the target field also includes a second field, using the second field to update the field to be spliced ​​to obtain an updated field to be spliced, wherein the second field is a custom field;

[0090] S64, concatenating statements according to the fields to be concatenated to obtain an initial creation statement;

[0091] S65, when it is determined according to the target metadata information that there is a calculated column in the target data table, the calculated column field corresponding to the calculated column is spliced ​​into the initial creation statement to obtain an updated initial creation statement;

[0092] S66, when it is determined according to the target metadata information that the target data table is configured with a target watermark, a watermark expression corresponding to the target watermark is concatenated into the initial creation statement to obtain an updated initial creation statement;

[0093] S67, adding the target configuration item indicated by the target metadata information to the initial creation statement to obtain a target creation statement.

[0094] In order to generate a creation statement for a target data table, the real-time computing platform may first generate a table name of the target data table, that is, a target table name, according to the table name in the target metadata information. For example, the table name may be generated according to the user-defined Source and Sink table names.

[0095] The target metadata information may include a first field, which is a field belonging to the target physical table, for example, a field selected for the target data table from the fields contained in the target physical table. The manner of selecting the first field is similar to that in the aforementioned embodiment and is not described in detail here. The real-time computing platform may map the first field type of the first field in the target metadata information to a second field type corresponding to the data table in the real-time computing platform, thereby obtaining a field to be spliced ​​of the second field type.

[0096] For example, the types of physical tables selected by the user include Kafka, ElasticSearch, and Hive. These three types of data have different field types in the real-time computing platform. When generating the Source and Sink statements of Flink SQL, it is necessary to map the table field types managed in the computing platform to the types in Flink SQL. The mapping relationship between the data source type, physical table type, and FlinkSQL type can be shown in Table 1.

[0097] Table 1

[0098]

[0099] If it is determined according to the target metadata information that the target field also includes a second field, that is, a custom field (the configuration method of the custom field can be similar to that in the above embodiment, and will not be repeated here), the real-time computing platform can use the second field to update the field to be spliced ​​to obtain an updated field to be spliced. The real-time computing platform can use the field to be spliced ​​to perform statement splicing to obtain an initial creation statement.

[0100] The real-time computing platform can also determine whether there is a calculated column in the target data table based on the target metadata information. If so, the calculated column field corresponding to the calculated column can be spliced ​​into the initial creation statement to obtain an updated initial creation statement.

[0101] The real-time computing platform can also determine that the target data table is configured with a target watermark (ie, watermark) according to the target metadata information. If it exists, the watermark expression corresponding to the target watermark can be spliced ​​into the initial creation statement to obtain an updated initial creation statement.

[0102] The real-time computing platform can also determine the target configuration items indicated by the target metadata information (which may include first configuration items, second configuration items, etc.), and add the target configuration items to the initial creation statement. For example, by adding the target configuration items to the initial creation statement through the with parameter, a target creation statement is obtained.

[0103] For example, in Flink SQL, different types of physical tables correspond to different configuration items. Therefore, different mapping relationships of configuration items can be generated according to the types of different Source and Sink tables, as shown in Table 2.

[0104] Table 2

[0105]

[0106] For example, by integrating the metadata information of the big data platform table, such as the table field name, field type, instance name, instance address, instance verification information, etc., combined with Flink SQL syntax, the Source and Sink statement functions can be automatically generated. The process of generating FlinkSQL Source and Sink definition statements based on the table name, table type, field information, and instance of the physical table selected by the user can be as follows: Figure 3 As shown, the process may include the following steps:

[0107] Step S302, generating a table name according to the user-defined Source and Sink table names;

[0108] Step S304, converting the type of the column selected by the user and concatenating the statements;

[0109] Step S306, determine whether there is a calculated column, if yes, execute step S308, otherwise execute step S310;

[0110] Step S308, concatenate calculated column fields;

[0111] Step S310, determine whether a watermark is configured, if yes, execute step S312, otherwise execute step S314;

[0112] Step S312, generating and concatenating watermark expressions;

[0113] Step S314, determine the data source type of Source and Sink, if it is Hive, execute step S316, if it is Kafka, execute step S318, if it is ElasticSearch, execute step S320;

[0114] Step S316, adding Hive related configuration items;

[0115] Step S318, adding Kafka-related configuration items;

[0116] Step S320, adding ElasticSearch related configuration items;

[0117] Step S322, concatenate user-defined fields.

[0118] Through this embodiment, by performing field type conversion and performing creation statement splicing according to a predetermined splicing rule, the accuracy and efficiency of generating data table creation statements can be improved.

[0119] In an exemplary embodiment, after generating target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information, the method further includes:

[0120] S71, persist the target metadata information into the database of the real-time computing platform.

[0121] In this embodiment, after generating the target metadata information, the real-time computing platform can persist the target metadata information in the database of the real-time computing platform. For example, after obtaining the Source and Sink information from the computing platform metadata management center, it can be saved in the Flink SQL Source and Sink generation module to facilitate the subsequent generation of Source and Sink creation statements and persist them in the MySQL database. The main fields of persistence can be shown in Table 3. If the business associates Source and Sink with task nodes and process nodes, it can also be expanded on this structure.

[0122] Table 3

[0123]

[0124] If the user manually configures the data table, the original configuration items need to be manually replaced when the project is changed, which will increase the workload when the project scale is expanded, restricting the normal business expansion and project expansion. In order to maintain and store the metadata information of Source and Sink in the big data platform, when the user switches projects and instances, there is no need to care about the underlying instance information, such as the IP (Internet Protocol), port, user password and other configuration information of the database table.

[0125] Through this embodiment, by persisting the metadata information of the data table in the database of the real-time computing platform and maintaining and storing the metadata information of the data table in the big data platform, the workload required for project replacement can be reduced and the ability of business expansion and project expansion can be improved.

[0126] In an exemplary embodiment, after generating target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information, the method further includes:

[0127] S81, receiving a service submission instruction sent by a second client, wherein the service submission instruction is a submission instruction of a target real-time service associated with a target data table;

[0128] S82, in response to the business submission instruction, performing statement splicing according to the target metadata information to obtain a target creation statement, wherein the target creation statement is used to create a target data table in the real-time computing platform;

[0129] S83, adding a target creation statement before the business logic statement of the target real-time business to obtain an updated target real-time task;

[0130] S84, submitting the updated target real-time task to the resource manager so that the resource manager executes the target real-time task.

[0131] If a command from a client to submit a real-time task is received, the real-time computing platform can re-integrate the metadata information of the data table involved in the real-time task and splice it into a creation statement for the data table. For the target data table, the real-time computing platform can receive a business submission command sent by the second client, where the business submission command is a submission command for the target real-time business associated with the target data table. In response to the business submission command, the real-time computing platform can splice statements according to the target metadata information to obtain a target creation statement.

[0132] The target creation statement is used to create a target data table in the real-time computing platform, and its splicing process can be the same or similar to the splicing process of the target creation statement described in the above embodiment. No further description is given here. The second client and the first client can be the same client or different clients. This is not limited in this embodiment.

[0133] The real-time computing platform can add the target creation statement before the business logic statement of the target real-time business to obtain the updated target real-time task, so as to complete the creation of the data table before the business logic is executed, avoiding the task execution failure caused by the use of the data table that has not been created. After obtaining the updated target real-time task, the real-time computing platform can submit it to the resource manager. The resource manager receives the updated target real-time task and can execute the updated target real-time task to obtain the execution result of the target real-time task.

[0134] For example, the big data platform can host the automatically generated relationship between the Source and Sink tables in Flink SQL. The automatically generated Source and Sink operator statements can be used together with the original user-defined SQL statements without affecting the user's use of the native Flink SQL functions. The generation logic of the Source and Sink operators is relatively independent of the Flink SQL component, does not invade its code and functions, and exists as an independent function of the big data platform. When the user submits the code, the big data platform will automatically add the Source and Sink to the submitted SQL statement without the user's awareness.

[0135] When submitting a task, you can re-integrate the metadata information of the persisted Source and Sink tables, splice them into Flink SQL statements, and merge them with user-defined business logic statements as Flink SQL tasks and submit them to Yarn (an example of a resource manager). The processing flow after task submission can be as follows: Figure 4 As shown, the process may include:

[0136] Step S402, obtaining Source and Sink information from the database;

[0137] Step S404, concatenating Flink SQL statements;

[0138] Step S406, inserting above the user-defined business logic statement;

[0139] Step S408: Submit the task to Yarn as a Flink SQL task.

[0140] Through this embodiment, the big data platform hosts the automatically generated relationships of the data tables, and the automatically generated data table creation statements (for example, Source and Sink operator statements) can be used together with the original business logic statements custom-written by the user, without affecting the user's use of the functions provided by the native real-time computing platform, thereby improving the accuracy and flexibility of business logic execution.

[0141] According to another aspect of the embodiment of the present application, a method for generating data table information is also provided. Optionally, in this embodiment, the above method for generating data table information can be applied to Figure 1 The hardware environment shown is composed of the terminal 102 and the server 104. It has been described and will not be repeated here.

[0142] Taking the method for generating data table information in this embodiment executed by the terminal 102 as an example, Figure 5 is a flow chart of another optional method for generating data table information according to an embodiment of the present application, such as Figure 5 As shown, the process of the method may include the following steps:

[0143] Step S502, in response to a first selection operation performed on the visualization configuration interface, target indication information is sent to the real-time computing platform, wherein the target indication information is used to indicate the selection of a target physical table of a target type as a physical table corresponding to a target data table in the real-time computing platform.

[0144] Similar to the above-mentioned embodiment, the method for generating data table information in this embodiment can also be applied to the scenario of configuring the data table of the big data platform. The relevant personnel can trigger the visual configuration interface by operating the first client running on their terminal device. For example, under the target business node, by clicking the configuration button (or create button) of the data table, you can enter the visual configuration interface of the target data table.

[0145] The relevant personnel may perform a first selection operation on the visual configuration interface, and the first selection operation is used to select a target physical table of the target type as a physical table corresponding to the target data table. In response to the first selection operation, the first client may send target indication information to the real-time computing platform to indicate the selection of the target physical table as the physical table corresponding to the target data table in the real-time computing platform.

[0146] For example, Figure 6 As shown, the user selects a physical table, that is, the user selects the physical table corresponding to the Source and Sink to obtain detailed information of the table.

[0147] Step S504: acquiring target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table.

[0148] In addition to selecting the target physical table as the physical table corresponding to the target data table, the relevant personnel can also configure the configuration information associated with the metadata information of the target data table by operating the visual configuration interface, that is, the target configuration information. For the first client, the first client can detect the configuration operation performed on the visual configuration interface, thereby obtaining the above-mentioned target configuration information. The meaning of the target configuration information is similar to that in the aforementioned embodiment, and will not be repeated here.

[0149] Step S506: Send the target configuration information to the real-time computing platform, so that the real-time computing platform generates target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0150] The first client may send the target configuration information to the real-time computing platform. Optionally, the target indication information and the target configuration information may be sent simultaneously, for example, through the same message, or may not be sent simultaneously, for example, the target indication information is sent first, and then the target configuration information is sent, which is not limited in this embodiment.

[0151] The implementation computing platform can generate target metadata information corresponding to the target data table based on the metadata information of the target physical table and the target configuration information. The method of generating the target metadata information can refer to the above embodiment, which will not be described in detail in this embodiment.

[0152] Through the above steps, in response to the first selection operation performed on the visual configuration interface, target indication information is sent to the real-time computing platform, wherein the target indication information is used to indicate the selection of a target physical table of the target type as the physical table corresponding to the target data table in the real-time computing platform; target configuration information configured for the target data table through the visual configuration interface is obtained, wherein the target configuration information is configuration information associated with metadata information of the target data table; the target configuration information is sent to the real-time computing platform, so that the real-time computing platform generates target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information, thereby solving the problem that the configuration method of real-time tasks in related technologies is relatively cumbersome and prone to errors due to the need for users to customize data tables, thereby improving the configuration efficiency and accuracy of data tables.

[0153] In an exemplary embodiment, after sending the target indication information to the real-time computing platform, the method further includes:

[0154] S91, receiving fields included in the target physical table sent by the real-time computing platform;

[0155] S92, displaying the fields included in the target physical table on the visual configuration interface.

[0156] The real-time computing platform can send the fields included in the target physical table to the first client using a method similar to that in the above embodiment. Correspondingly, the first client can receive the fields included in the above target physical table and display the fields included in the target physical table on the visual configuration interface.

[0157] Correspondingly, in this embodiment, obtaining target configuration information configured for the target data table through the visual configuration interface includes:

[0158] S93, obtaining a first field selected from fields included in the target physical table through a visual configuration interface to obtain first configuration information, wherein the first configuration information is used to indicate the first field, and the target configuration information includes the first configuration information.

[0159] The relevant personnel can select the first field for the target data table by operating the fields contained in the target physical table displayed in the visual configuration interface, thereby triggering the generation of the first configuration information. The meaning of the first field and the first configuration information in this embodiment is similar to that in the above embodiment, and will not be repeated here.

[0160] For example, users can configure structural information such as Figure 7 As shown, select fields from the physical table as the Source and Sink fields.

[0161] Through this embodiment, the fields in the physical table corresponding to the data table are selected as the fields in the data table through the visual configuration interface, which can improve the flexibility and convenience of configuring the field information in the data table.

[0162] In an exemplary embodiment, obtaining target configuration information configured for a target data table through a visual configuration interface includes:

[0163] S101, obtaining a second field configured for a target data table through a visual configuration interface to obtain second configuration information, wherein the second field is a custom field, the second configuration information is used to indicate the second field, and the target configuration information includes the second configuration information.

[0164] The relevant personnel can configure the custom field, that is, the second field, for the target data table by operating the visual configuration interface, thereby triggering the generation of the second configuration information. The meaning of the second field and the second configuration information in this embodiment is similar to that in the above embodiment, and will not be repeated here.

[0165] For example, users can configure custom fields such as Figure 8As shown in the figure, one side is the custom field name and the other side is the expression of the custom field.

[0166] Through this embodiment, the custom fields are configured for the data table through the visual configuration interface, which can improve the flexibility and convenience of configuring the field information in the data table.

[0167] In an exemplary embodiment, configuring the configuration information associated with the metadata information of the target data table through the visual configuration interface, and obtaining the target configuration information includes:

[0168] S111, configuring a custom configuration item for a target data table through a visual configuration interface to obtain third configuration information, wherein the third configuration information is used to indicate the custom configuration item, and the target configuration information includes the third configuration information.

[0169] The relevant personnel can configure the custom configuration items, i.e., the second configuration items, for the target data table by operating the visual configuration interface, thereby triggering the generation of the third configuration information. The meanings of the second configuration items and the third configuration information in this embodiment are similar to those in the above embodiment, and are not described in detail here.

[0170] For example, users can customize the configuration items of Source and Sink. In addition to the automatically generated configuration items about physical table metadata, users can customize the configuration items of other Sources and Sinks, which will eventually be generated together with the configuration items related to physical table metadata.

[0171] According to this embodiment, the custom configuration items are configured for the data table through the visual configuration interface, so that the flexibility and convenience of configuring the configuration items of the data table can be improved.

[0172] In an exemplary embodiment, after sending the target configuration information to the real-time computing platform, the method further includes:

[0173] S121, receiving a target creation statement sent by the real-time computing platform, wherein the target creation statement is a creation statement obtained by concatenating statements according to target metadata information, and the target creation statement is used to create a target data table in the real-time computing platform;

[0174] S122, displaying the target creation statement through a visual configuration interface.

[0175] After sending the target configuration information to the real-time computing platform, the real-time computing platform can generate and store target metadata information of the target data table in the same or similar manner as in the embodiment, and can also use the target metadata information to perform statement splicing to obtain a target creation statement for creating the target data table in the real-time computing platform, and send the target creation statement to the first client.

[0176] The first client can receive the target creation statement and display the target creation statement through the visual configuration interface. Relevant personnel can view the target creation statement and adjust the target data table configuration information through the visual configuration interface, which is similar to the above and will not be repeated here.

[0177] Through this embodiment, by using the metadata information of the data table to generate a creation statement for the data table and sending it to the client for display, the convenience of information acquisition can be improved and the user experience can be improved.

[0178] The following is an explanation of the method for generating data table information in the embodiment of the present application in conjunction with an optional example. This optional example provides a FLINK SOURCE / SINK visual configuration solution, combined with the visual configuration method of Flink SQL real-time computing, and the server-side program automatically generates corresponding Source and Sink statements based on the content selected by the user and the metadata management of the big data platform, which can be applied to technical fields such as big data, real-time computing, and visual configuration, and applied to big data platforms (i.e., big data real-time computing platforms, that is, the aforementioned real-time computing platforms).

[0179] In FlinkSQL job editing, operation and big data platform, when using FlinkSQL, users need to write FlinkSQL Source and Sink to specify the source and flow of data, and then write logic code to perform certain business processing on the data from the data source and then write it into the Sink table. The configuration items of different types of Source and Sink are different, and the configuration is cumbersome and prone to errors. In this optional embodiment, the basic SQL visual configuration function is improved to assist users (i.e., relevant personnel) to improve development efficiency when using SQL to implement business logic.

[0180] Combination Fig.10 As shown, the process of the method for generating data table information in this optional example may include the following steps:

[0181] Step S1002: User visualization configuration.

[0182] User visualization configuration may include the following steps: user selects a physical table; user selects a field (a field in the physical table); user configures a custom field; user configures a custom configuration item.

[0183] In steps S1004 to S1006, the server generates Source and Sink information and persists the Source and Sink information.

[0184] The server can generate Source and Sink information. The process of generating and persisting Source and Sink (i.e., water for acne scars) information may include: obtaining metadata information of a table (physical table); generating metadata information of Source and Sink, and generating SQL statements based on the metadata information of Source and Sink; in addition, the metadata information of Source and Sink may be persisted.

[0185] Step S1008: When the task is submitted, SQL is automatically generated and added to the context of Flink SQL.

[0186] Through this optional example, based on Flink SQL and the big data platform, users can interact in a visual way to select the physical table type of the Source or Sink table (for example, Kafka, ElasticSearch, Hive, or other data source tables and data output tables implemented by the Flink SQL connector); the Flink SQL Source and Sink statements generated by users in a visual way can be submitted to the Flink cluster together with the Flink SQL statements written by users themselves, and can be run in the form of local, Yarn, K8S, Mesos and other operating platforms. Combined with the metadata management of the big data platform, the function of visually configuring the Source and Sink operators is realized.

[0187] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0188] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM (Read-Only Memory) / RAM (Random Access Memory), a disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0189] According to another aspect of an embodiment of the present application, a device for generating data table information for implementing the above-mentioned method for generating data table information is also provided. Fig.11 is a structural block diagram of an optional device for generating data table information according to an embodiment of the present application, such as Fig.11 As shown, the device may include:

[0190] A determination unit 1102 is used to determine a target physical table selected through the visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured on the real-time computing platform;

[0191] The acquiring unit 1104 is connected to the determining unit 1102 and is used to acquire target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table;

[0192] The generating unit 1106 is connected to the acquiring unit 1104 and is used to generate target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0193] It should be noted that the determining unit 1102 in this embodiment can be used to execute the above step S202, the acquiring unit 1104 in this embodiment can be used to execute the above step S204, and the generating unit 1106 in this embodiment can be used to execute the above step S206.

[0194] Through the above modules, the target physical table selected through the visual configuration interface is determined, wherein the target physical table is a physical table of the target type selected for the target data table to be configured for the real-time computing platform; the target configuration information configured for the target data table through the visual configuration interface is obtained, wherein the target configuration information is configuration information associated with the metadata information of the target data table; the target metadata information of the target data table is generated according to the metadata information of the target physical table and the target configuration information, thereby solving the problem that the configuration method of real-time tasks in related technologies is relatively cumbersome and prone to errors due to the need for users to customize data tables, thereby improving the configuration efficiency and accuracy of data tables.

[0195] In an exemplary embodiment, the generating unit 1106 includes:

[0196] A first determination module is used to determine a target field and a target configuration item according to metadata information and target configuration information of a target physical table, wherein the target field is a field included in a target data table, the target configuration item is a configuration item of the target data table, and the target configuration item includes a first configuration item corresponding to the target physical table;

[0197] The first generating module is used to generate target metadata information of a target data table according to target fields and target configuration items.

[0198] In an exemplary embodiment, the above device further comprises:

[0199] A first sending unit is used to send the fields contained in the target physical table to the visualization configuration interface for display after determining the target physical table selected through the visualization configuration interface, wherein the first configuration information in the target configuration information is used to indicate the first field selected for the target data table from the fields contained in the target physical table through the visualization configuration interface, and the target fields include the first field.

[0200] In an exemplary embodiment, the acquiring unit 1104 includes:

[0201] The first acquisition module is used to acquire second configuration information configured for the target data table through a visual configuration interface, wherein the target configuration information includes the second configuration information, the second configuration information is used to indicate a second field, the second field is a custom field, and the target field includes the second field.

[0202] In an exemplary embodiment, the acquiring unit 1104 includes:

[0203] The second acquisition module is used to acquire third configuration information configured for the target data table through the visual configuration interface, wherein the third configuration information is used to indicate the second configuration item configured for the target data table through the visual configuration interface, and the target configuration item also includes the second configuration item.

[0204] In an exemplary embodiment, the above device further comprises:

[0205] A first splicing unit is used for, after generating target metadata information of a target data table according to target fields and target configuration items, performing statement splicing according to the target metadata information to obtain a target creation statement, wherein the target creation statement is used to create a target data table in a real-time computing platform;

[0206] The second sending unit is used to send the target creation statement to the first client, so that the first client displays the target creation statement on the visual configuration interface, wherein the first client is the client to which the visual configuration interface belongs.

[0207] In an exemplary embodiment, the first splicing unit includes:

[0208] A generation module, used for generating a target table name of a target data table according to the table name in the target metadata information;

[0209] A mapping module, used to map a first field type of a first field in the target metadata information to a second field type corresponding to the real-time computing platform, to obtain a field to be spliced ​​of the second field type, wherein the first field is a field in the target field that belongs to the target physical table;

[0210] An updating module, configured to update the field to be spliced ​​using the second field to obtain an updated field to be spliced ​​when it is determined according to the target metadata information that the target field also includes a second field, wherein the second field is a custom field;

[0211] The first splicing module is used to splice statements according to the fields to be spliced ​​to obtain an initial creation statement;

[0212] A second splicing module is used to splice the calculated column field corresponding to the calculated column into the initial creation statement to obtain an updated initial creation statement when it is determined according to the target metadata information that there is a calculated column in the target data table;

[0213] A third splicing module is used to splice the watermark expression corresponding to the target watermark into the initial creation statement to obtain an updated initial creation statement when it is determined according to the target metadata information that the target data table is configured with the target watermark;

[0214] The adding module is used to add the target configuration items indicated by the target metadata information to the initial creation statement to obtain the target creation statement.

[0215] In an exemplary embodiment, the above device further comprises:

[0216] A receiving unit, configured to receive a service submission instruction sent by a second client after generating target metadata information of a target data table according to metadata information of a target physical table and target configuration information, wherein the service submission instruction is a submission instruction of a target real-time service associated with the target data table;

[0217] A second splicing unit is used to respond to the business submission instruction and perform statement splicing according to the target metadata information to obtain a target creation statement, wherein the target creation statement is used to create a target data table in the real-time computing platform;

[0218] An adding unit, used for adding a target creation statement before a business logic statement of a target real-time business, to obtain an updated target real-time task;

[0219] The submitting unit is used to submit the updated target real-time task to the resource manager so that the resource manager executes the target real-time task.

[0220] In an exemplary embodiment, the above device further comprises:

[0221] The persistence unit is used to persist the target metadata information into the database of the real-time computing platform after generating the target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0222] According to another aspect of an embodiment of the present application, a device for generating data table information for implementing the above-mentioned method for generating data table information is also provided. Fig.12 is a structural block diagram of another optional device for generating data table information according to an embodiment of the present application, such as Fig.12 As shown, the device may include:

[0223] A first sending unit 1202 is used to send target indication information to the real-time computing platform in response to a first selection operation performed on the visual configuration interface, wherein the target indication information is used to indicate the selection of a target physical table of a target type as a physical table corresponding to a target data table in the real-time computing platform;

[0224] The acquisition unit 1204 is connected to the first sending unit 1202 and is used to acquire the target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is the configuration information associated with the metadata information of the target data table

[0225] The second sending unit 1206 is connected to the acquiring unit 1204 and is used to send the target configuration information to the real-time computing platform, so that the real-time computing platform generates target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0226] It should be noted that the first sending unit 1202 in this embodiment can be used to execute the above step S502, the acquiring unit 1204 in this embodiment can be used to execute the above step S504, and the second sending unit 1202 in this embodiment can be used to execute the above step S506.

[0227] Through the above-mentioned module, in response to the first selection operation performed on the visual configuration interface, target indication information is sent to the real-time computing platform, wherein the target indication information is used to indicate the selection of a target physical table of the target type as the physical table corresponding to the target data table in the real-time computing platform; target configuration information configured for the target data table through the visual configuration interface is obtained, wherein the target configuration information is configuration information associated with metadata information of the target data table; the target configuration information is sent to the real-time computing platform, so that the real-time computing platform generates target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information, thereby solving the problem that the configuration method of real-time tasks in related technologies is relatively cumbersome and prone to errors due to the need for users to customize data tables, thereby improving the configuration efficiency and accuracy of data tables.

[0228] In an exemplary embodiment, the above device further includes: a first receiving unit, a first display unit, and the acquisition unit includes a first acquisition module, wherein:

[0229] A first receiving unit, configured to receive fields included in a target physical table sent by the real-time computing platform after sending the target indication information to the real-time computing platform;

[0230] A first display unit, used to display the fields included in the target physical table on a visual configuration interface;

[0231] The first acquisition module is used to acquire a first field selected from fields included in a target physical table through a visual configuration interface to obtain first configuration information, wherein the first configuration information is used to indicate the first field, and the target configuration information includes the first configuration information.

[0232] In an exemplary embodiment, the acquiring unit includes:

[0233] The second acquisition module is used to acquire the second field configured for the target data table through the visual configuration interface to obtain second configuration information, wherein the second field is a custom field, the second configuration information is used to indicate the second field, and the target configuration information includes the second configuration information.

[0234] In an exemplary embodiment, the acquiring unit includes:

[0235] The second acquisition module is used to acquire the custom configuration items configured for the target data table through the visual configuration interface to obtain third configuration information, wherein the third configuration information is used to indicate the custom configuration items, and the target configuration information includes the third configuration information.

[0236] In an exemplary embodiment, the above device further comprises:

[0237] A second receiving unit is used to receive a target creation statement sent by the real-time computing platform after sending the target configuration information to the real-time computing platform, wherein the target creation statement is a creation statement obtained by concatenating statements according to the target metadata information, and the target creation statement is used to create a target data table in the real-time computing platform;

[0238] The second display unit is used to display the target creation statement through a visual configuration interface.

[0239] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments. It should be noted that the above modules as part of the device can be run in Figure 1 In the hardware environment shown, it can be implemented by software or by hardware, wherein the hardware environment includes a network environment.

[0240] According to another aspect of the embodiments of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of any of the above methods for generating data table information in the embodiments of the present application.

[0241] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0242] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0243] S1, determining a target physical table selected through a visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured on a real-time computing platform;

[0244] S2, obtaining target configuration information configured for the target data table through a visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table;

[0245] S3, generating target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0246] Alternatively, optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0247] S1, in response to a first selection operation performed on the visual configuration interface, sending target indication information to the real-time computing platform, wherein the target indication information is used to indicate the selection of a target physical table of a target type as a physical table corresponding to a target data table in the real-time computing platform;

[0248] S2, obtaining target configuration information configured for the target data table through a visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table;

[0249] S3, sending the target configuration information to the real-time computing platform, so that the real-time computing platform generates target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0250] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.

[0251] Optionally, in this embodiment, the storage medium may include but is not limited to: a U disk, a ROM, a RAM, a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0252] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned method for generating data table information is also provided. The electronic device may be a server, a terminal, or a combination thereof.

[0253] Fig.13 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Fig.13 As shown, it includes a processor 1302, a communication interface 1304, a memory 1306 and a communication bus 1308, wherein the processor 1302, the communication interface 1304 and the memory 1306 communicate with each other through the communication bus 1308, wherein,

[0254] Memory 1306, used for storing computer programs;

[0255] The processor 1302 is used to execute the computer program stored in the memory 1306 to implement the following steps:

[0256] S1, determining a target physical table selected through a visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured on a real-time computing platform;

[0257] S2, obtaining target configuration information configured for the target data table through a visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table;

[0258] S3, generating target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0259] Alternatively, the processor 1302, when used to execute the computer program stored in the memory 1306, implements the following steps:

[0260] S1, in response to a first selection operation performed on the visual configuration interface, sending target indication information to the real-time computing platform, wherein the target indication information is used to indicate the selection of a target physical table of a target type as a physical table corresponding to a target data table in the real-time computing platform;

[0261] S2, obtaining target configuration information configured for the target data table through a visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table;

[0262] S3, sending the target configuration information to the real-time computing platform, so that the real-time computing platform generates target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information.

[0263] Optionally, the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 The communication interface is used for communication between the electronic device and other devices.

[0264] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0265] As an example, the memory 1306 may include but is not limited to the determination unit 1102, the acquisition unit 1104, and the generation unit 1106 in the above-mentioned data table information generation device. In addition, it may also include but is not limited to other module units in the above-mentioned data table information generation device, which will not be repeated in this example.

[0266] As another example, the memory 1306 may include, but is not limited to, the first sending unit 1202, the acquiring unit 1204, and the second sending unit 1206 in the data table information generating device. In addition, other module units in the data table information generating device may also be included but are not limited to, which will not be repeated in this example.

[0267] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0268] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0269] It can be understood by those skilled in the art that Fig.13 The structure shown is for illustration only. The device for implementing the above-mentioned data table information generation method may be a terminal device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other terminal devices. Fig.13 The structure of the electronic device is not limited. Fig.13 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Fig.13 Different configurations shown.

[0270] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.

[0271] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0272] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or 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 enabling one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.

[0273] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0274] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only 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 interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0275] 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 provided in this embodiment.

[0276] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or at least two units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0277] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for generating data table information, characterized in that: include: Determine a target physical table selected through a visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured on a real-time computing platform; Acquire target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table; Generate target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information; Wherein, after generating target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information, the method further includes: generating a target table name of the target data table according to the table name in the target metadata information; mapping a first field type of a first field in the target metadata information to a second field type corresponding to the real-time computing platform to obtain a field to be spliced ​​of the second field type, wherein the first field is a field in the target field belonging to the target physical table; and in the case that it is determined according to the target metadata information that the target field also includes a second field, using the second field to update the field to be spliced ​​to obtain an updated field to be spliced The first field is a user-defined field; statements are spliced ​​according to the fields to be spliced ​​to obtain an initial creation statement; when it is determined according to the target metadata information that there is a calculated column in the target data table, the calculated column field corresponding to the calculated column is spliced ​​into the initial creation statement to obtain an updated initial creation statement; when it is determined according to the target metadata information that the target data table is configured with a target watermark, the watermark expression corresponding to the target watermark is spliced ​​into the initial creation statement to obtain an updated initial creation statement; the target configuration item indicated by the target metadata information is added to the initial creation statement to obtain a target creation statement.

2. The method according to claim 1, characterized in that The step of generating target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information includes: Determine the target field and the target configuration item according to the metadata information of the target physical table and the target configuration information, wherein the target field is a field included in the target data table, the target configuration item is a configuration item of the target data table, and the target configuration item includes a first configuration item corresponding to the target physical table; The target metadata information of the target data table is generated according to the target field and the target configuration item.

3. The method according to claim 2, characterized in that After determining the target physical table selected through the visual configuration interface, the method further includes: The fields contained in the target physical table are sent to the visualization configuration interface for display, wherein the first configuration information in the target configuration information is used to indicate the first field selected for the target data table from the fields contained in the target physical table through the visualization configuration interface, and the target field includes the first field.

4. The method according to claim 2, characterized in that: The acquiring of target configuration information configured for the target data table through the visual configuration interface includes: The second configuration information configured for the target data table through the visual configuration interface is obtained, wherein the target configuration information includes the second configuration information, the second configuration information is used to indicate a second field, the second field is a custom field, and the target field includes the second field.

5. The method according to claim 2, characterized in that: The acquiring of target configuration information configured for the target data table through the visual configuration interface includes: Acquire third configuration information configured for the target data table through the visual configuration interface, wherein the third configuration information is used to indicate a second configuration item configured for the target data table through the visual configuration interface, and the target configuration item also includes the second configuration item.

6. The method according to claim 2, characterized in that After generating the target metadata information of the target data table according to the target field and the target configuration item, the method further includes: Perform statement splicing according to the target metadata information to obtain the target creation statement, wherein the target creation statement is used to create the target data table in the real-time computing platform; The target creation statement is sent to a first client, so that the first client displays the target creation statement on the visual configuration interface, wherein the first client is a client to which the visual configuration interface belongs.

7. The method according to claim 1, characterized in that After generating target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information, the method further includes: Receiving a service submission instruction sent by a second client, wherein the service submission instruction is a submission instruction of a target real-time service associated with the target data table; In response to the business submission instruction, performing statement splicing according to the target metadata information to obtain a target creation statement, wherein the target creation statement is used to create the target data table in the real-time computing platform; Adding the target creation statement before the business logic statement of the target real-time business to obtain an updated target real-time task; Submit the updated target real-time task to the resource manager so that the resource manager executes the target real-time task.

8. The method according to any one of claims 1 to 7, characterized in that After generating target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information, the method further includes: The target metadata information is persisted in a database of the real-time computing platform.

9. A method for generating data table information, characterized in that: include: In response to a first selection operation performed on the visual configuration interface, target indication information is sent to the real-time computing platform, wherein the target indication information is used to indicate the selection of a target physical table of the target type as a physical table corresponding to a target data table in the real-time computing platform; Acquire target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table; The target configuration information is sent to the real-time computing platform, so that the real-time computing platform generates the target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information; generates the target table name of the target data table according to the table name in the target metadata information; maps the first field type of the first field in the target metadata information to the second field type corresponding to the real-time computing platform, and obtains the field to be spliced ​​of the second field type, wherein the first field is a field in the target field belonging to the target physical table; when it is determined according to the target metadata information that the target field also includes a second field, the second field is used to update the field to be spliced, and obtains The updated fields to be spliced, wherein the second field is a custom field; statements are spliced ​​according to the fields to be spliced ​​to obtain an initial creation statement; when it is determined according to the target metadata information that there is a calculated column in the target data table, the calculated column field corresponding to the calculated column is spliced ​​into the initial creation statement to obtain the updated initial creation statement; when it is determined according to the target metadata information that the target data table is configured with a target watermark, the watermark expression corresponding to the target watermark is spliced ​​into the initial creation statement to obtain the updated initial creation statement; the target configuration item indicated by the target metadata information is added to the initial creation statement to obtain the target creation statement.

10. The method according to claim 9, characterized in that After sending the target indication information to the real-time computing platform, the method further includes: receiving fields included in the target physical table sent by the real-time computing platform; displaying the fields included in the target physical table on the visual configuration interface; The obtaining of target configuration information configured for the target data table through the visual configuration interface includes: obtaining a first field selected from the fields contained in the target physical table through the visual configuration interface to obtain first configuration information, wherein the first configuration information is used to indicate the first field, and the target configuration information includes the first configuration information.

11. The method according to claim 9, characterized in that The acquiring of target configuration information configured for the target data table through the visual configuration interface includes: The second field configured for the target data table through the visual configuration interface is obtained to obtain second configuration information, wherein the second field is a custom field, the second configuration information is used to indicate the second field, and the target configuration information includes the second configuration information.

12. The method according to claim 9, characterized in that The acquiring of target configuration information configured for the target data table through the visual configuration interface includes: Obtain a custom configuration item configured for the target data table through the visual configuration interface to obtain third configuration information, wherein the third configuration information is used to indicate the custom configuration item, and the target configuration information includes the third configuration information.

13. The method according to any one of claims 9 to 12, characterized in that After sending the target configuration information to the real-time computing platform, the method further includes: Receiving the target creation statement sent by the real-time computing platform, wherein the target creation statement is a creation statement obtained by performing statement splicing according to the target metadata information, and the target creation statement is used to create the target data table in the real-time computing platform; The target creation statement is displayed through the visual configuration interface.

14. A device for generating data table information, characterized in that: include: A determination unit, used to determine a target physical table selected through the visual configuration interface, wherein the target physical table is a physical table of a target type selected for a target data table to be configured on the real-time computing platform; An acquiring unit, configured to acquire target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table; A generating unit, configured to generate target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information; The device further comprises: a generating module for generating a target table name of the target data table according to the table name in the target metadata information; a mapping module for mapping a first field type of a first field in the target metadata information to a second field type corresponding to the real-time computing platform, and obtaining a field to be spliced ​​of the second field type, wherein the first field is a field in the target field belonging to the target physical table; an updating module for updating the field to be spliced ​​using the second field when it is determined according to the target metadata information that the target field also includes a second field, and obtaining the updated field to be spliced, wherein the second field is a custom field; a first splicing module for Statement splicing is performed according to the fields to be spliced ​​to obtain an initial creation statement; a second splicing module is used to splice the calculated column field corresponding to the calculated column into the initial creation statement when it is determined according to the target metadata information that there is a calculated column in the target data table, so as to obtain the updated initial creation statement; a third splicing module is used to splice the watermark expression corresponding to the target watermark into the initial creation statement when it is determined according to the target metadata information that the target data table is configured with a target watermark, so as to obtain the updated initial creation statement; an adding module is used to add the target configuration item indicated by the target metadata information to the initial creation statement, so as to obtain the target creation statement.

15. A device for generating data table information, characterized in that: include: A first sending unit, configured to send target indication information to the real-time computing platform in response to a first selection operation performed on the visual configuration interface, wherein the target indication information is used to indicate the selection of a target physical table of a target type as a physical table corresponding to a target data table in the real-time computing platform; An acquiring unit, configured to acquire target configuration information configured for the target data table through the visual configuration interface, wherein the target configuration information is configuration information associated with metadata information of the target data table; The second sending unit is used to send the target configuration information to the real-time computing platform, so that the real-time computing platform generates target metadata information of the target data table according to the metadata information of the target physical table and the target configuration information; generates a target table name of the target data table according to the table name in the target metadata information; maps a first field type of a first field in the target metadata information to a second field type corresponding to the real-time computing platform to obtain a field to be spliced ​​of the second field type, wherein the first field is a field in the target field belonging to the target physical table; when it is determined according to the target metadata information that the target field also includes a second field, the second field is used to update the field to be spliced field, and obtain the updated field to be spliced, wherein the second field is a custom field; perform statement splicing according to the field to be spliced ​​to obtain an initial creation statement; when it is determined according to the target metadata information that there is a calculated column in the target data table, the calculated column field corresponding to the calculated column is spliced ​​into the initial creation statement to obtain the updated initial creation statement; when it is determined according to the target metadata information that the target data table is configured with a target watermark, the watermark expression corresponding to the target watermark is spliced ​​into the initial creation statement to obtain the updated initial creation statement; the target configuration item indicated by the target metadata information is added to the initial creation statement to obtain the target creation statement.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method of any one of claims 1 to 8 or any one of claims 9 to 13 when executed.

17. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method of any one of claims 1 to 8 or any one of claims 9 to 13 through the computer program.