WO2020186782A1 - 自动化数据对比方法及装置、电子设备、计算机非易失性可读存储介质 - Google Patents

自动化数据对比方法及装置、电子设备、计算机非易失性可读存储介质 Download PDF

Info

Publication number
WO2020186782A1
WO2020186782A1 PCT/CN2019/117676 CN2019117676W WO2020186782A1 WO 2020186782 A1 WO2020186782 A1 WO 2020186782A1 CN 2019117676 W CN2019117676 W CN 2019117676W WO 2020186782 A1 WO2020186782 A1 WO 2020186782A1
Authority
WO
WIPO (PCT)
Prior art keywords
database
comparison
name
data
list
Prior art date
Application number
PCT/CN2019/117676
Other languages
English (en)
French (fr)
Inventor
何海鲜
Original Assignee
平安普惠企业管理有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安普惠企业管理有限公司 filed Critical 平安普惠企业管理有限公司
Publication of WO2020186782A1 publication Critical patent/WO2020186782A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases

Definitions

  • This application relates to the field of data synchronization technology, and in particular to an automated data comparison method and device, electronic equipment, and computer non-volatile readable storage media.
  • the same piece of data is usually sent to different processors and stored in different databases.
  • the branch office system uploads the sales order to the head office system for storage in the database of the head office system, and at the same time stores the above sales order in its own database. Therefore, in order to ensure the consistency of the data, it is often necessary to compare and analyze the similar content and the data from different databases, so as to find and correct the errors. Based on this demand, data comparison tools came into being, and can extract the differences between comparison data.
  • the inventor of the present application realizes that the current data comparison tools on the market, such as Excel, need to manually query data in the database, and manually paste the comparison data obtained from the query into the Excel software according to a fixed format for data comparison. It can be seen that this method is very labor intensive when applied to data comparison with a large amount of data.
  • this application provides an automated data comparison method and device, and electronic equipment.
  • an automated data comparison method includes: receiving a first database retrieval instruction and a second database retrieval instruction input by a user; wherein the first database retrieval instruction is used to extract the first comparison data from the first database , The second database retrieval instruction is used for extracting second comparison data from the second database; extracting the first comparison data from the first database according to the first database retrieval instruction; and, according to the The second database retrieval instruction extracts the second comparison data from the second database; analyzes the difference information between the first comparison data and the second comparison data; according to the difference information obtained by the analysis Generate comparison results.
  • an automatic data comparison device includes: a receiving unit for receiving a first database retrieval instruction and a second database retrieval instruction input by a user; wherein, the first database retrieval instruction is used to retrieve data from the first database The first comparison data is extracted, and the second database search instruction is used to extract the second comparison data from the second database; the extraction unit is used to extract the second comparison data from the first database according to the first database search instruction The first comparison data; and, extracting the second comparison data from the second database according to the second database retrieval instruction; an analysis unit for analyzing the first comparison data and the second Compare the difference information between the data; the generating unit is used to generate the comparison result according to the difference information obtained by the analysis.
  • an electronic device includes a processor and a memory, and computer-readable instructions are stored on the memory, and the computer-readable instructions implement the automatic data comparison method as described above when executed by the processor.
  • a computer non-volatile readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the automatic data comparison method as described above is realized.
  • the retrieved comparison data can be automatically extracted from the database according to the database retrieval instruction, which greatly reduces the manual workload; in addition, it can also automatically retrieve the data from the first
  • the first comparison data of the database is compared with the second comparison data from the second database, and the difference information between the first comparison data and the second comparison data is output, which solves the comparison caused by the incompatible data output format of the database
  • the error problem improves the intelligence and accuracy of data comparison, and also reduces manual intervention, thereby improving the efficiency of data comparison.
  • Figure 1 is a schematic structural diagram of a device disclosed in an embodiment of the present application.
  • Figure 2 is a flowchart of an automated data comparison method disclosed in an embodiment of the present application.
  • Figure 4 is a schematic structural diagram of an automated data comparison device disclosed in an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of another automatic data comparison device disclosed in an embodiment of the present application.
  • the implementation environment of this application can be electronic devices, such as smart phones, tablet computers, and desktop computers.
  • Fig. 1 is a schematic structural diagram of a device disclosed in an embodiment of the present application.
  • the apparatus 100 may be the aforementioned electronic device.
  • the device 100 may include one or more of the following components: a processing component 102, a memory 104, a power supply component 106, a multimedia component 108, an audio component 110, a sensor component 114, and a communication component 116.
  • the processing component 102 generally controls the overall operations of the device 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • the processing component 102 may include one or more processors 118 to execute instructions to complete all or part of the steps of the following method.
  • the processing component 102 may include one or more modules to facilitate the interaction between the processing component 102 and other components.
  • the processing component 102 may include a multimedia module to facilitate the interaction between the multimedia component 108 and the processing component 102.
  • the memory 104 is configured to store various types of data to support operations in the device 100. Examples of these data include instructions for any application or method operating on the device 100.
  • the memory 104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (Static Random Access Memory). Access Memory, SRAM for short), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read-Only Memory (EPROM) Red-Only Memory, PROM for short), Read-Only Memory (ROM for short), magnetic memory, flash memory, magnetic disk or optical disk.
  • the memory 104 also stores one or more modules, and the one or more modules are configured to be executed by the one or more processors 118 to complete all or part of the steps in the method shown below.
  • the power supply component 106 provides power to various components of the device 100.
  • the power supply component 106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 100.
  • the multimedia component 108 includes a screen that provides an output interface between the device 100 and the user.
  • the screen may include a liquid crystal display (Liquid Crystal Display, LCD for short) and a touch panel. If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
  • the screen may also include an organic electroluminescence display (Organic Light Emitting Display, OLED for short).
  • the audio component 110 is configured to output and/or input audio signals.
  • the audio component 110 includes a microphone (Microphone, MIC for short).
  • the microphone is configured to receive an external audio signal.
  • the received audio signal can be further stored in the memory 104 or sent via the communication component 116.
  • the audio component 110 further includes a speaker for outputting audio signals.
  • the sensor component 114 includes one or more sensors for providing the device 100 with various aspects of state evaluation.
  • the sensor component 114 can detect the open/close state of the device 100 and the relative positioning of components.
  • the sensor component 114 can also detect the position change of the device 100 or a component of the device 100 and the temperature change of the device 100.
  • the sensor component 114 may also include a magnetic sensor, a pressure sensor or a temperature sensor.
  • the communication component 116 is configured to facilitate wired or wireless communication between the apparatus 100 and other devices.
  • the device 100 can access a wireless network based on a communication standard, such as WiFi (Wireless-Fidelity, wireless fidelity).
  • WiFi Wireless-Fidelity, wireless fidelity
  • the communication component 116 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel.
  • the communication component 116 further includes a near field communication (Near Field Communication, NFC for short) module to facilitate short-range communication.
  • NFC Near Field Communication
  • the NFC module can be based on radio frequency identification (Radio Frequency Identification, referred to as RFID) technology, infrared data association (Infrared Data Association, referred to as IrDA) technology, ultra-wideband (Ultra Wideband, referred to as UWB) technology, Bluetooth technology and other technologies.
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB ultra-wideband
  • Bluetooth Bluetooth technology and other technologies.
  • the apparatus 100 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuits). Specific Integrated Circuit, referred to as ASIC), digital signal processor, digital signal processing equipment, programmable logic device, field programmable gate array, controller, microcontroller, microprocessor or other electronic components to implement the following method.
  • ASIC Application Specific Integrated Circuit
  • digital signal processor digital signal processing equipment
  • programmable logic device programmable logic device
  • field programmable gate array programmable gate array
  • controller microcontroller
  • microprocessor microprocessor or other electronic components to implement the following method.
  • FIG. 2 is a schematic flowchart of an automated data comparison method disclosed in an embodiment of the present application.
  • the automated data comparison method may include the following steps:
  • 201 Receive a first database retrieval instruction and a second database retrieval instruction input by a user; wherein the first database retrieval instruction is used to extract the first comparison data from the first database, and the second database retrieval instruction is used to retrieve the second database from the second database. To extract the second comparison data.
  • the embodiments of the present application can be applied to an automated data comparison device or electronic equipment, which is not specifically limited.
  • the first database may be an HBase database
  • the second database may be an Oracle database.
  • HBase database and Oracle database are relational databases, consisting of multiple two-dimensional row table grids that can be connected to each other.
  • Oracle database is a row database. Data is written into data blocks in units of rows. When reading a specified column, the entire data block needs to be read into memory, and then through several rows of data, the content of the specified column can be read;
  • the HBase database is a columnar database, which stores columns as elements. When reading a specified column, you only need to read the column block storing the specified column into the memory to read the content of the specified column. It can be seen that the data storage and output formats of the HBase database and the Oracle database are different.
  • the HBase database is suitable for large-scale and highly concurrent data queries
  • the Oracle database is suitable for complex queries, as well as addition, deletion, and modification operations.
  • step 201 may include the following steps: accepting the first database name, the first data table name, and the first column name, and the second database name, the second data table name, and the second column name input by the user ; According to the first database name, the first data table name and the first column name, generate a first database retrieval instruction that matches the type of the first database; and, according to the second database name, the second data table name and the second column name To generate a second database retrieval instruction matching the type of the second database.
  • the automatic data comparison device can automatically generate database retrieval instructions, To extract comparative data from different databases.
  • the user can also enter only the first database name, the first data table name, the second database name, and the second data table name. At this time, by default, the first data table and the second data table correspond to the same column name. To compare the data of the first data table and the second data table.
  • the difference information may include different row data (including missing row names and different values corresponding to the same row name) between the first comparison data and the second comparison data for the same column name, and the visualization chart The comparison result is generated in the form to show to the user.
  • the implementation of the method described in Figure 2 can automatically extract the retrieved comparison data from the database according to the database retrieval instruction by receiving the database retrieval instruction entered by the user, which greatly reduces the manual workload; in addition, it can also automatically
  • the first comparison data from the first database is compared with the second comparison data from the second database, and the difference information between the first comparison data and the second comparison data is output, which solves the problem of database output
  • the problem of comparison errors caused by format incompatibility improves the intelligence and accuracy of data comparison, and also reduces manual intervention, thereby improving the efficiency of data comparison.
  • FIG. 3 is a schematic flowchart of another automated data comparison method disclosed in an embodiment of the present application.
  • the automated data comparison method may include the following steps:
  • 301 Receive a first database retrieval instruction and a second database retrieval instruction input by a user; wherein the first database retrieval instruction is used to extract the first comparison data from the first database, and the second database retrieval instruction is used to retrieve the second database from the second database. To extract the second comparison data.
  • step 303 Determine whether the automatic data comparison device has established a connection with the first database corresponding to the name of the first database; and determine whether the automatic data comparison device has established a connection with the second database corresponding to the second database name; The first database establishes a connection, and the automatic data comparison device establishes a connection with the second database, and steps 305 to 307 are executed; otherwise, step 304 is executed.
  • extracting the first comparison data from the first database according to the first database retrieval instruction specifically includes the following steps: extracting the first data table name and the first column name from the first database retrieval instruction ; Derive the first data table corresponding to the first data table name from the first database; extract the first comparison data corresponding to the first column name from the first data table.
  • extracting the second comparison data from the second database according to the second database retrieval instruction specifically including the following steps: extracting the second data table name and the second column name from the second database retrieval instruction; exporting from the second database The second data table corresponding to the second data table name; the second comparison data corresponding to the second column name is extracted from the second data table.
  • the first comparison data corresponding to the first column name is extracted from the first data table
  • the second data table corresponding to the second column name is extracted from the second data table.
  • it can also include the following steps: determine whether the first column name and the second column name are consistent; if it is determined that the first column name and the second column name are consistent, perform an analysis of the difference between the first comparison data and the second comparison data The difference information step; if it is determined that the first column name and the second column name are inconsistent, a prompt message indicating that the database retrieval instruction is incorrect is returned.
  • first column name and the second column name are consistent, and before analyzing the difference information between the first comparison data and the second comparison data, it may also include: any information contained in the first comparison data A first row name, extract the value corresponding to the first row name from the first comparison data; add the first row name and the value corresponding to the first row name to the first comparison list; and, for the second comparison data For any included second row name, extract the value corresponding to the second row name from the second comparison data; add the second row name and the value corresponding to the second row name to the second comparison list.
  • the first database (HBase database) is a columnar database
  • the second database (Oracle database) is a row database
  • the format of the first comparison data and the second comparison data needs to be unified into a two-dimensional row list.
  • the two-dimensional row list is used to store all row names, all column names, and corresponding to specific rows included in the first/second comparison data. The value of the column name. It can be seen that by unifying the formats of the first comparison data and the second comparison data, the incompatibility problem of the output format of the comparison data can be solved, and the comparison error rate can be reduced.
  • step 306 specifically includes: extracting from the first comparison list Get the first row name list; and, extract the second row name list from the second comparison list; if the number of first elements in the first row name list is greater than the number of second elements in the second row name list, the A line name list is used as the target traversal list; if the number of first elements is less than or equal to the number of second elements, the second line name list is used as the target traversal list; for any target line name in the target traversal list, the first comparison is judged Whether the first target value corresponding to the target row name in the list is the same as the second target value corresponding to the target row name in the second comparison list; if not, add the target row name, first target value and second target value To the difference information list to obtain all the information in the difference information list as the difference information between the first comparison data and the second comparison data.
  • the first comparison list and the second comparison list can be made All row names are traversed to ensure the integrity of data comparison.
  • this solution also includes: for any target row name of the target traversal list, if the target row name does not exist in the first comparison list or the second comparison list, the target row name is added to the difference information list, All the information in the difference information list is obtained as the difference information between the first comparison data and the second comparison data.
  • a user login interface may be provided to accept account information input by the current user to verify whether the current user has operation authority; Moreover, when it is determined that the current user has the operation authority, the step of receiving the first database retrieval instruction and the second database retrieval instruction input by the user is executed.
  • the generated comparison result can also be automatically sent to the bound mailbox or bound terminal to inform the relevant processing personnel of the specific situation of the current user performing data reading and comparison operations through the automated data comparison device and Comparison of the data obtained. It can be seen that this can monitor the legitimacy of the data comparison operation and quickly notify the relevant processing personnel of the comparison result.
  • the retrieved comparison data can be automatically extracted from the database according to the database retrieval instruction, which greatly reduces the manual workload; in addition, it can also automatically
  • the first comparison data from the first database is compared with the second comparison data from the second database, and the difference information between the first comparison data and the second comparison data is output, which solves the problem of database output
  • the problem of comparison errors caused by format incompatibility improves the intelligence and accuracy of data comparison, and at the same time reduces manual intervention, thereby improving the efficiency of data comparison; in addition, by ensuring that the automatic data comparison device is compared with the first database and the second database
  • the databases are connected normally, which can avoid wasting unnecessary waiting time due to connection failures, and ensure the normal progress of the process of retrieving comparative data; and, by extracting the corresponding column names from the first data table and the second data table respectively Comparing data can achieve accurate comparison of fields and values between the first data table and the second data table; further, by unifying the format
  • FIG. 4 is a schematic structural diagram of an automatic data comparison device disclosed in an embodiment of the present application.
  • the automatic data comparison device may include: a receiving unit 401, an extracting unit 402, an analyzing unit 403, and a generating unit 404, where:
  • the receiving unit 401 is configured to receive the first database retrieval instruction and the second database retrieval instruction input by the user; wherein the first database retrieval instruction is used to extract the first comparison data from the first database, and the second database retrieval instruction is used to The second comparison data is extracted from the second database.
  • the receiving unit 401 is specifically configured to accept the first database name, the first data table name, and the first column name, and the second database name, the second data table name, and the second column name input by the user. ; And, according to the first database name, the first data table name, and the first column name, generate a first database retrieval instruction that matches the type of the first database; and, according to the second database name, the second data table name and the second The column name generates a second database search instruction matching the type of the second database.
  • the automatic data comparison device can automatically generate database retrieval instructions, To extract comparative data from different databases.
  • the user can also enter only the first database name, the first data table name, the second database name, and the second data table name. At this time, by default, the first data table and the second data table correspond to the same column name. To compare the data of the first data table and the second data table.
  • the extracting unit 402 is configured to extract the first comparison data from the first database according to the first database retrieval instruction; and extract the second comparison data from the second database according to the second database retrieval instruction.
  • the analysis unit 403 is used to analyze the difference information between the first comparison data and the second comparison data.
  • the generating unit 404 is configured to generate a comparison result according to the difference information obtained by analysis.
  • the implementation of the device described in Figure 4 can automatically extract the retrieved comparison data from the database according to the database retrieval instruction by receiving the database retrieval instruction input by the user, which greatly reduces the manual workload; in addition, it can also automatically
  • the first comparison data from the first database is compared with the second comparison data from the second database, and the difference information between the first comparison data and the second comparison data is output, which solves the problem of database output
  • the problem of comparison errors caused by format incompatibility improves the intelligence and accuracy of data comparison, and also reduces manual intervention, thereby improving the efficiency of data comparison.
  • FIG. 5 is a schematic structural diagram of another automatic data comparison device disclosed in an embodiment of the present application.
  • the automated data comparison device shown in FIG. 5 is optimized by the automated data comparison device shown in FIG. 4.
  • the automated data comparison device shown in FIG. 5 may further include: a judgment unit 405 and a prompt unit 406, wherein,
  • the extracting unit 402 is further configured to extract the first database name from the first database retrieval instruction after the receiving unit 401 receives the first database retrieval instruction and the second database retrieval instruction input by the user;
  • the determining unit 405 is configured to determine whether the automatic data comparison device establishes a connection with the first database corresponding to the first database name; and determines whether the automatic data comparison device establishes a connection with the second database corresponding to the second database name.
  • the extraction unit 402 is configured to extract the first comparison data from the first database according to the first database retrieval instruction specifically as follows:
  • the extracting unit 402 is configured to extract the first data table name and the name of the first data table from the first database retrieval instruction when the determining unit 405 determines that the automatic data comparison device is connected to the first database, and the automatic data comparison device is connected to the second database.
  • the first column name; and, the first data table corresponding to the first data table name is derived from the first database; and the first comparison data corresponding to the first column name is extracted from the first data table.
  • the prompt unit 406 is configured to return prompt information indicating the connection failure when the judgment unit 405 determines that the automatic data comparison device fails to establish a connection with the first database, or the automatic data comparison device fails to establish a connection with the second database.
  • the method for the extraction unit 402 to extract the second comparison data from the second database according to the second database retrieval instruction is specifically as follows:
  • the extracting unit 402 is configured to extract the second data table name and the second column name from the second database retrieval instruction; and derive the second data table corresponding to the second data table name from the second database; and, from the second database The second comparison data corresponding to the second column name is extracted from the second data table.
  • the judging unit 405 is further configured to extract the first comparison data corresponding to the first column name from the first data table in the extracting unit 402, and to extract the first comparison data from the second data table After extracting the second comparison data corresponding to the second column name, it is determined whether the first column name and the second column name are consistent.
  • the analysis unit 403 is specifically configured to analyze the difference information between the first comparison data and the second comparison data when the determination unit 405 determines that the first column name and the second column name are consistent.
  • the prompt unit 406 is further configured to return prompt information indicating that the database retrieval instruction is incorrect when the judgment unit 405 determines that the first column name and the second column name are inconsistent.
  • the extracting unit 402 is also configured to: after the determining unit 405 determines that the first column name and the second column name are consistent, and before the analyzing unit 403 analyzes the difference information between the first comparison data and the second comparison data, For any first row name included in the first comparison data, extract the value corresponding to the first row name from the first comparison data; and add the first row name and the value corresponding to the first row name to the first row name A comparison list; and, for any second row name contained in the second comparison data, extract the value corresponding to the second row name from the second comparison data; and, the second row name and the second row name The value of the first name is added to the second comparison list.
  • the analysis unit 403 is used to analyze the difference information between the first comparison data and the second comparison data specifically as follows:
  • the analyzing unit 403 is configured to extract the first row name list from the first comparison list; and, extract the second row name list from the second comparison list; and, the number of first elements in the first row name list When it is greater than the number of second elements in the second line name list, the first line name list is used as the target traversal list; when the first element number is less than or equal to the second element number, the second line name list is used as the target traversal List; and, for any target row name in the target traversal list, determine whether the first target value corresponding to the target row name in the first comparison list is the same as the second target value corresponding to the target row name in the second comparison list; And, when the first target value and the second target value are not the same, the target row name, the first target value, and the second target value are added to the difference information list to obtain all the information in the difference information list as the first comparison data Difference information with the second comparison data.
  • the analysis unit 403 is further configured to add the target row name to the difference information list when the target row name does not exist in the first comparison list or the second comparison list for any target row name of the target traversal list to obtain the difference All the information in the information list is used as the difference information between the first comparison data and the second comparison data.
  • the automatic data comparison device may further include a verification unit and a notification unit, wherein:
  • the verification unit is used to provide a user login interface before receiving the first database retrieval instruction and the second database retrieval instruction input by the user, and accept the account information entered by the current user to verify whether the current user has operation authority;
  • the receiving unit 401 is caused to execute the step of receiving the first database retrieval instruction and the second database retrieval instruction input by the user.
  • the notification unit is used to automatically send the generated comparison result to the bound mailbox or the bound terminal after the comparison result is generated, so as to inform the relevant processing personnel of the specific situation of the current user performing data reading and comparison operations through the automated data comparison device and Comparison of the data obtained. It can be seen that this can monitor the legitimacy of the data comparison operation and quickly notify the relevant processing personnel of the comparison result.
  • the implementation of the device described in Figure 5 can automatically extract the retrieved comparison data from the database according to the database retrieval instruction by receiving the database retrieval instruction input by the user, which greatly reduces the manual workload; in addition, it can also automatically The first comparison data from the first database is compared with the second comparison data from the second database, and the difference information between the first comparison data and the second comparison data is output, which solves the problem of database output
  • the problem of comparison errors caused by format incompatibility improves the intelligence and accuracy of data comparison, and at the same time reduces manual intervention, thereby improving the efficiency of data comparison; in addition, by ensuring that the automatic data comparison device is compared with the first database and the second database
  • the databases are connected normally, which can avoid wasting unnecessary waiting time due to connection failures, and ensure the normal progress of the process of retrieving comparative data; and, by extracting the corresponding column names from the first data table and the second data table respectively Comparing data can achieve accurate comparison of fields and values between the first data table and the second data table; further, by unifying the format of
  • the present application also provides an electronic device, the electronic device includes: a processor; a memory, the memory is stored with computer readable instructions, when the computer readable instructions are executed by the processor, the automatic data comparison method shown above is realized .
  • the electronic device may be the apparatus 100 shown in FIG. 1.
  • the present application also provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the automatic data comparison method as shown above is realized.

Abstract

本申请涉及数据同步技术领域,公开了一种自动化数据对比方法及装置、电子设备。所述方法包括:接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,第一数据库检索指令用于从第一数据库中提取出第一对比数据,第二数据库检索指令用于从第二数据库中提取出第二对比数据;根据第一数据库检索指令从第一数据库中提取出第一对比数据;以及,根据第二数据库检索指令从第二数据库中提取出第二对比数据;分析第一对比数据和第二对比数据之间的差异信息;根据分析得到的差异信息生成对比结果。

Description

自动化数据对比方法及装置、电子设备、计算机非易失性可读存储介质 技术领域
本申请要求2019年3月18日递交、申请名称为“一种自动化数据对比方法及装置、电子设备”的中国专利申请201910203329.0的优先权,在此通过引用将其全部内容合并于此。
本申请涉及数据同步技术领域,尤其涉及一种自动化数据对比方法及装置、电子设备、计算机非易失性可读存储介质。
背景技术
日常工作中,通常会将同一份数据发送给不同的处理方,并存储至不同的数据库中。例如,分公司系统将销售订单上传至总公司系统,以存储到总公司系统的数据库中,同时也会在自身的数据库中存储有上述销售订单。因此,为了保证数据的一致性,往往需要对这些内容近似、来源于不同数据库的数据进行对比分析,从而发现和纠正其中的错误。基于此需求,数据对比工具应运而生,并且能够提取出对比数据之间的不同之处。
技术问题
本申请的发明人意识到,目前市面上的数据对比工具,例如Excel,需要人工在数据库中查询数据,并按照固定的格式手动地将查询得到的对比数据粘贴进Excel软件,以进行数据对比。可见,当应用于大数据量的数据对比时,这种方式十分消耗人力。
技术解决方案
为了解决上述技术问题,本申请提供了一种自动化数据对比方法及装置、电子设备。
其中,本申请所采用的技术方案为:
一方面,一种自动化数据对比方法,包括:接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,所述第一数据库检索指令用于从第一数据库中提取出第一对比数据,所述第二数据库检索指令用于从第二数据库中提取出第二对比数据;根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据;以及,根据所述第二数据库检索指令从所述第二数据库中提取出所述第二对比数据;分析所述第一对比数据和所述第二对比数据之间的差异信息;根据分析得到的所述差异信息生成对比结果。
另一方面,一种自动化数据对比装置,包括:接收单元,用于接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,所述第一数据库检索指令用于从第一数据库中提取出第一对比数据,所述第二数据库检索指令用于从第二数据库中提取出第二对比数据;提取单元,用于根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据;以及,根据所述第二数据库检索指令从所述第二数据库中提取出所述第二对比数据;分析单元,用于分析所述第一对比数据和所述第二对比数据之间的差异信息;生成单元,用于根据分析得到的所述差异信息生成对比结果。
另一方面,一种电子设备,包括处理器及存储器,所述存储器上存储有计算机可读指令,所述计算机可读指令被所述处理器执行时实现如上所述的自动化数据对比方法。
另一方面,一种计算机非易失性可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的自动化数据对比方法。
有益效果
本申请实施例提供的技术方案可以包括以下有益效果:
此方法下,通过接收用户输入的数据库检索指令,能够根据数据库检索指令自动地从数据库中提取出检索的对比数据,极大地减少了人工的工作量;此外,还能够自动地对来源于第一数据库的第一对比数据和来源于第二数据库的第二对比数据进行对比,并输出第一对比数据和第二对比数据之间的差异信息,解决了因数据库的数据输出格式不兼容导致的对比出错问题,提高了数据对比的智能化程度以及准确性,同时也减少了人工干预,从而提升数据对比的效率。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并于说明书一起用于解释本申请的原理。
图1是本申请实施例公开的一种装置的结构示意图;
图2是本申请实施例公开的一种自动化数据对比方法的流程图;
图3是本申请实施例公开的另一种自动化数据对比方法的流程图;
图4是本申请实施例公开的一种自动化数据对比装置的结构示意图;
图5是本申请实施例公开的另一种自动化数据对比装置的结构示意图。
本发明的实施方式
这里将详细地对示例性实施例执行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。
实施例一
本申请的实施环境可以是电子设备,例如智能手机、平板电脑、台式电脑。
图1是本申请实施例公开的一种装置的结构示意图。装置100可以是上述电子设备。如图1所示,装置100可以包括以下一个或多个组件:处理组件102,存储器104,电源组件106,多媒体组件108,音频组件110,传感器组件114以及通信组件116。
处理组件102通常控制装置100的整体操作,诸如与显示,电话呼叫,数据通信,相机操作以及记录操作相关联的操作等。处理组件102可以包括一个或多个处理器118来执行指令,以完成下述的方法的全部或部分步骤。此外,处理组件102可以包括一个或多个模块,用于便于处理组件102和其他组件之间的交互。例如,处理组件102可以包括多媒体模块,用于以方便多媒体组件108和处理组件102之间的交互。
存储器104被配置为存储各种类型的数据以支持在装置100的操作。这些数据的示例包括用于在装置100上操作的任何应用程序或方法的指令。存储器104可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(Static Random Access Memory,简称SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,简称EEPROM),可擦除可编程只读存储器(Erasable Programmable Read Only Memory,简称EPROM),可编程只读存储器(Programmable Red-Only Memory,简称PROM),只读存储器(Read-Only Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。存储器104中还存储有一个或多个模块,用于该一个或多个模块被配置成由该一个或多个处理器118执行,以完成如下所示方法中的全部或者部分步骤。
电源组件106为装置100的各种组件提供电力。电源组件106可以包括电源管理系统,一个或多个电源,及其他与为装置100生成、管理和分配电力相关联的组件。
多媒体组件108包括在装置100和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(Liquid Crystal Display,简称LCD)和触摸面板。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。屏幕还可以包括有机电致发光显示器(Organic Light Emitting Display,简称OLED)。
音频组件110被配置为输出和/或输入音频信号。例如,音频组件110包括一个麦克风(Microphone,简称MIC),当装置100处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器104或经由通信组件116发送。在一些实施例中,音频组件110还包括一个扬声器,用于输出音频信号。
传感器组件114包括一个或多个传感器,用于为装置100提供各个方面的状态评估。例如,传感器组件114可以检测到装置100的打开/关闭状态,组件的相对定位,传感器组件114还可以检测装置100或装置100一个组件的位置改变以及装置100的温度变化。在一些实施例中,该传感器组件114还可以包括磁传感器,压力传感器或温度传感器。
通信组件116被配置为便于装置100和其他设备之间有线或无线方式的通信。装置100可以接入基于通信标准的无线网络,如WiFi(Wireless-Fidelity,无线保真)。在本申请实施例中,通信组件116经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在本申请实施例中,通信组件116还包括近场通信(Near Field Communication,简称NFC)模块,用于以促进短程通信。例如,在NFC模块可基于射频识别(Radio Frequency Identification,简称RFID)技术,红外数据协会(Infrared Data Association,简称IrDA)技术,超宽带(Ultra Wideband,简称UWB)技术,蓝牙技术和其他技术来实现。
在示例性实施例中,装置100可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器、数字信号处理设备、可编程逻辑器件、现场可编程门阵列、控制器、微控制器、微处理器或其他电子元件实现,用于执行下述方法。
实施例二
请参阅图2,图2是本申请实施例公开的一种自动化数据对比方法的流程示意图。如图2所示该自动化数据对比方法可以包括以下步骤:
201、接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,第一数据库检索指令用于从第一数据库中提取出第一对比数据,第二数据库检索指令用于从第二数据库中提取出第二对比数据。
本申请实施例可以应用于自动化数据对比装置或者电子设备,对此不作具体限定。
本申请实施例中,第一数据库可以为HBase数据库,第二数据库可以为Oracle数据库。HBase数据库和Oracle数据库都属于关系型数据库,由多张能互相联接的二维行列表格组成。Oracle数据库为行式数据库,以行为单位将数据写入数据块中,在读取指定列时,需要将整个数据块读入内存,再通过遍历若干行数据,才能读取出指定列的内容;而HBase数据库为列式数据库,以列作为元素存储,在读取指定列时,只需要将存放有指定列的列块读入内存,便可以读取到指定列的内容。可见,HBase数据库和Oracle数据库的数据存储与输出格式都不相同,HBase数据库适用于大规模、高并发数据查询,而Oracle数据库适用于复杂查询,以及增删查改操作。
作为一种可选的实施方式,步骤201可以包括以下步骤:接受用户输入的第一数据库名称、第一数据表名和第一列名,以及第二数据库名称、第二数据表名和第二列名;根据第一数据库名称、第一数据表名和第一列名,生成与第一数据库的类型相匹配的第一数据库检索指令;以及,根据第二数据库名称、第二数据表名和第二列名,生成与第二数据库的类型相匹配的第二数据库检索指令。
举例来说,用户欲对分别存储在数据库A和数据库B中的新入职员工表的员工ID信息进行对比,那么在相应的自动化数据对比装置的交互页面,用户只需要针对第一数据输入区域输入(或者通过列表选择)数据库A-新入职员工表名-员工ID,以及在第二数据输入区域输入数据库B-新入职员工表名-员工ID,即可由自动化数据对比装置自动生成数据库检索指令,以从不同的数据库中提取出对比数据。
进一步地,用户也可以只输入第一数据库名称、第一数据表名、第二数据库名称和第二数据表名,此时默认对第一数据表和第二数据表中所有对应于相同列名的数据进行对比,获得第一数据表和第二数据表的对比结果。
202、根据第一数据库检索指令从第一数据库中提取出第一对比数据,以及,根据第二数据库检索指令从第二数据库中提取出第二对比数据。
203、分析第一对比数据和第二对比数据之间的差异信息。
204、根据分析得到的差异信息生成对比结果。
本申请实施例中,差异信息可以包括第一对比数据和第二对比数据之间针对同一列名的不同行数据(包括缺少的行名以及对应同一行名的不同值),并以可视化图表的形式生成对比结果,以展示给用户。
可见,实施图2所描述的方法,通过接收用户输入的数据库检索指令,能够根据数据库检索指令自动地从数据库中提取出检索的对比数据,极大地减少了人工的工作量;此外,还能够自动地对来源于第一数据库的第一对比数据和来源于第二数据库的第二对比数据进行对比,并输出第一对比数据和第二对比数据之间的差异信息,解决了因数据库的数据输出格式不兼容导致的对比出错问题,提高了数据对比的智能化程度以及准确性,同时也减少了人工干预,从而提升数据对比的效率。
实施例三
请参阅图3,图3是本申请实施例公开的另一种自动化数据对比方法的流程示意图。如图3所示,该自动化数据对比方法可以包括以下步骤:
301、接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,第一数据库检索指令用于从第一数据库中提取出第一对比数据,第二数据库检索指令用于从第二数据库中提取出第二对比数据。
302、从第一数据库检索指令中提取出第一数据库名称,以及,从第二数据库检索指令中提取出第二数据库名称。
303、判断自动化数据对比装置是否与对应于第一数据库名称的第一数据库建立连接;以及,判断自动化数据对比装置是否与对应于第二数据库名称的第二数据库建立连接;若自动化数据对比装置与第一数据库建立连接,并且自动化数据对比装置与第二数据库建立连接,执行步骤305~步骤307;否则,执行步骤304。
304、返回指示连接失败的提示信息。
可见,实施上述步骤302~步骤304,通过确保自动化数据对比装置与第一数据库和第二数据库都正常建立连接,能够避免因连接失败浪费不必要的等待时间,保证检索对比数据的进程正常进行。
305、根据第一数据库检索指令从第一数据库中提取出第一对比数据,以及,根据第二数据库检索指令从第二数据库中提取出第二对比数据。
作为一种可选的实施方式,根据第一数据库检索指令从第一数据库中提取出第一对比数据,具体包括以下步骤:从第一数据库检索指令中提取出第一数据表名和第一列名;从第一数据库中导出与第一数据表名对应的第一数据表;从第一数据表中提取出与第一列名对应的第一对比数据。
以及,根据第二数据库检索指令从第二数据库中提取出第二对比数据,具体包括以下步骤:从第二数据库检索指令中提取出第二数据表名和第二列名;从第二数据库中导出与第二数据表名对应的第二数据表;从第二数据表中提取出与第二列名对应的第二对比数据。
进一步地,作为一种可选的实施方式,在从第一数据表中提取出与第一列名对应的第一对比数据,以及从第二数据表中提取出与第二列名对应的第二对比数据之后,还可以包括以下步骤:判断第一列名和第二列名是否一致;若判定出第一列名和第二列名一致,执行分析第一对比数据和第二对比数据之间的差异信息的步骤;若判定出第一列名和第二列名不一致,返回指示数据库检索指令有误的提示信息。
可见,通过从第一数据表和第二数据表中分别提取出对应于相同列名的对比数据,能够实现对第一数据表和第二数据表进行精准到字段和值的对比。
再进一步地,在判定出第一列名和第二列名一致之后,以及在分析第一对比数据和第二对比数据之间的差异信息之前,还可以包括:针对第一对比数据所包含的任一第一行名,从第一对比数据中提取出对应于第一行名的值;将第一行名和对应于第一行名的值添加到第一对比列表;以及,针对第二对比数据所包含的任一第二行名,从第二对比数据中提取出对应于第二行名的值;将第二行名和对应于第二行名的值添加到第二对比列表。
可以理解,由于第一数据库(HBase数据库)为列式数据库,而第二数据库(Oracle数据库)为行式数据库,二者的数据输出格式不同,为了保证数据对比的准确性,在进行数据对比之前,需要统一第一对比数据和第二对比数据的格式为二维行列表,该二维行列表用于存放第一/第二对比数据包括的所有行名、所有列名以及对应于特定行、列名的值。可见,通过统一第一对比数据和第二对比数据的格式,能够解决对比数据的输出格式不兼容问题,降低对比出错率。
306、分析第一对比数据和第二对比数据之间的差异信息。
作为一种可选的实施方式,在对第一对比数据和第二对比数据进行统一格式化,并获得第一对比列表和第二对比列表之后,步骤306具体包括:从第一对比列表中提取出第一行名列表;以及,从第二对比列表中提取出第二行名列表;若第一行名列表的第一元素个数大于第二行名列表的第二元素个数,将第一行名列表作为目标遍历列表;若第一元素个数小于或等于第二元素个数,将第二行名列表作为目标遍历列表;针对目标遍历列表的任一目标行名,判断第一对比列表中对应于目标行名的第一目标值是否与第二对比列表中对应于目标行名的第二目标值相同;若不相同,将目标行名、第一目标值和第二目标值添加至差异信息列表中,以获得差异信息列表的所有信息作为第一对比数据与第二对比数据之间的差异信息。
可见,在确定需要对比的字段(列)之后,需要针对第一对比列表和第二对比列表中分别对应于同一目标行名的第一目标值和第二目标值进行匹配。通过从第一行名列表和第二行名列表中挑选出包含更多元素(行名)个数的行名列表,并将其作为目标遍历列表,能够使得第一对比列表和第二对比列表中所有行名均被遍历,保证数据对比的完整性。
进一步可选的,本方案还包括:针对目标遍历列表的任一目标行名,若在第一对比列表或者第二对比列表中不存在目标行名,将目标行名添加至差异信息列表中,以获得差异信息列表的所有信息作为第一对比数据与第二对比数据之间的差异信息。
可见,实施可选的实施方式,能够通过遍历目标遍历列表中所有行名,获取第一/第二对比列表中非共有的行名,并将其作为第一对比数据和第二对比数据的差异点。
307、根据分析得到的差异信息生成对比结果。
作为一种可选的实施方式,在接收用户输入的第一数据库检索指令和第二数据库检索指令之前,可以提供用户登录界面,接受当前用户输入的账号信息,以验证当前用户是否具有操作权限;并且,在确定当前用户具有操作权限时,执行接收用户输入的第一数据库检索指令和第二数据库检索指令的步骤。
进一步地,在生成对比结果之后,还可以自动将生成的对比结果发送给绑定邮箱或绑定终端,以告知相关处理人员当前用户通过自动化数据对比装置执行数据读取和对比操作的具体情况以及获得的数据对比结果。可见,这样能够监测数据对比操作的合法性,以及快速地将对比结果通知给相关处理人员。
可见,实施图3所描述的方法,通过接收用户输入的数据库检索指令,能够根据数据库检索指令自动地从数据库中提取出检索的对比数据,极大地减少了人工的工作量;此外,还能够自动地对来源于第一数据库的第一对比数据和来源于第二数据库的第二对比数据进行对比,并输出第一对比数据和第二对比数据之间的差异信息,解决了因数据库的数据输出格式不兼容导致的对比出错问题,提高了数据对比的智能化程度以及准确性,同时也减少了人工干预,从而提升数据对比的效率;此外,通过确保自动化数据对比装置与第一数据库和第二数据库都正常建立连接,能够避免因连接失败浪费不必要的等待时间,保证检索对比数据的进程正常进行;并且,通过从第一数据表和第二数据表中分别提取出对应于相同列名的对比数据,能够实现对第一数据表和第二数据表进行精准到字段和值的对比;进一步地,通过统一第一对比数据和第二对比数据的格式,能够解决对比数据的输出格式不兼容问题,降低对比出错率;再进一步地,通过从第一行名列表和第二行名列表中挑选出包含更多元素(行名)个数的行名列表,并将其作为目标遍历列表,能够使得第一对比列表和第二对比列表中所有行名均被遍历,保证数据对比的完整性,还能够获取第一/第二对比列表中非共有的行名,并将其作为第一对比数据和第二对比数据的差异点。
实施例四
请参阅图4,图4是本申请实施例公开的一种自动化数据对比装置的结构示意图。如图4所示,该自动化数据对比装置可以包括:接收单元401、提取单元402、分析单元403和生成单元404,其中,
接收单元401,用于接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,第一数据库检索指令用于从第一数据库中提取出第一对比数据,第二数据库检索指令用于从第二数据库中提取出第二对比数据。
作为一种可选的实施方式,接收单元401,具体用于接受用户输入的第一数据库名称、第一数据表名和第一列名,以及第二数据库名称、第二数据表名和第二列名;以及,根据第一数据库名称、第一数据表名和第一列名,生成与第一数据库的类型相匹配的第一数据库检索指令;以及,根据第二数据库名称、第二数据表名和第二列名,生成与第二数据库的类型相匹配的第二数据库检索指令。
举例来说,用户欲对分别存储在数据库A和数据库B中的新入职员工表的员工ID信息进行对比,那么在相应的自动化数据对比装置的交互页面,用户只需要针对第一数据输入区域输入(或者通过列表选择)数据库A-新入职员工表名-员工ID,以及在第二数据输入区域输入数据库B-新入职员工表名-员工ID,即可由自动化数据对比装置自动生成数据库检索指令,以从不同的数据库中提取出对比数据。
进一步地,用户也可以只输入第一数据库名称、第一数据表名、第二数据库名称和第二数据表名,此时默认对第一数据表和第二数据表中所有对应于相同列名的数据进行对比,获得第一数据表和第二数据表的对比结果。
提取单元402,用于根据第一数据库检索指令从第一数据库中提取出第一对比数据;以及,根据第二数据库检索指令从第二数据库中提取出第二对比数据。
分析单元403,用于分析第一对比数据和第二对比数据之间的差异信息。
生成单元404,用于根据分析得到的差异信息生成对比结果。
可见,实施图4所描述的装置,通过接收用户输入的数据库检索指令,能够根据数据库检索指令自动地从数据库中提取出检索的对比数据,极大地减少了人工的工作量;此外,还能够自动地对来源于第一数据库的第一对比数据和来源于第二数据库的第二对比数据进行对比,并输出第一对比数据和第二对比数据之间的差异信息,解决了因数据库的数据输出格式不兼容导致的对比出错问题,提高了数据对比的智能化程度以及准确性,同时也减少了人工干预,从而提升数据对比的效率。
实施例五
请参阅图5,图5是本申请实施例公开的另一种自动化数据对比装置的结构示意图。图5所示的自动化数据对比装置是由图4所示的自动化数据对比装置进行优化得到的。与图4所示的自动化数据对比装置相比较,图5所示的自动化数据对比装置还可以包括:判断单元405和提示单元406,其中,
提取单元402,还用于在接收单元401接收用户输入的第一数据库检索指令和第二数据库检索指令之后,从第一数据库检索指令中提取出第一数据库名称;
以及,从第二数据库检索指令中提取出第二数据库名称。
判断单元405,用于判断自动化数据对比装置是否与对应于第一数据库名称的第一数据库建立连接;以及,判断自动化数据对比装置是否与对应于第二数据库名称的第二数据库建立连接。
提取单元402用于根据第一数据库检索指令从第一数据库中提取出第一对比数据的方式具体为:
提取单元402,用于在判断单元405判定出自动化数据对比装置与第一数据库建立连接,并且自动化数据对比装置与第二数据库建立连接时,从第一数据库检索指令中提取出第一数据表名和第一列名;以及,从第一数据库中导出与第一数据表名对应的第一数据表;以及,从第一数据表中提取出与第一列名对应的第一对比数据。
提示单元406,用于在判断单元405判定出自动化数据对比装置与第一数据库未能建立连接,或者自动化数据对比装置与第二数据库未能建立连接时,返回指示连接失败的提示信息。
作为一种可选的实施方式,提取单元402用于根据第二数据库检索指令从第二数据库中提取出第二对比数据的方式具体为:
提取单元402,用于从第二数据库检索指令中提取出第二数据表名和第二列名;以及,从第二数据库中导出与第二数据表名对应的第二数据表;以及,从第二数据表中提取出与第二列名对应的第二对比数据。
进一步地,作为一种可选的实施方式,判断单元405,还用于在提取单元402从第一数据表中提取出与第一列名对应的第一对比数据,以及从第二数据表中提取出与第二列名对应的第二对比数据之后,判断第一列名和第二列名是否一致。
分析单元403,具体用于在判断单元405判定出第一列名和第二列名一致时,分析第一对比数据和第二对比数据之间的差异信息。
提示单元406,还用于在判断单元405判定出第一列名和第二列名不一致时,返回指示数据库检索指令有误的提示信息。
再进一步地,提取单元402,还用于在判断单元405判定出第一列名和第二列名一致之后,以及在分析单元403分析第一对比数据和第二对比数据之间的差异信息之前,针对第一对比数据所包含的任一第一行名,从第一对比数据中提取出对应于第一行名的值;以及,将第一行名和对应于第一行名的值添加到第一对比列表;以及,针对第二对比数据所包含的任一第二行名,从第二对比数据中提取出对应于第二行名的值;以及,将第二行名和对应于第二行名的值添加到第二对比列表。
分析单元403用于分析所述第一对比数据和所述第二对比数据之间的差异信息的方式具体为:
分析单元403,用于从第一对比列表中提取出第一行名列表;以及,从第二对比列表中提取出第二行名列表;以及,在第一行名列表的第一元素个数大于第二行名列表的第二元素个数时,将第一行名列表作为目标遍历列表;在第一元素个数小于或等于第二元素个数时,将第二行名列表作为目标遍历列表;以及,针对目标遍历列表的任一目标行名,判断第一对比列表中对应于目标行名的第一目标值是否与第二对比列表中对应于目标行名的第二目标值相同;以及,在第一目标值和第二目标值不相同时,将目标行名、第一目标值和第二目标值添加至差异信息列表中,以获得差异信息列表的所有信息作为第一对比数据与第二对比数据之间的差异信息。
分析单元403,还用于针对目标遍历列表的任一目标行名,在第一对比列表或者第二对比列表中不存在目标行名时,将目标行名添加至差异信息列表中,以获得差异信息列表的所有信息作为第一对比数据与第二对比数据之间的差异信息。
作为一种可选的实施方式,该自动化数据对比装置还可以包括验证单元和通知单元,其中,
验证单元,用于在接收用户输入的第一数据库检索指令和第二数据库检索指令之前,提供用户登录界面,接受当前用户输入的账号信息,以验证当前用户是否具有操作权限;并且,在确定当前用户具有操作权限时,使得接收单元401执行接收用户输入的第一数据库检索指令和第二数据库检索指令的步骤。
通知单元,用于在生成对比结果之后,自动将生成的对比结果发送给绑定邮箱或绑定终端,以告知相关处理人员当前用户通过自动化数据对比装置执行数据读取和对比操作的具体情况以及获得的数据对比结果。可见,这样能够监测数据对比操作的合法性,以及快速地将对比结果通知给相关处理人员。
可见,实施图5所描述的装置,通过接收用户输入的数据库检索指令,能够根据数据库检索指令自动地从数据库中提取出检索的对比数据,极大地减少了人工的工作量;此外,还能够自动地对来源于第一数据库的第一对比数据和来源于第二数据库的第二对比数据进行对比,并输出第一对比数据和第二对比数据之间的差异信息,解决了因数据库的数据输出格式不兼容导致的对比出错问题,提高了数据对比的智能化程度以及准确性,同时也减少了人工干预,从而提升数据对比的效率;此外,通过确保自动化数据对比装置与第一数据库和第二数据库都正常建立连接,能够避免因连接失败浪费不必要的等待时间,保证检索对比数据的进程正常进行;并且,通过从第一数据表和第二数据表中分别提取出对应于相同列名的对比数据,能够实现对第一数据表和第二数据表进行精准到字段和值的对比;进一步地,通过统一第一对比数据和第二对比数据的格式,能够解决对比数据的输出格式不兼容问题,降低对比出错率;再进一步地,通过从第一行名列表和第二行名列表中挑选出包含更多元素(行名)个数的行名列表,并将其作为目标遍历列表,能够使得第一对比列表和第二对比列表中所有行名均被遍历,保证数据对比的完整性,还能够获取第一/第二对比列表中非共有的行名,并将其作为第一对比数据和第二对比数据的差异点。
本申请还提供一种电子设备,该电子设备包括:处理器;存储器,该存储器上存储有计算机可读指令,该计算机可读指令被处理器执行时,实现如前所示的自动化数据对比方法。该电子设备可以是图1所示装置100。
在一示例性实施例中,本申请还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时,实现如前所示的自动化数据对比方法。
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围执行各种修改和改变。本申请的范围仅由所附的权利要求来限制。

Claims (28)

  1. 一种自动化数据对比方法,包括:
    接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,所述第一数据库检索指令用于从第一数据库中提取出第一对比数据,所述第二数据库检索指令用于从第二数据库中提取出第二对比数据;
    根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据;
    以及,根据所述第二数据库检索指令从所述第二数据库中提取出所述第二对比数据;
    分析所述第一对比数据和所述第二对比数据之间的差异信息;
    根据分析得到的所述差异信息生成对比结果。
  2. 如权利要求1所述的方法,其中,在所述接收用户输入的第一数据库检索指令和第二数据库检索指令之后,所述方法还包括:
    从所述第一数据库检索指令中提取出第一数据库名称;
    以及,从所述第二数据库检索指令中提取出第二数据库名称;
    判断自动化数据对比装置是否与对应于所述第一数据库名称的所述第一数据库建立连接;
    以及,判断所述自动化数据对比装置是否与对应于所述第二数据库名称的所述第二数据库建立连接;
    若所述自动化数据对比装置与所述第一数据库建立连接,并且所述自动化数据对比装置与所述第二数据库建立连接,执行所述根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据的步骤;
    若所述自动化数据对比装置与所述第一数据库未能建立连接,或者所述自动化数据对比装置与所述第二数据库未能建立连接,返回指示连接失败的提示信息。
  3. 如权利要求2所述的方法,其中,所述第一数据库为HBase数据库,所述第二数据库为Oracle数据库;所述根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据,包括:     从所述第一数据库检索指令中提取出第一数据表名和第一列名;
    从所述第一数据库中导出与所述第一数据表名对应的第一数据表;
    从所述第一数据表中提取出与所述第一列名对应的第一对比数据;
    所述根据所述第二数据库检索指令从所述第二数据库中提取出所述第二对比数据,包括:
    从所述第二数据库检索指令中提取出第二数据表名和第二列名;
    从所述第二数据库中导出与所述第二数据表名对应的第二数据表;
    从所述第二数据表中提取出与所述第二列名对应的第二对比数据。
  4. 如权利要求3所述的方法,其中,在所述从所述第一数据表中提取出与所述第一列名对应的第一对比数据,以及从所述第二数据表中提取出与所述第二列名对应的第二对比数据之后,所述方法还包括:     判断所述第一列名和所述第二列名是否一致;
    若判定出所述第一列名和所述第二列名一致,执行所述分析所述第一对比数据和所述第二对比数据之间的差异信息的步骤;若判定出所述第一列名和所述第二列名不一致,返回指示数据库检索指令有误的所述提示信息。
  5. 如权利要求4所述的方法,其中,在所述判定出所述第一列名和所述第二列名一致之后,以及在所述分析所述第一对比数据和所述第二对比数据之间的差异信息之前,所述方法还包括:     针对所述第一对比数据所包含的任一第一行名,从所述第一对比数据中提取出对应于所述第一行名的值;
    将所述第一行名和所述对应于所述第一行名的值添加到第一对比列表;
    以及,针对所述第二对比数据所包含的任一第二行名,从所述第二对比数据中提取出对应于所述第二行名的值;
    将所述第二行名和所述对应于所述第二行名的值添加到第二对比列表。
  6. 如权利要求5所述的方法,其中,所述分析所述第一对比数据和所述第二对比数据之间的差异信息,包括:
    从所述第一对比列表中提取出第一行名列表;
    以及,从所述第二对比列表中提取出第二行名列表;
    若所述第一行名列表的第一元素个数大于所述第二行名列表的第二元素个数,将所述第一行名列表作为目标遍历列表;若所述第一元素个数小于或等于所述第二元素个数,将所述第二行名列表作为目标遍历列表;
    针对所述目标遍历列表的任一目标行名,判断所述第一对比列表中对应于所述目标行名的第一目标值是否与所述第二对比列表中对应于所述目标行名的第二目标值相同;
    若不相同,将所述目标行名、所述第一目标值和所述第二目标值添加至差异信息列表中,以获得所述差异信息列表的所有信息作为所述第一对比数据与所述第二对比数据之间的差异信息。
  7. 如权利要求6所述的方法,所述方法包括: 
    针对所述目标遍历列表的任一目标行名,若在所述第一对比列表或者所述第二对比列表中不存在所述目标行名,将所述目标行名添加至所述差异信息列表中,以获得所述差异信息列表的所有信息作为所述第一对比数据与所述第二对比数据之间的差异信息。
  8. 一种自动化数据对比装置,包括:
    接收单元,用于接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,所述第一数据库检索指令用于从第一数据库中提取出第一对比数据,所述第二数据库检索指令用于从第二数据库中提取出第二对比数据;
    提取单元,用于根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据;以及,根据所述第二数据库检索指令从所述第二数据库中提取出所述第二对比数据;
    分析单元,用于分析所述第一对比数据和所述第二对比数据之间的差异信息;
    生成单元,用于根据分析得到的所述差异信息生成对比结果。
  9. 如权利要求8所述的装置,所述装置还包括:
    提取单元,用于从所述第一数据库检索指令中提取出第一数据库名称;以及,从所述第二数据库检索指令中提取出第二数据库名称;
    判断单元,用于判断自动化数据对比装置是否与对应于所述第一数据库名称的所述第一数据库建立连接;以及,判断所述自动化数据对比装置是否与对应于所述第二数据库名称的所述第二数据库建立连接;
    提取单元,用于在所述自动化数据对比装置与所述第一数据库建立连接,并且所述自动化数据对比装置与所述第二数据库建立连接时,执行所述根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据的步骤;
    提示单元,用于在所述自动化数据对比装置与所述第一数据库未能建立连接,或者所述自动化数据对比装置与所述第二数据库未能建立连接时,返回指示连接失败的提示信息。
  10. 如权利要求9所述的装置,其中,所述提取单元包括:
    数据表提取单元,用于从所述第一数据库检索指令中提取出第一数据表名和第一列名;以及从所述第二数据库检索指令中提取出第二数据表名和第二列名;
    数据库导出单元,用于从所述第一数据库中导出与所述第一数据表名对应的第一数据表;以及从所述第二数据库中导出与所述第二数据表名对应的第二数据表;
    对比数据提取单元,用于从所述第一数据表中提取出与所述第一列名对应的第一对比数据;以及从所述第二数据表中提取出与所述第二列名对应的第二对比数据。
  11. 如权利要求10所述的装置,其中,所述提取单元还包括:
    列表判断单元,用于判断所述第一列名和所述第二列名是否一致;
    列表判断执行单元,用于在判定出所述第一列名和所述第二列名一致时,执行所述分析所述第一对比数据和所述第二对比数据之间的差异信息的步骤;在判定出所述第一列名和所述第二列名不一致时,返回指示数据库检索指令有误的所述提示信息。
  12. 如权利要求11所述的装置,其中,所述列表判断执行单元包括:
    第一行名提取单元,用于针对所述第一对比数据所包含的任一第一行名,从所述第一对比数据中提取出对应于所述第一行名的值;以及将所述第一行名和所述对应于所述第一行名的值添加到第一对比列表;
    第二行名提取单元,用于针对所述第二对比数据所包含的任一第二行名,从所述第二对比数据中提取出对应于所述第二行名的值;以及将所述第二行名和所述对应于所述第二行名的值添加到第二对比列表。
  13. 如权利要求12所述的装置,其中,所述分析单元包括:
    行名列表提取单元,用于从所述第一对比列表中提取出第一行名列表;以及,从所述第二对比列表中提取出第二行名列表;
    目标遍历列表确定单元,用于在所述第一行名列表的第一元素个数大于所述第二行名列表的第二元素个数时,将所述第一行名列表作为目标遍历列表;在所述第一元素个数小于或等于所述第二元素个数时,将所述第二行名列表作为目标遍历列表;
    目标值判断单元,用于针对所述目标遍历列表的任一目标行名,判断所述第一对比列表中对应于所述目标行名的第一目标值是否与所述第二对比列表中对应于所述目标行名的第二目标值相同;
    差异信息列表添加单元,用于在所述目标判断单元判段为不相同时,将所述目标行名、所述第一目标值和所述第二目标值添加至差异信息列表中,以获得所述差异信息列表的所有信息作为所述第一对比数据与所述第二对比数据之间的差异信息。
  14. 如权利要求13所述的装置,所述装置还包括:
        差异信息获取单元,用于针对所述目标遍历列表的任一目标行名,若在所述第一对比列表或者所述第二对比列表中不存在所述目标行名,将所述目标行名添加至所述差异信息列表中,以获得所述差异信息列表的所有信息作为所述第一对比数据与所述第二对比数据之间的差异信息。
  15. 一种电子设备,包括:
    处理器;
    及存储器,所述存储器上存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,所述处理器配置为实现以下步骤:
    接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,所述第一数据库检索指令用于从第一数据库中提取出第一对比数据,所述第二数据库检索指令用于从第二数据库中提取出第二对比数据;
    根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据;
    以及,根据所述第二数据库检索指令从所述第二数据库中提取出所述第二对比数据;
    分析所述第一对比数据和所述第二对比数据之间的差异信息;
    根据分析得到的所述差异信息生成对比结果。
  16. 如权利要求15所述的电子设备,其中,在所述接收用户输入的第一数据库检索指令和第二数据库检索指令之后,所述处理器还配置为实现以下步骤:
    从所述第一数据库检索指令中提取出第一数据库名称;
    以及,从所述第二数据库检索指令中提取出第二数据库名称;
    判断自动化数据对比装置是否与对应于所述第一数据库名称的所述第一数据库建立连接;
    以及,判断所述自动化数据对比装置是否与对应于所述第二数据库名称的所述第二数据库建立连接;
    若所述自动化数据对比装置与所述第一数据库建立连接,并且所述自动化数据对比装置与所述第二数据库建立连接,执行所述根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据的步骤;
    若所述自动化数据对比装置与所述第一数据库未能建立连接,或者所述自动化数据对比装置与所述第二数据库未能建立连接,返回指示连接失败的提示信息。
  17. 如权利要求16所述的电子设备,其中,所述第一数据库为HBase数据库,所述第二数据库为Oracle数据库;所述根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据,所述处理器配置为实现以下步骤:
    从所述第一数据库检索指令中提取出第一数据表名和第一列名;
    从所述第一数据库中导出与所述第一数据表名对应的第一数据表;
    从所述第一数据表中提取出与所述第一列名对应的第一对比数据;
    所述根据所述第二数据库检索指令从所述第二数据库中提取出所述第二对比数据,包括:
    从所述第二数据库检索指令中提取出第二数据表名和第二列名;
    从所述第二数据库中导出与所述第二数据表名对应的第二数据表;
    从所述第二数据表中提取出与所述第二列名对应的第二对比数据。
  18. 如权利要求17所述的电子设备,其中,在所述从所述第一数据表中提取出与所述第一列名对应的第一对比数据,以及从所述第二数据表中提取出与所述第二列名对应的第二对比数据之后,所述处理器还配置为实现以下步骤:
    判断所述第一列名和所述第二列名是否一致;
    若判定出所述第一列名和所述第二列名一致,执行所述分析所述第一对比数据和所述第二对比数据之间的差异信息的步骤;若判定出所述第一列名和所述第二列名不一致,返回指示数据库检索指令有误的所述提示信息。
  19. 如权利要求18所述的电子设备,其中,在所述判定出所述第一列名和所述第二列名一致之后,以及在所述分析所述第一对比数据和所述第二对比数据之间的差异信息之前,所述处理器还配置为实现以下步骤:
    针对所述第一对比数据所包含的任一第一行名,从所述第一对比数据中提取出对应于所述第一行名的值;
    将所述第一行名和所述对应于所述第一行名的值添加到第一对比列表;
    以及,针对所述第二对比数据所包含的任一第二行名,从所述第二对比数据中提取出对应于所述第二行名的值;
    将所述第二行名和所述对应于所述第二行名的值添加到第二对比列表。
  20. 如权利要求19所述的电子设备,其中,所述分析所述第一对比数据和所述第二对比数据之间的差异信息,所述处理器配置为实现以下步骤:
    从所述第一对比列表中提取出第一行名列表;
    以及,从所述第二对比列表中提取出第二行名列表;
    若所述第一行名列表的第一元素个数大于所述第二行名列表的第二元素个数,将所述第一行名列表作为目标遍历列表;若所述第一元素个数小于或等于所述第二元素个数,将所述第二行名列表作为目标遍历列表;
    针对所述目标遍历列表的任一目标行名,判断所述第一对比列表中对应于所述目标行名的第一目标值是否与所述第二对比列表中对应于所述目标行名的第二目标值相同;
    若不相同,将所述目标行名、所述第一目标值和所述第二目标值添加至差异信息列表中,以获得所述差异信息列表的所有信息作为所述第一对比数据与所述第二对比数据之间的差异信息。
  21. 如权利要求20所述的电子设备,所述处理器还配置为实现以下步骤:
    针对所述目标遍历列表的任一目标行名,若在所述第一对比列表或者所述第二对比列表中不存在所述目标行名,将所述目标行名添加至所述差异信息列表中,以获得所述差异信息列表的所有信息作为所述第一对比数据与所述第二对比数据之间的差异信息。
  22. 一种计算机非易失性可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,所述处理器配置为实现以下步骤:
    接收用户输入的第一数据库检索指令和第二数据库检索指令;其中,所述第一数据库检索指令用于从第一数据库中提取出第一对比数据,所述第二数据库检索指令用于从第二数据库中提取出第二对比数据;
    根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据;
    以及,根据所述第二数据库检索指令从所述第二数据库中提取出所述第二对比数据;
    分析所述第一对比数据和所述第二对比数据之间的差异信息;
    根据分析得到的所述差异信息生成对比结果。
  23. 如权利要求22所述的计算机非易失性可读存储介质,其中,在所述接收用户输入的第一数据库检索指令和第二数据库检索指令之后,所述处理器还配置为实现以下步骤:
    从所述第一数据库检索指令中提取出第一数据库名称;
    以及,从所述第二数据库检索指令中提取出第二数据库名称;
    判断自动化数据对比装置是否与对应于所述第一数据库名称的所述第一数据库建立连接;
    以及,判断所述自动化数据对比装置是否与对应于所述第二数据库名称的所述第二数据库建立连接;
    若所述自动化数据对比装置与所述第一数据库建立连接,并且所述自动化数据对比装置与所述第二数据库建立连接,执行所述根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据的步骤;
    若所述自动化数据对比装置与所述第一数据库未能建立连接,或者所述自动化数据对比装置与所述第二数据库未能建立连接,返回指示连接失败的提示信息。
  24. 如权利要求23所述的计算机非易失性可读存储介质,其中,所述第一数据库为HBase数据库,所述第二数据库为Oracle数据库;所述根据所述第一数据库检索指令从所述第一数据库中提取出所述第一对比数据,所述处理器配置为实现以下步骤:
    从所述第一数据库检索指令中提取出第一数据表名和第一列名;
    从所述第一数据库中导出与所述第一数据表名对应的第一数据表;
    从所述第一数据表中提取出与所述第一列名对应的第一对比数据;
    所述根据所述第二数据库检索指令从所述第二数据库中提取出所述第二对比数据,包括:
    从所述第二数据库检索指令中提取出第二数据表名和第二列名;
    从所述第二数据库中导出与所述第二数据表名对应的第二数据表;
    从所述第二数据表中提取出与所述第二列名对应的第二对比数据。
  25. 如权利要求24所述的计算机非易失性可读存储介质,其中,在所述从所述第一数据表中提取出与所述第一列名对应的第一对比数据,以及从所述第二数据表中提取出与所述第二列名对应的第二对比数据之后,所述处理器还配置为实现以下步骤:
    判断所述第一列名和所述第二列名是否一致;
    若判定出所述第一列名和所述第二列名一致,执行所述分析所述第一对比数据和所述第二对比数据之间的差异信息的步骤;若判定出所述第一列名和所述第二列名不一致,返回指示数据库检索指令有误的所述提示信息。
  26. 如权利要求25所述的计算机非易失性可读存储介质,其中,在所述判定出所述第一列名和所述第二列名一致之后,以及在所述分析所述第一对比数据和所述第二对比数据之间的差异信息之前,所述处理器还配置为实现以下步骤:
    针对所述第一对比数据所包含的任一第一行名,从所述第一对比数据中提取出对应于所述第一行名的值;
    将所述第一行名和所述对应于所述第一行名的值添加到第一对比列表;
    以及,针对所述第二对比数据所包含的任一第二行名,从所述第二对比数据中提取出对应于所述第二行名的值;
    将所述第二行名和所述对应于所述第二行名的值添加到第二对比列表。
  27. 如权利要求26所述的计算机非易失性可读存储介质,其中,所述分析所述第一对比数据和所述第二对比数据之间的差异信息,所述处理器配置为实现以下步骤:
    从所述第一对比列表中提取出第一行名列表;
    以及,从所述第二对比列表中提取出第二行名列表;
    若所述第一行名列表的第一元素个数大于所述第二行名列表的第二元素个数,将所述第一行名列表作为目标遍历列表;若所述第一元素个数小于或等于所述第二元素个数,将所述第二行名列表作为目标遍历列表;
    针对所述目标遍历列表的任一目标行名,判断所述第一对比列表中对应于所述目标行名的第一目标值是否与所述第二对比列表中对应于所述目标行名的第二目标值相同;
    若不相同,将所述目标行名、所述第一目标值和所述第二目标值添加至差异信息列表中,以获得所述差异信息列表的所有信息作为所述第一对比数据与所述第二对比数据之间的差异信息。
  28. 如权利要求27所述的计算机非易失性可读存储介质,所述处理器还配置为实现以下步骤:
    针对所述目标遍历列表的任一目标行名,若在所述第一对比列表或者所述第二对比列表中不存在所述目标行名,将所述目标行名添加至所述差异信息列表中,以获得所述差异信息列表的所有信息作为所述第一对比数据与所述第二对比数据之间的差异信息。
PCT/CN2019/117676 2019-03-18 2019-11-12 自动化数据对比方法及装置、电子设备、计算机非易失性可读存储介质 WO2020186782A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910203329.0A CN110069571A (zh) 2019-03-18 2019-03-18 一种自动化数据对比方法及装置、电子设备
CN201910203329.0 2019-03-18

Publications (1)

Publication Number Publication Date
WO2020186782A1 true WO2020186782A1 (zh) 2020-09-24

Family

ID=67365306

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117676 WO2020186782A1 (zh) 2019-03-18 2019-11-12 自动化数据对比方法及装置、电子设备、计算机非易失性可读存储介质

Country Status (2)

Country Link
CN (1) CN110069571A (zh)
WO (1) WO2020186782A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069571A (zh) * 2019-03-18 2019-07-30 平安普惠企业管理有限公司 一种自动化数据对比方法及装置、电子设备
CN111078738B (zh) * 2019-11-25 2023-08-15 泰康保险集团股份有限公司 数据处理方法、装置、电子设备和存储介质
CN111241047B (zh) * 2020-04-26 2020-08-21 北京信安世纪科技股份有限公司 一种文件同步方法及装置
CN115905273B (zh) * 2022-11-10 2023-09-26 贝壳找房(北京)科技有限公司 一种数仓表中的数据检测方法、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103733633A (zh) * 2011-05-12 2014-04-16 索林科集团 视频分析系统
US20150006521A1 (en) * 2013-07-01 2015-01-01 National Yunlin University Of Science And Technology Text abstract editing system, text abstract scoring system and method thereof
US20170091228A1 (en) * 2013-03-26 2017-03-30 Google Inc. Method and system for reading consistent data from a multi-master replicated database
CN109408520A (zh) * 2018-09-26 2019-03-01 青岛农业大学 一种法律在线更新方法、系统、设备及计算机程序产品
CN109446417A (zh) * 2018-10-12 2019-03-08 武汉朴琢知识产权咨询服务有限公司 一种智能化检索方法和装置
CN110069571A (zh) * 2019-03-18 2019-07-30 平安普惠企业管理有限公司 一种自动化数据对比方法及装置、电子设备

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528674B (zh) * 2016-10-31 2019-10-01 厦门服云信息科技有限公司 基于Hbase行健的高性能查询方法和装置
CN106682139B (zh) * 2016-12-19 2019-09-13 深圳盒子信息科技有限公司 一种基于Solr实现HBase多条件查询的方法及系统
CN106599300B (zh) * 2016-12-28 2020-06-30 中国建设银行股份有限公司 一种分布式系统数据库结构对比方法和装置
CN107679054B (zh) * 2017-06-12 2019-11-05 平安科技(深圳)有限公司 数据比对方法、装置及可读存储介质
US10621032B2 (en) * 2017-06-22 2020-04-14 Uber Technologies, Inc. Checksum tree generation for improved data accuracy verification
CN107688664B (zh) * 2017-09-25 2020-04-03 平安科技(深圳)有限公司 图表生成方法、装置、计算机设备和存储介质
CN107818412B (zh) * 2017-10-18 2021-04-27 福州大学 一种基于MapReduce的大规模公交乘客OD并行计算方法
CN107784102A (zh) * 2017-10-27 2018-03-09 中国电子科技集团公司第二十八研究所 一种基于Oracle数据库的数据差异比较方法
CN108304522A (zh) * 2018-01-25 2018-07-20 深圳市买买提信息科技有限公司 一种数据库之间差异的比对方法、装置及终端设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103733633A (zh) * 2011-05-12 2014-04-16 索林科集团 视频分析系统
US20170091228A1 (en) * 2013-03-26 2017-03-30 Google Inc. Method and system for reading consistent data from a multi-master replicated database
US20150006521A1 (en) * 2013-07-01 2015-01-01 National Yunlin University Of Science And Technology Text abstract editing system, text abstract scoring system and method thereof
CN109408520A (zh) * 2018-09-26 2019-03-01 青岛农业大学 一种法律在线更新方法、系统、设备及计算机程序产品
CN109446417A (zh) * 2018-10-12 2019-03-08 武汉朴琢知识产权咨询服务有限公司 一种智能化检索方法和装置
CN110069571A (zh) * 2019-03-18 2019-07-30 平安普惠企业管理有限公司 一种自动化数据对比方法及装置、电子设备

Also Published As

Publication number Publication date
CN110069571A (zh) 2019-07-30

Similar Documents

Publication Publication Date Title
WO2020186782A1 (zh) 自动化数据对比方法及装置、电子设备、计算机非易失性可读存储介质
TWI550417B (zh) 資料遷移方法及裝置
WO2020233053A1 (zh) 一种制作测试页面脚本的方法、装置、设备及存储介质
US10241744B2 (en) Audio systems and related devices and methods
US9483386B2 (en) Information interaction test device and method based on automatic generation of associated test cases
US20140277651A1 (en) Audio Systems and Related Devices and Methods
US10013407B2 (en) Automated processing of transcripts, transcript designations, and/or video clip load files
WO2019056494A1 (zh) 图表生成方法、装置、计算机设备和存储介质
US9009175B2 (en) System and method for database migration and validation
WO2017063389A1 (zh) 文档生成方法和装置
WO2023029275A1 (zh) 数据关联分析方法、装置、计算机设备和存储介质
CN106294499A (zh) 一种数据库数据查询方法和设备
CN101174237B (zh) 一种自动化测试方法、系统及一种测试设备
CN111324609A (zh) 知识图谱构建方法、装置、电子设备及存储介质
WO2020258674A1 (zh) 脚本文件校验方法、装置、服务器及存储介质
CN102097015A (zh) 一种作业指导书处理系统及方法
WO2021017458A1 (zh) 图像识别的辅助处理方法、装置及系统
WO2020253069A1 (zh) 表格数据修改方法、装置、电子设备及存储介质
WO2020024201A1 (zh) 一种贴片程序检查方法,终端设备及计算机可读存储介质
CN111177119A (zh) 基于数据库的全量数据比对方法、装置、设备及存储介质
CN110377811A (zh) 一种设备名称的显示方法、装置、存储介质及电子设备
CN114116907A (zh) 一种数据库的同步方法、装置、电子设备和存储介质
CN110866003B (zh) 索引值数目的估算方法和装置以及电子设备
US11061906B2 (en) Join operations for hierarchical dimensions
JP2011209971A (ja) テスト支援装置、テスト支援システム、制御方法、プログラム、及び記録媒体

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19920026

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 21/01/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19920026

Country of ref document: EP

Kind code of ref document: A1