WO2020140645A1 - Abnormal data provision detection method and apparatus based on data migration, and terminal device - Google Patents

Abnormal data provision detection method and apparatus based on data migration, and terminal device Download PDF

Info

Publication number
WO2020140645A1
WO2020140645A1 PCT/CN2019/120598 CN2019120598W WO2020140645A1 WO 2020140645 A1 WO2020140645 A1 WO 2020140645A1 CN 2019120598 W CN2019120598 W CN 2019120598W WO 2020140645 A1 WO2020140645 A1 WO 2020140645A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
change
synchronized
supply process
supply
Prior art date
Application number
PCT/CN2019/120598
Other languages
French (fr)
Chinese (zh)
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 WO2020140645A1 publication Critical patent/WO2020140645A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • 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/22Indexing; Data structures therefor; Storage structures
    • 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/23Updating
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Definitions

  • the present application relates to the field of cloud storage technology, and in particular to a method, device and terminal device for detecting abnormal supply based on data migration.
  • the process of delivering the company's business data to the third-party platform generally includes: the data management system receives the data requirements of the third-party platform, extracts the company's business data according to the data requirements, and provides the extracted business data to the third party platform Tripartite platform.
  • the inventor realized that when some source tables are changed (such as adding and/or deleting table fields), if the relevant general business data officer is not notified in time, the data extraction will still follow the previous source table structure , Which directly affects the accuracy of business data obtained by third-party platforms.
  • the present application provides a method, device and terminal device for detecting abnormal supply based on data migration.
  • a method for detecting abnormal supply based on data migration includes:
  • An abnormal supply detection device including:
  • a scanning unit configured to determine whether there is a change table in the source table by scanning the source table and the hive table corresponding to each of the source tables; wherein, the table structure of the change table and the change table corresponding to the change table The table structure indicated by the hive table is inconsistent;
  • the determining unit is configured to use the target table corresponding to the change table as the target table to be synchronized when the change table exists; and use the supply process associated with the target table to be synchronized as the abnormal supply process;
  • the sending unit is configured to send prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
  • a terminal device, the terminal device includes:
  • a memory on which computer readable instructions are stored.
  • the computer readable instructions are executed by the processor, the method as described above is implemented.
  • a computer-readable storage medium that stores a computer program that causes a computer to perform the above-described abnormal migration detection method based on data migration.
  • the computer-readable storage medium may be a computer non-volatile storage medium.
  • This application monitors the changes of the source table by scanning the source table and the hive table corresponding to each source table, and in the case of a change in the source table, the relevant supply process is suspended in time to ensure the accuracy of the data in the supply process .
  • Fig. 1 is a schematic diagram of an apparatus for detecting abnormal supply according to an exemplary embodiment
  • Fig. 2 is a flow chart of a method for detecting abnormal supply based on data migration according to an exemplary embodiment
  • Fig. 3 is a flow chart of a method for detecting abnormal supply based on data migration according to another exemplary embodiment
  • Fig. 4 is a block diagram of an apparatus for detecting abnormal supply according to an exemplary embodiment
  • Fig. 5 is a block diagram of an apparatus for detecting abnormal supply according to another exemplary embodiment.
  • the implementation environment of the present application may be a portable terminal device, such as a smart phone, a tablet computer, or a desktop computer.
  • Fig. 1 is a schematic diagram of an apparatus for detecting abnormal supply according to an exemplary embodiment.
  • the abnormal supply count detection device 100 may be the above-mentioned portable terminal device.
  • the abnormal supply detection 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 operation of the abnormal supply detection device 100, such as operations associated with display, telephone call, data communication, camera operation, and recording operation.
  • the processing component 102 may include one or more processors 118 to execute instructions to complete all or part of the steps of the method described below.
  • the processing component 102 may include one or more modules for facilitating interaction between the processing component 102 and other components.
  • the processing component 102 may include a multimedia module to facilitate interaction between the multimedia component 108 and the processing component 102.
  • the memory 104 is configured to store various types of data to support the operation of the abnormality detection device 100. Examples of these data include instructions for any application program or method operating on the abnormal supply detection device 100.
  • the memory 104 may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (Static Random 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 Red-Only Memory (PROM), Read-Only Memory ( Read-Only Memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • the memory 104 further stores one or more modules for the one or more modules to be 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 supplies power to various components of the abnormal supply detection 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 abnormal supply detection device 100.
  • the multimedia component 108 includes a screen that provides an output interface between the abnormal supply detection device 100 and the user.
  • the screen may include a liquid crystal display (Liquid Crystal) (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, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or sliding action, but also detect the duration and pressure related to the touch or sliding 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 may 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 assembly 114 includes one or more sensors, which are used to provide various aspects of status assessment for the abnormal supply detection device 100.
  • the sensor assembly 114 can detect the on/off state of the abnormal supply detection device 100, the relative positioning of the components, and the sensor assembly 114 can also detect the position change of the abnormal supply detection device 100 or one component of the abnormal supply detection device 100 and The temperature of the abnormal feed detection device 100 changes.
  • the sensor assembly 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 abnormality detection device 100 and other devices.
  • the abnormal supply detection device 100 can access a wireless network based on a communication standard, such as WiFi (Wireless-Fidelity, wireless fidelity).
  • the communication component 116 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 116 further includes a Near Field Communication (NFC) module for facilitating short-range communication.
  • the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth technology and other technologies. .
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB Ultra Wideband
  • the abnormal supply detection device 100 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit (ASIC for short), digital signal processor, digital signal processing equipment, programmable logic device, field Programming gate arrays, controllers, microcontrollers, microprocessors, or other electronic components are implemented to perform the following methods.
  • ASIC Application Specific Integrated Circuit
  • Fig. 2 is a flow chart of a method for detecting abnormal supply based on data migration according to an exemplary embodiment. As shown in Figure 2, this method includes the following steps.
  • Step 201 by scanning the source table and the hive table corresponding to each source table, it is determined whether there is a change table in the source table, and if so, steps 202 to 205 are executed; if not, the process is ended.
  • the table structure of the change table and the table structure indicated by the hive table corresponding to the change table are inconsistent.
  • the specific description is as follows: the hive table corresponding to each source table stores the table structure of the active table (table name, field information, records, indexes, etc.), and the source table can be determined by scanning the source table and the hive table corresponding to the source table Whether there is a change table.
  • the specific implementation of determining whether there is a change table in the source table by scanning the source table and the hive table corresponding to the source table may be when there is a source table in the source table whose table structure is inconsistent with the table structure stored in the corresponding hive table , Use the source table as a change table, that is, a source table whose table structure does not match the table structure stored in its corresponding hive table, and continue to perform steps 202 to 205; and when each source table in the source table and its corresponding hive table are When the stored table structure is consistent, it is determined that there is no change table in the source table, and this flow is ended.
  • Step 202 Use the target table corresponding to the change table as the target table to be synchronized.
  • the embodiments of the present application implement data extraction based on kettle.
  • a target table corresponding to each source table, where the correspondence between the source table and the target table may be one-to-one
  • the relationship can also be a many-to-one relationship, that is, one source table can correspond to one target table, or multiple source tables can correspond to one target table.
  • the target table stores part or all of the field information of its corresponding source table. Kettle can realize the migration of source table data by automatically matching the field information of the source table and the target table.
  • Step 203 Use the supply process associated with the target table to be synchronized as the abnormal supply process.
  • step 203 before performing step 203, it may be determined whether a supply request sent by a third-party platform is received; when the supply request is received, the corresponding to the supply request is turned on Count process.
  • using the supply process associated with the target table to be synchronized as an abnormal supply process may include: searching for the supply process associated with the target table to be synchronized among the supply processes corresponding to the supply request;
  • the supply process associated with the target table to be synchronized is regarded as an abnormal supply process.
  • the exemplary embodiment searches the abnormal supply process based on the received supply request of the third-party platform, which can improve the search efficiency of the abnormal supply process.
  • Step 204 suspend the abnormal supply process.
  • Step 205 Send prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
  • the target table corresponding to the change table is used as the target table to be synchronized, and the supply process associated with the target table to be synchronized is suspended, and the target account is used for sending
  • the prompt message instructs the owner of the target account to update the target table to be synchronized.
  • step 201 may be executed periodically or in real time, which is not limited in the embodiments of the present application.
  • the source table and the hive table corresponding to each source table are scanned periodically or in real time to determine whether there is a change table in the source table, and when it is determined that there is a change table in the source table, the target table corresponding to the change table is marked , And when receiving the supply request of the third-party platform, determine whether the target table corresponding to the supply request is marked, and when the target table corresponding to the supply request is marked, it will be used to indicate the The information output of the supply process corresponding to the supply request fails to be opened; and when the target table corresponding to the supply request is not marked, the information output indicating that the supply process corresponding to the supply request is successfully started is output.
  • the scan result can also be obtained by comparing the change table and its corresponding hive table.
  • the information used to indicate that the supply process corresponding to the supply request is successfully started may include the scan result.
  • the target table associated with the supply request may be used as the supply table, and the supply table
  • the corresponding source table and hive table are used as the source table to be scanned and the hive table to be scanned, and by scanning the source table to be scanned and the hive table to be scanned, it is determined whether there is a change table in the source table to be scanned, and the source table to be scanned.
  • the change information for the change table is generated by comparing the source table to be scanned and the hive table to be scanned, and the change information is output so that the general business data officer can correspond to the change table in the scan source table based on the change information
  • the target table is updated.
  • the scan source table and the hive table to be scanned can be scanned in a targeted manner according to the indication of the supply request sent by the third-party platform, which can not only improve the
  • Fig. 3 is a flow chart showing a method for detecting abnormal supply based on data migration according to another exemplary embodiment. As shown in FIG. 3, in addition to the steps shown in FIG. 2, after step 204 and before step 205, the method for detecting abnormal supply based on data migration in this embodiment further includes the following steps:
  • Step 305 Determine the target job number from the general business data clerk registration form according to the current time point; wherein, the general business data clerk registration form records the work period and job number of each general business data clerk.
  • Step 306 Obtain registration information of the general service data clerk corresponding to the target job number.
  • the registration information includes at least the contact information of the general service data clerk corresponding to the target job number.
  • Step 307 Determine the target account according to the above contact information.
  • steps 301 to 304 and step 308 please refer to the description of steps 201 to 204 and step 205 in the method for detecting abnormal supply based on data migration shown in FIG. 2. Repeat again.
  • the above-mentioned contact method corresponding to the target job number may be one type or multiple types, which is not limited in the embodiment of the present application. If there are multiple contact methods corresponding to the target job number, and each contact method has a different priority level, optionally, in an exemplary embodiment, determining the target account according to the above contact methods may include: obtaining the above contact The priority level of each contact method in the method; the account corresponding to the contact method with the highest priority level among the above contact methods is determined as the target account.
  • the target account owner after sending the prompt information for instructing the target account owner to update the target table to be synchronized, it can also be determined whether the target account owner has detected The update operation of the synchronization target table, and when it is determined that the update operation of the target account owner for the target table to be synchronized is not detected, the target account is updated according to a preset rule.
  • the specific implementation method for updating the target account according to the preset rules is as follows: the contact method whose priority level is second only to the highest priority level among the above contact methods is used as the first target contact method, and the An account corresponding to a target contact method updates the target account, and when the update of the target account is completed and the update operation of the target account owner on the target table to be synchronized is not detected within the preset time period, the above contact method is prioritized The contact method with the level second only to the first target contact method is used as the second target contact method, and the target account is updated using the account corresponding to the second target contact method, and so on until all contact methods in the above contact method are traversed.
  • all contacts included in the above-mentioned contact method may be based on the priority level of the above-mentioned contact method
  • the traversal method can ensure the maximum update of the target account owner to the synchronization target table to the greatest extent.
  • the above contact method can be email, QQ, WeChat or SMS, etc.
  • the account corresponding to the above contact method can be an email account, a QQ account, a WeChat account or a mobile phone number.
  • Step 309 Generate table modification information for the target table to be synchronized according to the change table and the hive table corresponding to the change table.
  • the table change information generated for the target table to be synchronized generated according to the above change table and the hive table corresponding to the above change table is used to express the change of the table structure indicated by the change table compared to its corresponding hive table .
  • the table change information may be added field information, if the above change table is compared to its corresponding hive table If the indicated table structure deletes the field, then the table information can be the deleted field information.
  • Step 310 Update the hive table corresponding to the change table according to the table change information.
  • Step 311 Send the generated change table information to the target account.
  • the field in the synchronization target table that matches the above-mentioned change table can also be marked, and the target can be obtained based on the change information and the field in the marked target table to be synchronized Change information.
  • the target change information may include change field information of the target table to be synchronized.
  • the owner of the target account described above can implement a quick table change operation on the target table to be synchronized based on the target change information, further improving the efficiency and accuracy of the supply process.
  • Steps 309 to 311 can be executed, the hive table corresponding to the change table can be automatically updated according to the generated change table information for the target table to be synchronized, and the generated change table information can also be sent to the target account for use by the target account.
  • the update operation is performed on the target table to be synchronized, the update efficiency and accuracy of the target table to be synchronized can be improved.
  • step 311 after step 311 is executed, it may be detected whether a termination update instruction sent by the target account owner is received, and when it is detected that the termination update instruction is received, the abnormal supply is controlled.
  • the data process changes from the suspended state to the execution state.
  • controlling the above abnormal supply process to change from the suspended state to the execution state may include: when it is detected that the termination update instruction is received, acquiring the updated target table to be synchronized Table structure; determine whether the updated table structure of the target table to be synchronized matches the table structure of the changed table; when the updated table structure of the target table to be synchronized matches the table structure of the changed table, control the above-mentioned abnormal feed process Change from the suspended state to the execution state.
  • the method for determining whether the updated table structure of the target table to be synchronized matches the table structure of the change table may be to determine whether the field corresponding to the change table in the updated table structure of the target table to be synchronized is the same as the change table The fields in the match, if they match, the table structure of the updated target table to be synchronized matches the table structure of the change table, if they do not match, the table structure of the updated target table to be synchronized does not match the table structure of the change table .
  • the table structure of the updated target table to be synchronized and the table structure of the changed table can be compared when the termination update instruction sent by the above-mentioned target account owner is received, which can further ensure the supply of data Accuracy of data in progress.
  • the following is an embodiment of the abnormal supply detection device disclosed in the present application.
  • Fig. 4 is a block diagram of an apparatus for detecting abnormal supply according to an exemplary embodiment.
  • the abnormal supply detection device may include:
  • the scanning unit 401 is configured to determine whether there is a change table in the source table by scanning the source table and the hive table corresponding to each source table.
  • the table structure of the change table and the table structure indicated by the hive table corresponding to the change table are inconsistent.
  • the specific description is as follows: the hive table corresponding to each source table stores the table structure of the active table (table name, field information, record, index, etc.), and the scanning unit 401 can determine by scanning the source table and the hive table corresponding to the source table Whether the change table exists in the source table.
  • the scanning unit 401 determines that there is a source table in the source table whose table structure is inconsistent with the table structure stored in the corresponding hive table, the source table is used as a change table, that is, the table structure is inconsistent with the table structure stored in the corresponding hive table.
  • the scanning unit 401 determines that each source table in the source table is consistent with the table structure stored in the corresponding hive table, it determines that there is no change table in the source table.
  • the determining unit 402 is configured to, when there is the above-mentioned change table, use the target table corresponding to the above-mentioned change table as the target table to be synchronized; and use the supply process associated with the target table to be synchronized as the abnormal supply process.
  • the determining unit 402 may also be used to determine whether a supply request sent by a third-party platform is received before the supply process associated with the target table to be synchronized is regarded as an abnormal supply process , And when receiving the supply request, start the supply process corresponding to the supply request.
  • the determining unit 402 is configured to use the supply process associated with the target table to be synchronized as an abnormal supply process.
  • the determination unit 402 may be used to search for the supply process corresponding to the supply request.
  • the supply process associated with the target table to be synchronized and the found supply process associated with the target table to be synchronized are regarded as abnormal supply processes.
  • the exemplary embodiment searches the abnormal supply process based on the received supply request of the third-party platform, which can improve the search efficiency of the abnormal supply process.
  • the control unit 403 is used to perform a suspend operation on the abnormal supply process.
  • the sending unit 404 is configured to send prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
  • the target table corresponding to the change table is used as the target table to be synchronized, and the feed process associated with the target table to be synchronized is suspended and sent to the target account
  • the prompt information instructing the owner of the target account to update the target table to be synchronized can ensure the accuracy of the data in the supply process.
  • the scanning unit 401 scans the source table and the hive table corresponding to each source table to determine whether there is a change table in the source table, which may be executed periodically or in real time, which is not limited in the embodiments of the present application.
  • the scanning unit 401 scans the source table and the hive table corresponding to each source table periodically or in real time to determine whether there is a change table in the source table, and when it is determined that there is a change table in the source table, mark the target table corresponding to the change table, And when receiving the supply request of the third-party platform, determine whether the target table corresponding to the supply request is marked, and when the target table corresponding to the supply request is marked, it will be used to indicate the supply
  • the information output of the supply process corresponding to the supply request fails to be output; and when the target table corresponding to the supply request is not marked, a message output indicating that the supply process corresponding to the supply request is successfully started is output.
  • the scan result can also be obtained by comparing the change table and its corresponding hive table.
  • the information used to indicate that the supply process corresponding to the supply request is successfully started may include the scan result.
  • the scanning unit 401 can use the target table associated with the supply request as the supply table when receiving the supply request sent by the third-party platform, and the supply table
  • the corresponding source table and hive table are used as the source table to be scanned and the hive table to be scanned, and by scanning the source table to be scanned and the hive table to be scanned, it is determined whether there is a change table in the source table to be scanned, and the source table to be scanned.
  • the change information for the change table is generated by comparing the source table to be scanned and the hive table to be scanned, and the change information is output so that the general business data officer can correspond to the change table in the scan source table based on the change information
  • the target table is updated.
  • the scan source table and the hive table to be scanned can be scanned in a targeted manner according to the indication of the supply request sent by the third-party platform, which can not only improve the scanning
  • Fig. 5 is a block diagram of an apparatus for detecting abnormal supply according to another exemplary embodiment.
  • the abnormal supply detection device shown in FIG. 5 is optimized by the abnormal supply detection device shown in FIG. 4.
  • the above-mentioned control unit 403 can also be used to perform a suspend operation on the abnormal supply process and the sending unit. 405
  • the above-mentioned contact method corresponding to the target job number may be one type or multiple types, which is not limited in the embodiment of the present application. If there are multiple contact methods corresponding to the target job number, and each contact method has a different priority level, optionally, in an exemplary embodiment, the control unit 403 is configured to determine the target account according to the contact method Specifically, the control unit 403 may be used to obtain the priority level of each contact method in the contact method; and determine the account corresponding to the contact method with the highest priority level in the contact method as the target account.
  • the sending unit 404 can also determine whether the target account owner has detected the target to be synchronized within a preset time period. Table update operation, and when it is determined that the target account owner's update operation for the target table to be synchronized is not detected, the target account is updated according to the preset rules.
  • the specific implementation of the sending unit 404 to update the target account according to the preset rules is as follows:
  • the sending unit 404 uses the contact method whose priority level is second only to the highest priority level among the above contact methods as the first target Contact information, and use the account corresponding to the first target contact information to update the target account, and when the target account update is completed and the target account owner does not detect the update operation of the target table to be synchronized within the preset time, will
  • the priority level of the above contact method is second only to the contact method of the first target contact method as the second target contact method, and the target account is updated using the account corresponding to the second target contact method, and so on until all the above contact methods are traversed Contact information.
  • all contacts included in the above-mentioned contact method may be based on the priority level of the above-mentioned contact method
  • the traversal method can ensure the maximum update of the target account owner to the synchronization target table to the greatest extent.
  • the above contact method can be email, QQ, WeChat or SMS, etc.
  • the account corresponding to the above contact method can be an email account, a QQ account, a WeChat account or a mobile phone number.
  • the abnormal supply data detection device shown in FIG. 5 may further include:
  • the updating unit 405 is configured to generate table change information for the target table to be synchronized based on the change table and the hive table corresponding to the change table, and update the hive table corresponding to the change table according to the table change information, and send to the target account The table information.
  • step 309 in the method for detecting abnormal supply based on data migration shown in FIG. 3, which will not be repeated in the embodiment of the present application.
  • the updating unit 405 can automatically update the hive table corresponding to the change table according to the generated change table information for the target table to be synchronized, and can also send the generated change table information to the target account so that the target account owner is treating the synchronization target
  • the reference is used when the table is updated, which can improve the update efficiency and accuracy of the target table to be synchronized.
  • the updating unit 405 may also mark the fields in the synchronization target table that match the change table, and obtain the target change information according to the change information and the fields in the marked target table to be synchronized.
  • the target change information may include change field information of the target table to be synchronized.
  • the above-mentioned target account owner can implement a quick table replacement operation on the target table to be synchronized based on the target change information, thereby further improving the efficiency and accuracy of the supply process.
  • control unit 403 may also be used to detect whether a termination update instruction sent by the target account owner is received, and when detecting that the termination update instruction is received, control the abnormal supply process to transition from the suspended state It is the execution status.
  • the update unit 405 may also be used to send the activation instruction to the control unit 403 after the update table information is sent to the target account to activate the control unit 403.
  • control unit 403 is configured to control the transition of the abnormal supply process from the suspended state to the execution state when it is detected that the termination update instruction is received.
  • the control unit 403 may be used to detect When the update instruction is terminated, obtain the updated table structure of the target table to be synchronized; determine whether the updated table structure of the target table to be synchronized matches the table structure of the changed table; when the updated table structure of the target table to be synchronized When the table structure of the change table matches, the process of controlling the above-mentioned abnormal supply is changed from the suspended state to the executed state.
  • the method for determining whether the updated table structure of the target table to be synchronized matches the table structure of the change table may be to determine whether the field corresponding to the change table in the updated table structure of the target table to be synchronized is the same as the change table
  • the control unit 403 may compare the table structure of the updated target table to be synchronized with the table structure of the changed table when receiving the termination update instruction sent by the target account owner. To further ensure the accuracy of the data in the process of supplying data.
  • This application also provides a terminal device, which includes:
  • a memory in which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, an abnormal feed detection method based on data migration as described above is implemented.
  • the terminal device may be the abnormal supply detection device 100 shown in FIG. 1.
  • the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the abnormal supply data detection based on data migration as described above is realized method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are an abnormal data provision detection method and apparatus based on data migration, and a terminal device, which relate to the technical field of cloud storage. The method comprises: by means of scanning source tables and a hive table corresponding to each of the source tables, determining whether there is a change table in each of the source tables; and when there is a change table, taking a target table corresponding to the change table as a target table to be synchronized, taking a data provision process associated with the target table to be synchronized as an abnormal data provision process, executing a suspend operation on the abnormal data provision process, and sending, to a target account, prompt information for instructing a target account owner to update the target table to be synchronized. By means of implementing the method, the accuracy of data provision can be ensured.

Description

一种基于数据迁移的异常供数检测方法、装置及终端设备Method, device and terminal equipment for detecting abnormal supply data based on data migration
本申请要求于2019年01月03日提交中国专利局、申请号为201910003213.2、申请名称为“一种基于数据迁移的异常供数检测方法、装置及终端设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application submitted to the China Patent Office on January 03, 2019, with the application number 201910003213.2 and the application name as "a method, device and terminal equipment for abnormal supply detection based on data migration." The entire contents are incorporated by reference in this application.
技术领域Technical field
本申请涉及云存储技术领域,特别涉及一种基于数据迁移的异常供数检测方法、装置及终端设备。The present application relates to the field of cloud storage technology, and in particular to a method, device and terminal device for detecting abnormal supply based on data migration.
背景技术Background technique
目前,将公司的业务数据交付于第三方平台的流程大体包括:数据管理系统接收第三方平台的数据需求,并根据数据需求对公司的业务数据进行抽取,以及将所抽取的业务数据提供给第三方平台。在实践中,发明人意识到,当某些源表变更(如增加和/或删除表字段)时,若未及时通知到相关总业务数据员,往往会使得数据抽取依然按照之前的源表结构,从而直接影响第三方平台获得的业务数据的准确性。At present, the process of delivering the company's business data to the third-party platform generally includes: the data management system receives the data requirements of the third-party platform, extracts the company's business data according to the data requirements, and provides the extracted business data to the third party platform Tripartite platform. In practice, the inventor realized that when some source tables are changed (such as adding and/or deleting table fields), if the relevant general business data officer is not notified in time, the data extraction will still follow the previous source table structure , Which directly affects the accuracy of business data obtained by third-party platforms.
发明内容Summary of the invention
为了解决现有数据管理系统中供数不准确的技术问题,本申请提供了一种基于数据迁移的异常供数检测方法、装置及终端设备。In order to solve the technical problem of inaccurate supply in the existing data management system, the present application provides a method, device and terminal device for detecting abnormal supply based on data migration.
一种基于数据迁移的异常供数检测方法,所述方法包括:A method for detecting abnormal supply based on data migration, the method includes:
通过扫描源表和每一所述源表对应的hive表,判断所述源表中是否存在变更表;其中,所述变更表的表结构和所述变更表对应的所述hive表所指示的表结构不一致;Scan the source table and the hive table corresponding to each of the source tables to determine whether there is a change table in the source table; wherein, the table structure of the change table and the hive table corresponding to the change table indicate The table structure is inconsistent;
当存在所述变更表时,将所述变更表对应的目标表作为待同步目标表;When the change table exists, use the target table corresponding to the change table as the target table to be synchronized;
将所述待同步目标表关联的供数进程作为异常供数进程;Use the supply process associated with the target table to be synchronized as an abnormal supply process;
对所述异常供数进程执行挂起操作;Perform a suspend operation on the abnormal supply process;
向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息。Sending prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
一种异常供数检测装置,包括:An abnormal supply detection device, including:
扫描单元,用于通过扫描源表和每一所述源表对应的hive表,判断所述源表中是否存在变更表;其中,所述变更表的表结构和所述变更表对应的所述hive表所指示的表结构不一致;A scanning unit, configured to determine whether there is a change table in the source table by scanning the source table and the hive table corresponding to each of the source tables; wherein, the table structure of the change table and the change table corresponding to the change table The table structure indicated by the hive table is inconsistent;
确定单元,用于当存在所述变更表时,将所述变更表对应的目标表作为待 同步目标表;以及将所述待同步目标表关联的供数进程作为异常供数进程;The determining unit is configured to use the target table corresponding to the change table as the target table to be synchronized when the change table exists; and use the supply process associated with the target table to be synchronized as the abnormal supply process;
控制单元,用于对所述异常供数进程执行挂起操作;A control unit for performing a suspend operation on the abnormal supply process;
发送单元,用于向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息。The sending unit is configured to send prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
一种终端设备,所述终端设备包括:A terminal device, the terminal device includes:
处理器;processor;
存储器,所述存储器上存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,实现如前所述的方法。A memory, on which computer readable instructions are stored. When the computer readable instructions are executed by the processor, the method as described above is implemented.
一种计算机可读存储介质,其存储计算机程序,所述计算机程序使得计算机执行上述的基于数据迁移的异常供数检测方法。可选的,该计算机可读存储介质可以是计算机非易失性可读存储介质。A computer-readable storage medium that stores a computer program that causes a computer to perform the above-described abnormal migration detection method based on data migration. Optionally, the computer-readable storage medium may be a computer non-volatile storage medium.
本申请的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present application may include the following beneficial effects:
本申请通过扫描源表和每一源表对应的hive表对源表的变更进行监控,以及在源表发生变更的情况下,及时暂停有关供数进程,可以保证供数进程中数据的准确性。This application monitors the changes of the source table by scanning the source table and the hive table corresponding to each source table, and in the case of a change in the source table, the relevant supply process is suspended in time to ensure the accuracy of the data in the supply process .
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本申请。It should be understood that the above general description and the following detailed description are only exemplary and do not limit the present application.
附图说明BRIEF DESCRIPTION
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并于说明书一起用于解释本申请的原理。The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments consistent with the application, and are used together with the specification to explain the principles of the application.
图1是根据一示例性实施例示出的一种异常供数检测装置的示意图;Fig. 1 is a schematic diagram of an apparatus for detecting abnormal supply according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种基于数据迁移的异常供数检测方法的流程图;Fig. 2 is a flow chart of a method for detecting abnormal supply based on data migration according to an exemplary embodiment;
图3是根据另一示例性实施例示出的一种基于数据迁移的异常供数检测方法的流程图;Fig. 3 is a flow chart of a method for detecting abnormal supply based on data migration according to another exemplary embodiment;
图4是根据一示例性实施例示出的一种异常供数检测装置的框图;Fig. 4 is a block diagram of an apparatus for detecting abnormal supply according to an exemplary embodiment;
图5是根据另一示例性实施例示出的一种异常供数检测装置的框图。Fig. 5 is a block diagram of an apparatus for detecting abnormal supply according to another exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例执行说明,其示例表示在附图中。Here, a description will be given of the exemplary embodiments in detail, examples of which are shown in the drawings.
本申请的实施环境可以是便携终端设备,例如智能手机、平板电脑、台式电脑。图1是根据一示例性实施例示出的一种异常供数检测装置的示意图。异常供数检测装置100可以是上述便携终端设备。如图1所示,异常供数检测装 置100可以包括以下一个或多个组件:处理组件102,存储器104,电源组件106,多媒体组件108,音频组件110,传感器组件114以及通信组件116。The implementation environment of the present application may be a portable terminal device, such as a smart phone, a tablet computer, or a desktop computer. Fig. 1 is a schematic diagram of an apparatus for detecting abnormal supply according to an exemplary embodiment. The abnormal supply count detection device 100 may be the above-mentioned portable terminal device. As shown in FIG. 1, the abnormal supply detection 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.
处理组件102通常控制异常供数检测装置100的整体操作,诸如与显示,电话呼叫,数据通信,相机操作以及记录操作相关联的操作等。处理组件102可以包括一个或多个处理器118来执行指令,以完成下述的方法的全部或部分步骤。此外,处理组件102可以包括一个或多个模块,用于便于处理组件102和其他组件之间的交互。例如,处理组件102可以包括多媒体模块,用于以方便多媒体组件108和处理组件102之间的交互。The processing component 102 generally controls the overall operation of the abnormal supply detection device 100, such as operations associated with display, telephone call, data communication, camera operation, and recording operation. The processing component 102 may include one or more processors 118 to execute instructions to complete all or part of the steps of the method described below. In addition, the processing component 102 may include one or more modules for facilitating interaction between the processing component 102 and other components. For example, the processing component 102 may include a multimedia module to facilitate interaction between the multimedia component 108 and the processing component 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执行,以完成如下所示方法中的全部或者部分步骤。The memory 104 is configured to store various types of data to support the operation of the abnormality detection device 100. Examples of these data include instructions for any application program or method operating on the abnormal supply detection device 100. The memory 104 may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (Static Random 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 Red-Only Memory (PROM), Read-Only Memory ( Read-Only Memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The memory 104 further stores one or more modules for the one or more modules to be configured to be executed by the one or more processors 118 to complete all or part of the steps in the method shown below.
电源组件106为异常供数检测装置100的各种组件提供电力。电源组件106可以包括电源管理系统,一个或多个电源,及其他与为异常供数检测装置100生成、管理和分配电力相关联的组件。The power supply component 106 supplies power to various components of the abnormal supply detection 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 abnormal supply detection device 100.
多媒体组件108包括在异常供数检测装置100和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(Liquid Crystal Display,简称LCD)和触摸面板。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。屏幕还可以包括有机电致发光显示器(Organic Light Emitting Display,简称OLED)。The multimedia component 108 includes a screen that provides an output interface between the abnormal supply detection device 100 and the user. In some embodiments, the screen may include a liquid crystal display (Liquid Crystal) (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, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or sliding action, but also detect the duration and pressure related to the touch or sliding operation. The screen may also include an organic electroluminescence display (Organic Light Emitting Display, OLED for short).
音频组件110被配置为输出和/或输入音频信号。例如,音频组件110包括一个麦克风(Microphone,简称MIC),当异常供数检测装置100处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器104或经由通信组件116发送。在一些实施例中,音频组件110还包括一个扬声器,用于输出音频 信号。The audio component 110 is configured to output and/or input audio signals. For example, the audio component 110 includes a microphone (Microphone, MIC for short). When the abnormality detection device 100 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in the memory 104 or sent via the communication component 116. In some embodiments, the audio component 110 further includes a speaker for outputting audio signals.
传感器组件114包括一个或多个传感器,用于为异常供数检测装置100提供各个方面的状态评估。例如,传感器组件114可以检测到异常供数检测装置100的打开/关闭状态,组件的相对定位,传感器组件114还可以检测异常供数检测装置100或异常供数检测装置100一个组件的位置改变以及异常供数检测装置100的温度变化。在一些实施例中,该传感器组件114还可以包括磁传感器,压力传感器或温度传感器。The sensor assembly 114 includes one or more sensors, which are used to provide various aspects of status assessment for the abnormal supply detection device 100. For example, the sensor assembly 114 can detect the on/off state of the abnormal supply detection device 100, the relative positioning of the components, and the sensor assembly 114 can also detect the position change of the abnormal supply detection device 100 or one component of the abnormal supply detection device 100 and The temperature of the abnormal feed detection device 100 changes. In some embodiments, the sensor assembly 114 may also include a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件116被配置为便于异常供数检测装置100和其他设备之间有线或无线方式的通信。异常供数检测装置100可以接入基于通信标准的无线网络,如WiFi(Wireless-Fidelity,无线保真)。在一个示例性实施例中,通信组件116经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件116还包括近场通信(Near Field Communication,简称NFC)模块,用于以促进短程通信。例如,在NFC模块可基于射频识别(Radio Frequency Identification,简称RFID)技术,红外数据协会(Infrared Data Association,简称IrDA)技术,超宽带(Ultra Wideband,简称UWB)技术,蓝牙技术和其他技术来实现。The communication component 116 is configured to facilitate wired or wireless communication between the abnormality detection device 100 and other devices. The abnormal supply detection device 100 can access a wireless network based on a communication standard, such as WiFi (Wireless-Fidelity, wireless fidelity). In an exemplary embodiment, the communication component 116 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 116 further includes a Near Field Communication (NFC) module for facilitating short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth technology and other technologies. .
在示例性实施例中,异常供数检测装置100可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,简称ASIC)、数字信号处理器、数字信号处理设备、可编程逻辑器件、现场可编程门阵列、控制器、微控制器、微处理器或其他电子元件实现,用于执行下述方法。In an exemplary embodiment, the abnormal supply detection device 100 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit (ASIC for short), digital signal processor, digital signal processing equipment, programmable logic device, field Programming gate arrays, controllers, microcontrollers, microprocessors, or other electronic components are implemented to perform the following methods.
图2是根据一示例性实施例示出的一种基于数据迁移的异常供数检测方法的流程图。如图2所示,此方法包括以下步骤。Fig. 2 is a flow chart of a method for detecting abnormal supply based on data migration according to an exemplary embodiment. As shown in Figure 2, this method includes the following steps.
步骤201,通过扫描源表和每一源表对应的hive表,判断源表中是否存在变更表,如果是,执行步骤202~步骤205;如果否,结束本流程。 Step 201, by scanning the source table and the hive table corresponding to each source table, it is determined whether there is a change table in the source table, and if so, steps 202 to 205 are executed; if not, the process is ended.
在本申请实施例中,变更表的表结构和变更表对应的hive表所指示的表结构不一致。具体描述如下:每一源表对应的hive表中存储有源表的表结构(表名、字段信息、记录以及索引等),通过扫描源表和源表对应的hive表可以判断出源表中是否存在变更表。其中,通过扫描源表和源表对应的hive表判断源表中是否存在变更表的具体实现方式可以是,当源表中存在表结构与其对应的hive表所存储的表结构不一致的源表时,将该源表作为变更表,即表结构与其对应的hive表所存储的表结构不一致的源表,继续执行步骤202~步骤205;以及当源表中每一源表与其对应的hive表所存储的表结构一致时,确定源表中不存在变更表,则结束本流程。In the embodiment of the present application, the table structure of the change table and the table structure indicated by the hive table corresponding to the change table are inconsistent. The specific description is as follows: the hive table corresponding to each source table stores the table structure of the active table (table name, field information, records, indexes, etc.), and the source table can be determined by scanning the source table and the hive table corresponding to the source table Whether there is a change table. Wherein, the specific implementation of determining whether there is a change table in the source table by scanning the source table and the hive table corresponding to the source table may be when there is a source table in the source table whose table structure is inconsistent with the table structure stored in the corresponding hive table , Use the source table as a change table, that is, a source table whose table structure does not match the table structure stored in its corresponding hive table, and continue to perform steps 202 to 205; and when each source table in the source table and its corresponding hive table are When the stored table structure is consistent, it is determined that there is no change table in the source table, and this flow is ended.
步骤202,将上述变更表对应的目标表作为待同步目标表。Step 202: Use the target table corresponding to the change table as the target table to be synchronized.
需要说明的是,本申请实施例是基于kettle实现数据抽取的,在进行数据抽取之前,通常需要创建每一源表对应的目标表,其中,源表与目标表的对应关系可以是一对一的关系,也可以是多对一的关系,即一个源表可以对应一个目标表,也可以是多个源表对应一个目标表。目标表中存储有其对应的源表的部分或者全部字段信息,kettle可以通过自动匹配源表和目标表的字段信息实现源表数据的迁移。It should be noted that the embodiments of the present application implement data extraction based on kettle. Before data extraction, it is usually necessary to create a target table corresponding to each source table, where the correspondence between the source table and the target table may be one-to-one The relationship can also be a many-to-one relationship, that is, one source table can correspond to one target table, or multiple source tables can correspond to one target table. The target table stores part or all of the field information of its corresponding source table. Kettle can realize the migration of source table data by automatically matching the field information of the source table and the target table.
步骤203,将待同步目标表关联的供数进程作为异常供数进程。Step 203: Use the supply process associated with the target table to be synchronized as the abnormal supply process.
可选的,在一示例性实施例中,在执行步骤203之前,还可以判断是否接收到第三方平台发送的供数请求;当接收到该供数请求时,开启与该供数请求对应的供数进程。Optionally, in an exemplary embodiment, before performing step 203, it may be determined whether a supply request sent by a third-party platform is received; when the supply request is received, the corresponding to the supply request is turned on Count process.
其中,将上述待同步目标表关联的供数进程作为异常供数进程,可以包括:在与该供数请求对应的供数进程中查找与上述待同步目标表关联的供数进程;将查找出的与上述待同步目标表关联的供数进程作为异常供数进程。该示例性实施例基于接收到的第三方平台的供数请求,对异常供数进程进行查找,可以提高异常供数进程的查找效率。Among them, using the supply process associated with the target table to be synchronized as an abnormal supply process may include: searching for the supply process associated with the target table to be synchronized among the supply processes corresponding to the supply request; The supply process associated with the target table to be synchronized is regarded as an abnormal supply process. The exemplary embodiment searches the abnormal supply process based on the received supply request of the third-party platform, which can improve the search efficiency of the abnormal supply process.
步骤204,对异常供数进程执行挂起操作。 Step 204, suspend the abnormal supply process.
步骤205,向目标账号发送用于指示目标账号所有者更新待同步目标表的提示信息。Step 205: Send prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
通过执行步骤201~步骤205,在源表中存在变更表的情况下,将变更表对应的目标表作为待同步目标表,以及暂停待同步目标表关联的供数进程,以及向目标账号发送用于指示目标账号所有者更新待同步目标表的提示信息。通过实施该方法可以保证供数进程中数据的准确性。By executing steps 201 to 205, when the change table exists in the source table, the target table corresponding to the change table is used as the target table to be synchronized, and the supply process associated with the target table to be synchronized is suspended, and the target account is used for sending The prompt message instructs the owner of the target account to update the target table to be synchronized. By implementing this method, the accuracy of the data in the counting process can be ensured.
需要说明的是,步骤201可以是周期性执行,也可以是实时执行,本申请实施例不做限定。可选的,周期性或者实时扫描源表和每一源表对应的hive表判断源表中是否存在变更表,以及当判断出源表中存在变更表时,对变更表对应的目标表进行标记,以及在接收到第三方平台的供数请求时,判断与该供数请求对应的目标表是否带有标记,以及当与该供数请求对应的目标表带有标记时,将用于指示该供数请求对应的供数进程开启失败的信息输出;以及当与该供数请求对应的目标表没有带有标记时,将用于指示该供数请求对应的供数进程开启成功的信息输出。基于该可选的示例性实施例,在源表中存在变更表时,还可以通过比对变更表和其对应的hive表获得扫描结果。其中,用于指示该供数请求对应的供数进程开启成功的信息中可以包含该扫描结果。通过实施该示例性实施例可以通过预先标记变更表对应的目标表,快速确定是否响应接收到的供数请求,杜绝异常供数进程运行。It should be noted that step 201 may be executed periodically or in real time, which is not limited in the embodiments of the present application. Optionally, the source table and the hive table corresponding to each source table are scanned periodically or in real time to determine whether there is a change table in the source table, and when it is determined that there is a change table in the source table, the target table corresponding to the change table is marked , And when receiving the supply request of the third-party platform, determine whether the target table corresponding to the supply request is marked, and when the target table corresponding to the supply request is marked, it will be used to indicate the The information output of the supply process corresponding to the supply request fails to be opened; and when the target table corresponding to the supply request is not marked, the information output indicating that the supply process corresponding to the supply request is successfully started is output. Based on this optional exemplary embodiment, when there is a change table in the source table, the scan result can also be obtained by comparing the change table and its corresponding hive table. Wherein, the information used to indicate that the supply process corresponding to the supply request is successfully started may include the scan result. By implementing this exemplary embodiment, it is possible to quickly determine whether to respond to the received supply request by pre-marking the target table corresponding to the change table and prevent the abnormal supply process from running.
进一步可选的,在另一示例性实施例中,还可以在接收到第三方平台发送的供数请求时,将与该供数请求关联的目标表作为供数表,以及将与供数表对应的源表和hive表分别作为待扫描源表和待扫描hive表,以及通过对待扫描源表和待扫描hive表进行扫描,判断待扫描源表中是否存在变更表,以及在待扫描源表中存在变更表时,通过比对待扫描源表和待扫描hive表生成针对变更表的变更信息,以及将该变更信息输出,以使总业务数据员可以依据变更信息对待扫描源表中变更表对应的目标表进行更新。通过实施该示例性实施例,可以依据第三方平台发送的供数请求的指示有针对性地对待扫描源表和待扫描hive表进行扫描,不仅可以提高扫描速度,还可以减轻系统负担。Further optionally, in another exemplary embodiment, when a supply request sent by a third-party platform is received, the target table associated with the supply request may be used as the supply table, and the supply table The corresponding source table and hive table are used as the source table to be scanned and the hive table to be scanned, and by scanning the source table to be scanned and the hive table to be scanned, it is determined whether there is a change table in the source table to be scanned, and the source table to be scanned When there is a change table in the table, the change information for the change table is generated by comparing the source table to be scanned and the hive table to be scanned, and the change information is output so that the general business data officer can correspond to the change table in the scan source table based on the change information The target table is updated. By implementing this exemplary embodiment, the scan source table and the hive table to be scanned can be scanned in a targeted manner according to the indication of the supply request sent by the third-party platform, which can not only improve the scanning speed, but also reduce the system load.
图3是根据另一示例性实施例示出的一种基于数据迁移的异常供数检测方法的流程图。如图3所示,除图2所示步骤外,在步骤204之后,以及步骤205之前,此实施例中基于数据迁移的异常供数检测方法还包括以下步骤:Fig. 3 is a flow chart showing a method for detecting abnormal supply based on data migration according to another exemplary embodiment. As shown in FIG. 3, in addition to the steps shown in FIG. 2, after step 204 and before step 205, the method for detecting abnormal supply based on data migration in this embodiment further includes the following steps:
步骤305,根据当前时间点从总业务数据员登记表中确定目标工号;其中,总业务数据员登记表中记录有每一总业务数据员的工作时段和工号。Step 305: Determine the target job number from the general business data clerk registration form according to the current time point; wherein, the general business data clerk registration form records the work period and job number of each general business data clerk.
步骤306,获取目标工号对应的总业务数据员的登记信息,该登记信息至少包括目标工号对应的总业务数据员的联系方式。Step 306: Obtain registration information of the general service data clerk corresponding to the target job number. The registration information includes at least the contact information of the general service data clerk corresponding to the target job number.
步骤307,根据上述联系方式确定目标账号。Step 307: Determine the target account according to the above contact information.
其中,针对步骤301~步骤304,以及步骤308的详细描述,请参照图2所示的基于数据迁移的异常供数检测方法中步骤201~步骤204,以及步骤205的描述,本申请实施例不再赘述。For the detailed description of steps 301 to 304 and step 308, please refer to the description of steps 201 to 204 and step 205 in the method for detecting abnormal supply based on data migration shown in FIG. 2. Repeat again.
本申请实施例中,目标工号对应的上述联系方式可以是一种也可以是多种,本申请实施例不做限定。若目标工号对应的联系方式为多种,且每一种联系方式的优先级等级不同,可选的,在一示例性实施例中,根据上述联系方式确定目标账号,可以包括:获取上述联系方式中每种联系方式的优先级等级;将上述联系方式中优先级等级最高的联系方式对应的账号确定为目标账号。基于该示例性实施例,进一步可选的,向目标账号发送用于指示目标账号所有者更新待同步目标表的提示信息之后,还可以判断在预设时长内是否检测到目标账号所有者针对待同步目标表的更新操作,以及当判断出未检测到目标账号所有者针对待同步目标表的更新操作时,按照预设规则对目标账号进行更新。在本申请实施例中,按照预设规则对目标账号进行更新的具体实现方式如下:将上述联系方式中优先级等级仅次于最高优先级等级的联系方式作为第一目标联系方式,以及利用第一目标联系方式对应的账号更新目标账号,以及当本次目标账号更新结束,且在预设时长内未检测到目标账号所有者针对待同步目标表的更新操作时,将上述联系方式中优先级等级仅次于第一目标联系方式的联系方 式作为第二目标联系方式,以及利用第二目标联系方式对应的账号更新目标账号,依次类推直至遍历完上述联系方式中的所有联系方式。通过实施该示例性实施例,当在预设时长内未检测到目标账号所有者针对待同步目标表的更新操作时,可以基于上述联系方式的优先级的等级对上述联系方式中包含的所有联系方式进行遍历,能够最大限度的保证目标账号所有者对待同步目标表的及时更新。In the embodiment of the present application, the above-mentioned contact method corresponding to the target job number may be one type or multiple types, which is not limited in the embodiment of the present application. If there are multiple contact methods corresponding to the target job number, and each contact method has a different priority level, optionally, in an exemplary embodiment, determining the target account according to the above contact methods may include: obtaining the above contact The priority level of each contact method in the method; the account corresponding to the contact method with the highest priority level among the above contact methods is determined as the target account. Based on this exemplary embodiment, further optionally, after sending the prompt information for instructing the target account owner to update the target table to be synchronized, it can also be determined whether the target account owner has detected The update operation of the synchronization target table, and when it is determined that the update operation of the target account owner for the target table to be synchronized is not detected, the target account is updated according to a preset rule. In the embodiment of the present application, the specific implementation method for updating the target account according to the preset rules is as follows: the contact method whose priority level is second only to the highest priority level among the above contact methods is used as the first target contact method, and the An account corresponding to a target contact method updates the target account, and when the update of the target account is completed and the update operation of the target account owner on the target table to be synchronized is not detected within the preset time period, the above contact method is prioritized The contact method with the level second only to the first target contact method is used as the second target contact method, and the target account is updated using the account corresponding to the second target contact method, and so on until all contact methods in the above contact method are traversed. By implementing this exemplary embodiment, when the update operation of the target account owner to the target table to be synchronized is not detected within a preset time period, all contacts included in the above-mentioned contact method may be based on the priority level of the above-mentioned contact method The traversal method can ensure the maximum update of the target account owner to the synchronization target table to the greatest extent.
需要说明的是,上述联系方式可以是邮件、QQ、微信或者短信等等,那么,上述联系方式对应的账号可以为邮箱账号、QQ账号、微信账号或者手机号码等等。It should be noted that the above contact method can be email, QQ, WeChat or SMS, etc. Then, the account corresponding to the above contact method can be an email account, a QQ account, a WeChat account or a mobile phone number.
步骤309,根据上述变更表和上述变更表对应的hive表生成针对待同步目标表的更表信息。Step 309: Generate table modification information for the target table to be synchronized according to the change table and the hive table corresponding to the change table.
在本申请实施例中,根据上述变更表和上述变更表对应的hive表生成的针对待同步目标表的更表信息用于表述变更表相较于其对应的hive表所指示的表结构的变更。举例来说,若上述变更表相较于其对应的hive表所指示的表结构增加了字段,那么,更表信息可以为增加的字段信息,若上述变更表相较于其对应的hive表所指示的表结构删除了字段,那么,更表信息可以为删除的字段信息。In the embodiment of the present application, the table change information generated for the target table to be synchronized generated according to the above change table and the hive table corresponding to the above change table is used to express the change of the table structure indicated by the change table compared to its corresponding hive table . For example, if the above change table has more fields than the table structure indicated by its corresponding hive table, then the table change information may be added field information, if the above change table is compared to its corresponding hive table If the indicated table structure deletes the field, then the table information can be the deleted field information.
步骤310,根据上述更表信息,更新上述变更表对应的hive表。Step 310: Update the hive table corresponding to the change table according to the table change information.
步骤311,向上述目标账号发送生成的上述更表信息。Step 311: Send the generated change table information to the target account.
在一示例性实施例中,步骤311在执行完之后,还可以对待同步目标表中与上述变更表匹配的字段进行标记,以及根据上述变更信息和所标记的待同步目标表中的字段获得目标变更信息。其中,该目标变更信息可以包括待同步目标表的变更字段信息。实施该示例性实施例上述目标账号的所有者可以基于目标变更信息实现对待同步目标表的快速更表操作,进一步提高供数进程的效率和准确率。In an exemplary embodiment, after step 311 is executed, the field in the synchronization target table that matches the above-mentioned change table can also be marked, and the target can be obtained based on the change information and the field in the marked target table to be synchronized Change information. The target change information may include change field information of the target table to be synchronized. In the implementation of this exemplary embodiment, the owner of the target account described above can implement a quick table change operation on the target table to be synchronized based on the target change information, further improving the efficiency and accuracy of the supply process.
执行步骤309~步骤311,可以依据生成的针对待同步目标表的更表信息自动更新上述变更表对应的hive表,还可以向上述目标账号发送生成的上述更表信息,以用于目标账号所有者在对待同步目标表执行更新操作时参考,可以提高待同步目标表的更新效率和准确度。 Steps 309 to 311 can be executed, the hive table corresponding to the change table can be automatically updated according to the generated change table information for the target table to be synchronized, and the generated change table information can also be sent to the target account for use by the target account. When the update operation is performed on the target table to be synchronized, the update efficiency and accuracy of the target table to be synchronized can be improved.
可选的,在一示例性实施例中,步骤311执行完之后,还可以检测是否接收到上述目标账号所有者发送的终止更新指令,以及当检测接收到该终止更新指令时,控制上述异常供数进程由挂起状态转变为执行状态。进一步可选的,当检测接收到该终止更新指令时,控制上述异常供数进程由挂起状态转变为执行状态,可以包括:当检测接收到终止更新指令时,获取更新后的待同步目标 表的表结构;判断更新后的待同步目标表的表结构是否与变更表的表结构匹配;当更新后的待同步目标表的表结构与变更表的表结构匹配时,控制上述异常供数进程由挂起状态转变为执行状态。具体的,判断更新后的待同步目标表的表结构是否与变更表的表结构匹配的实现方式可以是,判断更新后的待同步目标表的表结构中变更表所对应的字段是否与变更表中的字段吻合,若吻合,则更新后的待同步目标表的表结构与变更表的表结构匹配,若不吻合,则更新后的待同步目标表的表结构与变更表的表结构不匹配。通过实施该示例性实施例,可以在接收到上述目标账号所有者发送的终止更新指令时,对更新后的待同步目标表的表结构和变更表的表结构进行比对,可以进一步保证供数进程中数据的准确性。Optionally, in an exemplary embodiment, after step 311 is executed, it may be detected whether a termination update instruction sent by the target account owner is received, and when it is detected that the termination update instruction is received, the abnormal supply is controlled. The data process changes from the suspended state to the execution state. Further optionally, when it is detected that the termination update instruction is received, controlling the above abnormal supply process to change from the suspended state to the execution state may include: when it is detected that the termination update instruction is received, acquiring the updated target table to be synchronized Table structure; determine whether the updated table structure of the target table to be synchronized matches the table structure of the changed table; when the updated table structure of the target table to be synchronized matches the table structure of the changed table, control the above-mentioned abnormal feed process Change from the suspended state to the execution state. Specifically, the method for determining whether the updated table structure of the target table to be synchronized matches the table structure of the change table may be to determine whether the field corresponding to the change table in the updated table structure of the target table to be synchronized is the same as the change table The fields in the match, if they match, the table structure of the updated target table to be synchronized matches the table structure of the change table, if they do not match, the table structure of the updated target table to be synchronized does not match the table structure of the change table . By implementing this exemplary embodiment, the table structure of the updated target table to be synchronized and the table structure of the changed table can be compared when the termination update instruction sent by the above-mentioned target account owner is received, which can further ensure the supply of data Accuracy of data in progress.
以下是本申请公开的异常供数检测装置实施例。The following is an embodiment of the abnormal supply detection device disclosed in the present application.
图4是根据一示例性实施例示出的一种异常供数检测装置的框图。如图4所示,该异常供数检测装置可以包括:Fig. 4 is a block diagram of an apparatus for detecting abnormal supply according to an exemplary embodiment. As shown in FIG. 4, the abnormal supply detection device may include:
扫描单元401,用于通过扫描源表和每一源表对应的hive表,判断源表中是否存在变更表。The scanning unit 401 is configured to determine whether there is a change table in the source table by scanning the source table and the hive table corresponding to each source table.
在本申请实施例中,变更表的表结构和变更表对应的hive表所指示的表结构不一致。具体描述如下:每一源表对应的hive表中存储有源表的表结构(表名、字段信息、记录以及索引等),扫描单元401通过扫描源表和源表对应的hive表可以判断出源表中是否存在变更表。在扫描单元401判断出源表中存在表结构与其对应的hive表所存储的表结构不一致的源表时,将该源表作为变更表,即表结构与其对应的hive表所存储的表结构不一致的源表,在扫描单元401判断出源表中每一源表与其对应的hive表所存储的表结构一致时,确定源表中不存在变更表。In the embodiment of the present application, the table structure of the change table and the table structure indicated by the hive table corresponding to the change table are inconsistent. The specific description is as follows: the hive table corresponding to each source table stores the table structure of the active table (table name, field information, record, index, etc.), and the scanning unit 401 can determine by scanning the source table and the hive table corresponding to the source table Whether the change table exists in the source table. When the scanning unit 401 determines that there is a source table in the source table whose table structure is inconsistent with the table structure stored in the corresponding hive table, the source table is used as a change table, that is, the table structure is inconsistent with the table structure stored in the corresponding hive table When the scanning unit 401 determines that each source table in the source table is consistent with the table structure stored in the corresponding hive table, it determines that there is no change table in the source table.
确定单元402,用于当存在上述变更表时,将上述变更表对应的目标表作为待同步目标表;以及将待同步目标表关联的供数进程作为异常供数进程。The determining unit 402 is configured to, when there is the above-mentioned change table, use the target table corresponding to the above-mentioned change table as the target table to be synchronized; and use the supply process associated with the target table to be synchronized as the abnormal supply process.
可选的,在一示例性实施例中,确定单元402,还可以用于在将待同步目标表关联的供数进程作为异常供数进程之前,判断是否接收到第三方平台发送的供数请求,以及当接收到该供数请求时,开启与该供数请求对应的供数进程。Optionally, in an exemplary embodiment, the determining unit 402 may also be used to determine whether a supply request sent by a third-party platform is received before the supply process associated with the target table to be synchronized is regarded as an abnormal supply process , And when receiving the supply request, start the supply process corresponding to the supply request.
其中,确定单元402用于将上述待同步目标表关联的供数进程作为异常供数进程的方式具体可以为:上述确定单元402,用于在与该供数请求对应的供数进程中查找与上述待同步目标表关联的供数进程,以及将查找出的与上述待同步目标表关联的供数进程作为异常供数进程。该示例性实施例基于接收到的第三方平台的供数请求,对异常供数进程进行查找,可以提高异常供数进程的查找效率。Wherein, the determining unit 402 is configured to use the supply process associated with the target table to be synchronized as an abnormal supply process. The determination unit 402 may be used to search for the supply process corresponding to the supply request. The supply process associated with the target table to be synchronized and the found supply process associated with the target table to be synchronized are regarded as abnormal supply processes. The exemplary embodiment searches the abnormal supply process based on the received supply request of the third-party platform, which can improve the search efficiency of the abnormal supply process.
控制单元403,用于对异常供数进程执行挂起操作。The control unit 403 is used to perform a suspend operation on the abnormal supply process.
发送单元404,用于向目标账号发送用于指示目标账号所有者更新上述待同步目标表的提示信息。The sending unit 404 is configured to send prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
通过实施上述异常供数检测装置,在源表存在变更表的情况下,将变更表对应的目标表作为待同步目标表,以及暂停待同步目标表关联的供数进程,以及向目标账号发送用于指示目标账号所有者更新待同步目标表的提示信息,可以保证供数进程中数据的准确性。By implementing the above-mentioned abnormal feed detection device, when the source table has a change table, the target table corresponding to the change table is used as the target table to be synchronized, and the feed process associated with the target table to be synchronized is suspended and sent to the target account The prompt information instructing the owner of the target account to update the target table to be synchronized can ensure the accuracy of the data in the supply process.
需要说明的是,扫描单元401通过扫描源表和每一源表对应的hive表,判断源表中是否存在变更表可以是周期执行,也可以是实时执行,本申请实施例不做限定。It should be noted that the scanning unit 401 scans the source table and the hive table corresponding to each source table to determine whether there is a change table in the source table, which may be executed periodically or in real time, which is not limited in the embodiments of the present application.
扫描单元401周期性或者实时扫描源表和每一源表对应的hive表判断源表中是否存在变更表,以及当判断出源表中存在变更表时,对变更表对应的目标表进行标记,以及在接收到第三方平台的供数请求时,判断与该供数请求对应的目标表是否带有标记,以及当与该供数请求对应的目标表带有标记时,将用于指示该供数请求对应的供数进程开启失败的信息输出;以及当与该供数请求对应的目标表没有带有标记时,将用于指示该供数请求对应的供数进程开启成功的信息输出。基于该可选的示例性实施例,在源表中存在变更表时,还可以通过比对变更表和其对应的hive表获得扫描结果。其中,用于指示该供数请求对应的供数进程开启成功的信息中可以包含该扫描结果。通过实施该示例性实施例可以通过预先标记变更表对应的目标表,快速确定是否响应接收到的供数请求,杜绝异常供数进程运行。The scanning unit 401 scans the source table and the hive table corresponding to each source table periodically or in real time to determine whether there is a change table in the source table, and when it is determined that there is a change table in the source table, mark the target table corresponding to the change table, And when receiving the supply request of the third-party platform, determine whether the target table corresponding to the supply request is marked, and when the target table corresponding to the supply request is marked, it will be used to indicate the supply The information output of the supply process corresponding to the supply request fails to be output; and when the target table corresponding to the supply request is not marked, a message output indicating that the supply process corresponding to the supply request is successfully started is output. Based on this optional exemplary embodiment, when there is a change table in the source table, the scan result can also be obtained by comparing the change table and its corresponding hive table. Wherein, the information used to indicate that the supply process corresponding to the supply request is successfully started may include the scan result. By implementing this exemplary embodiment, it is possible to quickly determine whether to respond to the received supply request by pre-marking the target table corresponding to the change table and prevent the abnormal supply process from running.
可选的,在一示例性实施例中,扫描单元401可以在接收到第三方平台发送的供数请求时,将与该供数请求关联的目标表作为供数表,以及将与供数表对应的源表和hive表分别作为待扫描源表和待扫描hive表,以及通过对待扫描源表和待扫描hive表进行扫描,判断待扫描源表中是否存在变更表,以及在待扫描源表中存在变更表时,通过比对待扫描源表和待扫描hive表生成针对变更表的变更信息,以及将该变更信息输出,以使总业务数据员可以依据变更信息对待扫描源表中变更表对应的目标表进行更新。通过实施该示例性实施例,可以依据第三方平台发送的供数请求的指示有针对性地对待扫描源表和待扫描hive表进行扫描,不仅可以提高扫描速度,还可以减轻系统负担。Optionally, in an exemplary embodiment, the scanning unit 401 can use the target table associated with the supply request as the supply table when receiving the supply request sent by the third-party platform, and the supply table The corresponding source table and hive table are used as the source table to be scanned and the hive table to be scanned, and by scanning the source table to be scanned and the hive table to be scanned, it is determined whether there is a change table in the source table to be scanned, and the source table to be scanned When there is a change table in the table, the change information for the change table is generated by comparing the source table to be scanned and the hive table to be scanned, and the change information is output so that the general business data officer can correspond to the change table in the scan source table based on the change information The target table is updated. By implementing this exemplary embodiment, the scan source table and the hive table to be scanned can be scanned in a targeted manner according to the indication of the supply request sent by the third-party platform, which can not only improve the scanning speed, but also reduce the system load.
图5是根据另一示例性实施例示出的一种异常供数检测装置的框图。如图5所示的异常供数检测装置是由图4所示的异常供数检测装置优化得到,上述控制单元403,还可以用于对异常供数进程执行挂起操作之后,以及上述发送单元405向目标账号发送用于指示目标账号所有者更新待同步目标表的提示 信息之前,根据当前时间点从总业务数据员登记表中确定目标工号;其中,总业务数据员登记表中记录有每一总业务数据员的工作时段和工号;以及获取目标工号对应的总业务数据员的登记信息,该登记信息至少包括目标工号对应的总业务数据员的联系方式;以及根据该联系方式确定目标账号。Fig. 5 is a block diagram of an apparatus for detecting abnormal supply according to another exemplary embodiment. The abnormal supply detection device shown in FIG. 5 is optimized by the abnormal supply detection device shown in FIG. 4. The above-mentioned control unit 403 can also be used to perform a suspend operation on the abnormal supply process and the sending unit. 405 Before sending the prompt message for instructing the target account owner to update the target table to be synchronized to the target account, determine the target job number from the general business clerk registration form according to the current time point; The working hours and job number of each general business data officer; and obtaining the registration information of the general business data person corresponding to the target job number, which at least includes the contact information of the general business data person corresponding to the target job number; and according to the contact To determine the target account.
本申请实施例中,目标工号对应的上述联系方式可以是一种也可以是多种,本申请实施例不做限定。若目标工号对应的联系方式为多种,每一种联系方式的优先级等级不同,可选的,在一示例性实施例中,上述控制单元403用于根据上述联系方式确定目标账号的方式具体可以为:上述控制单元403,用于获取上述联系方式中每种联系方式的优先级等级;以及将上述联系方式中优先级等级最高的联系方式对应的账号确定为目标账号。In the embodiment of the present application, the above-mentioned contact method corresponding to the target job number may be one type or multiple types, which is not limited in the embodiment of the present application. If there are multiple contact methods corresponding to the target job number, and each contact method has a different priority level, optionally, in an exemplary embodiment, the control unit 403 is configured to determine the target account according to the contact method Specifically, the control unit 403 may be used to obtain the priority level of each contact method in the contact method; and determine the account corresponding to the contact method with the highest priority level in the contact method as the target account.
进一步可选的,上述发送单元404在向目标账号发送用于指示目标账号所有者更新待同步目标表的提示信息之后,还可以判断在预设时长内是否检测到目标账号所有者针对待同步目标表的更新操作,以及当判断出未检测到目标账号所有者针对待同步目标表的更新操作时,按照预设规则对目标账号进行更新。在本申请实施例中,发送单元404按照预设规则对目标账号进行更新的具体实现方式如下:发送单元404将上述联系方式中优先级等级仅次于最高优先级等级的联系方式作为第一目标联系方式,以及利用第一目标联系方式对应的账号更新目标账号,以及当本次目标账号更新结束,且在预设时长内未检测到目标账号所有者针对待同步目标表的更新操作时,将上述联系方式中优先级等级仅次于第一目标联系方式的联系方式作为第二目标联系方式,以及利用第二目标联系方式对应的账号更新目标账号,依次类推直至遍历完上述联系方式中的所有联系方式。通过实施该示例性实施例,当在预设时长内未检测到目标账号所有者针对待同步目标表的更新操作时,可以基于上述联系方式的优先级的等级对上述联系方式中包含的所有联系方式进行遍历,能够最大限度的保证目标账号所有者对待同步目标表的及时更新。Further optionally, after sending the prompt information for instructing the target account owner to update the target table to be synchronized to the target account, the sending unit 404 can also determine whether the target account owner has detected the target to be synchronized within a preset time period. Table update operation, and when it is determined that the target account owner's update operation for the target table to be synchronized is not detected, the target account is updated according to the preset rules. In the embodiment of the present application, the specific implementation of the sending unit 404 to update the target account according to the preset rules is as follows: The sending unit 404 uses the contact method whose priority level is second only to the highest priority level among the above contact methods as the first target Contact information, and use the account corresponding to the first target contact information to update the target account, and when the target account update is completed and the target account owner does not detect the update operation of the target table to be synchronized within the preset time, will The priority level of the above contact method is second only to the contact method of the first target contact method as the second target contact method, and the target account is updated using the account corresponding to the second target contact method, and so on until all the above contact methods are traversed Contact information. By implementing this exemplary embodiment, when the update operation of the target account owner to the target table to be synchronized is not detected within a preset time period, all contacts included in the above-mentioned contact method may be based on the priority level of the above-mentioned contact method The traversal method can ensure the maximum update of the target account owner to the synchronization target table to the greatest extent.
需要说明的是,上述联系方式可以是邮件、QQ、微信或者短信等等,那么,上述联系方式对应的账号可以为邮箱账号、QQ账号、微信账号或者手机号码等等。It should be noted that the above contact method can be email, QQ, WeChat or SMS, etc. Then, the account corresponding to the above contact method can be an email account, a QQ account, a WeChat account or a mobile phone number.
图5所示的异常供数检测装置还可以包括:The abnormal supply data detection device shown in FIG. 5 may further include:
更新单元405,用于根据上述变更表和上述变更表对应的hive表生成针对待同步目标表的更表信息,以及根据更表信息,更新上述变更表对应的hive表,以及向上述目标账号发送该更表信息。The updating unit 405 is configured to generate table change information for the target table to be synchronized based on the change table and the hive table corresponding to the change table, and update the hive table corresponding to the change table according to the table change information, and send to the target account The table information.
在本申请实施例中,针对上述更表信息的描述请参照图3所示的基于数据迁移的异常供数检测方法中步骤309下面的描述,本申请实施例不再赘述。In the embodiment of the present application, for the description of the above table-changing information, please refer to the description below step 309 in the method for detecting abnormal supply based on data migration shown in FIG. 3, which will not be repeated in the embodiment of the present application.
更新单元405可以依据生成的针对待同步目标表的更表信息自动更新上述变更表对应的hive表,还可以向上述目标账号发送生成的上述更表信息,以使目标账号所有者在对待同步目标表执行更新操作时参考,可以提高待同步目标表的更新效率和准确度。The updating unit 405 can automatically update the hive table corresponding to the change table according to the generated change table information for the target table to be synchronized, and can also send the generated change table information to the target account so that the target account owner is treating the synchronization target The reference is used when the table is updated, which can improve the update efficiency and accuracy of the target table to be synchronized.
在一示例性实施例中,更新单元405还可以对待同步目标表中与上述变更表匹配的字段进行标记,以及根据上述变更信息和所标记的待同步目标表中的字段获得目标变更信息。其中,该目标变更信息可以包括待同步目标表的变更字段信息。实施该示例性实施例上述目标账号所有者可以基于目标变更信息实现对待同步目标表的快速更表操作,进一步提高供数进程的效率和准确率。In an exemplary embodiment, the updating unit 405 may also mark the fields in the synchronization target table that match the change table, and obtain the target change information according to the change information and the fields in the marked target table to be synchronized. The target change information may include change field information of the target table to be synchronized. In the implementation of this exemplary embodiment, the above-mentioned target account owner can implement a quick table replacement operation on the target table to be synchronized based on the target change information, thereby further improving the efficiency and accuracy of the supply process.
可选的,上述控制单元403,还可以用于检测是否接收到上述目标账号所有者发送的终止更新指令,以及当检测接收到该终止更新指令时,控制上述异常供数进程由挂起状态转变为执行状态。Optionally, the control unit 403 may also be used to detect whether a termination update instruction sent by the target account owner is received, and when detecting that the termination update instruction is received, control the abnormal supply process to transition from the suspended state It is the execution status.
需要说明的是,在本申请实施例中,更新单元405还可以用于向上述目标账号发送该更表信息之后,向上述控制单元403发送启动指令,以启动上述控制单元403。It should be noted that, in the embodiment of the present application, the update unit 405 may also be used to send the activation instruction to the control unit 403 after the update table information is sent to the target account to activate the control unit 403.
进一步可选的,上述控制单元403用于当检测接收到该终止更新指令时,控制上述异常供数进程由挂起状态转变为执行状态的方式具体可以为:上述控制单元,用于当检测接收到终止更新指令时,获取更新后的待同步目标表的表结构;判断更新后的待同步目标表的表结构是否与变更表的表结构匹配;当更新后的待同步目标表的表结构与变更表的表结构匹配时,控制上述异常供数进程由挂起状态转变为执行状态。具体的,判断更新后的待同步目标表的表结构是否与变更表的表结构匹配的实现方式可以是,判断更新后的待同步目标表的表结构中变更表所对应的字段是否与变更表中的字段吻合,若吻合,则更新后的待同步目标表的表结构与变更表的表结构匹配,若不吻合,则更新后的待同步目标表的表结构与变更表的表结构不匹配。通过实施该示例性实施例,上述控制单元403可以在接收到上述目标账号所有者发送的终止更新指令时,对更新后的待同步目标表的表结构和变更表的表结构进行比对,可以进一步保证供数进程中数据的准确性。Further optionally, the control unit 403 is configured to control the transition of the abnormal supply process from the suspended state to the execution state when it is detected that the termination update instruction is received. The control unit 403 may be used to detect When the update instruction is terminated, obtain the updated table structure of the target table to be synchronized; determine whether the updated table structure of the target table to be synchronized matches the table structure of the changed table; when the updated table structure of the target table to be synchronized When the table structure of the change table matches, the process of controlling the above-mentioned abnormal supply is changed from the suspended state to the executed state. Specifically, the method for determining whether the updated table structure of the target table to be synchronized matches the table structure of the change table may be to determine whether the field corresponding to the change table in the updated table structure of the target table to be synchronized is the same as the change table The fields in the match, if they match, the table structure of the updated target table to be synchronized matches the table structure of the change table, if they do not match, the table structure of the updated target table to be synchronized does not match the table structure of the change table . By implementing this exemplary embodiment, the control unit 403 may compare the table structure of the updated target table to be synchronized with the table structure of the changed table when receiving the termination update instruction sent by the target account owner. To further ensure the accuracy of the data in the process of supplying data.
本申请还提供一种终端设备,该终端设备包括:This application also provides a terminal device, which includes:
处理器;processor;
存储器,该存储器上存储有计算机可读指令,该计算机可读指令被处理器执行时,实现如前所示的基于数据迁移的异常供数检测方法。A memory, in which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, an abnormal feed detection method based on data migration as described above is implemented.
该终端设备可以是图1所示的异常供数检测装置100。The terminal device may be the abnormal supply detection device 100 shown in FIG. 1.
在一示例性实施例中,本申请还提供一种计算机可读存储介质,其上存储 有计算机程序,该计算机程序被处理器执行时,实现如前所示的基于数据迁移的异常供数检测方法。In an exemplary embodiment, the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the abnormal supply data detection based on data migration as described above is realized method.
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围执行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It should be understood that the present application is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be performed without departing from the scope thereof. The scope of this application is limited only by the appended claims.

Claims (20)

  1. 一种基于数据迁移的异常供数检测方法,其特征在于,所述方法包括:A method for detecting abnormal supply based on data migration, characterized in that the method includes:
    通过扫描源表和每一所述源表对应的hive表,判断所述源表中是否存在变更表;其中,所述变更表的表结构和所述变更表对应的所述hive表所指示的表结构不一致;Scan the source table and the hive table corresponding to each of the source tables to determine whether there is a change table in the source table; wherein, the table structure of the change table and the hive table corresponding to the change table indicate The table structure is inconsistent;
    当存在所述变更表时,将所述变更表对应的目标表作为待同步目标表;When the change table exists, use the target table corresponding to the change table as the target table to be synchronized;
    将所述待同步目标表关联的供数进程作为异常供数进程;Use the supply process associated with the target table to be synchronized as an abnormal supply process;
    对所述异常供数进程执行挂起操作;Perform a suspend operation on the abnormal supply process;
    向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息。Sending prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
  2. 根据权利要求1所述的方法,其特征在于,所述向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息之后,所述方法还包括:The method according to claim 1, wherein after the prompt information for instructing the target account owner to update the target table to be synchronized is sent to the target account, the method further comprises:
    根据所述变更表和所述变更表对应的所述hive表生成针对所述待同步目标表的更表信息;Generating table modification information for the target table to be synchronized according to the change table and the hive table corresponding to the change table;
    根据所述更表信息,更新所述变更表对应的所述hive表;Update the hive table corresponding to the change table according to the change table information;
    向所述目标账号发送所述更表信息。Sending the change table information to the target account.
  3. 根据权利要求1或2所述的方法,其特征在于,所述对所述异常供数进程执行挂起操作之后,以及所述向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息之前,所述方法还包括:The method according to claim 1 or 2, wherein after the suspend operation is performed on the abnormal supply process, and the sending to the target account is used to instruct the target account owner to update the pending Before synchronizing the prompt information of the target table, the method further includes:
    根据当前时间点从总业务数据员登记表中确定目标工号;其中,所述总业务数据员登记表中记录有每一总业务数据员的工作时段和工号;Determine the target job number from the general business data clerk registration form according to the current time point; wherein, the general business data clerk registration form records the work period and job number of each general business data clerk;
    获取所述目标工号对应的总业务数据员的登记信息,所述登记信息至少包括所述目标工号对应的总业务数据员的联系方式;Obtaining registration information of the general service data clerk corresponding to the target job number, where the registration information includes at least the contact information of the general service data clerk corresponding to the target job number;
    根据所述联系方式确定目标账号。Determine the target account according to the contact information.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述联系方式确定目标账号,包括:The method according to claim 3, wherein the determining the target account according to the contact method comprises:
    获取所述联系方式中每种联系方式的优先级等级;Obtaining the priority level of each contact method in the contact methods;
    将所述联系方式中优先级等级最高的联系方式对应的账号确定为目标账号。The account corresponding to the contact method with the highest priority level among the contact methods is determined as the target account.
  5. 根据权利要求1所述的方法,其特征在于,所述向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息之后,所述方法还包括:The method according to claim 1, wherein after the prompt information for instructing the target account owner to update the target table to be synchronized is sent to the target account, the method further comprises:
    检测是否接收到所述目标账号所有者发送的终止更新指令;Detecting whether a termination update instruction sent by the target account owner is received;
    当检测接收到所述终止更新指令时,控制所述异常供数进程由挂起状态转变为执行状态。When it is detected that the termination update instruction is received, the abnormal supply process is controlled to change from a suspended state to an execution state.
  6. 根据权利要求5所述的方法,其特征在于,所述当检测接收到所述终止更新指令时,控制所述异常供数进程由挂起状态转变为执行状态,包括:The method according to claim 5, wherein, when it is detected that the termination update instruction is received, controlling the abnormal supply process to change from a suspended state to an execution state includes:
    当检测接收到所述终止更新指令时,获取更新后的待同步目标表的表结构;When it is detected that the termination update instruction is received, the updated table structure of the target table to be synchronized is acquired;
    判断所述更新后的待同步目标表的表结构与所述变更表的表结构是否匹配;Judging whether the updated table structure of the target table to be synchronized matches the table structure of the change table;
    当所述更新后的待同步目标表的表结构与所述变更表的表结构匹配时,控制所述异常供数进程由挂起状态转变为执行状态。When the updated table structure of the target table to be synchronized matches the table structure of the change table, the abnormal supply process is controlled to change from a suspended state to an execution state.
  7. 根据权利要求1所述的方法,其特征在于,所述将所述待同步目标表关联的供数进程作为异常供数进程之前,所述方法还包括:The method according to claim 1, characterized in that, before using the supply process associated with the target table to be synchronized as an abnormal supply process, the method further comprises:
    判断是否接收到第三方平台发送的供数请求;Determine whether a supply request sent by a third-party platform is received;
    当接收到所述供数请求时,开启与所述供数请求对应的供数进程;When receiving the supply request, start the supply process corresponding to the supply request;
    所述将所述待同步目标表关联的供数进程作为异常供数进程包括:Said using the supply process associated with the target table to be synchronized as an abnormal supply process includes:
    在与所述供数请求对应的供数进程中查找所述待同步目标表关联的供数进程;Searching for the supply process associated with the target table to be synchronized in the supply process corresponding to the supply request;
    将查找到的所述待同步目标表关联的供数进程作为异常供数进程。The found supply process associated with the target table to be synchronized is regarded as an abnormal supply process.
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当判断出源表中存在变更表时,对变更表对应的目标表进行标记;When it is determined that there is a change table in the source table, mark the target table corresponding to the change table;
    当接收到第三方平台发送的供数请求时,判断与所述供数请求对应的目标表是否带有标记;When receiving a supply request sent by a third-party platform, determine whether the target table corresponding to the supply request is marked;
    当与所述供数请求对应的目标表带有标记时,将用于指示所述供数请求对应的供数进程开启失败的信息输出;When the target table corresponding to the supply request is marked, output information indicating that the supply process corresponding to the supply request fails to start;
    当与所述供数请求对应的目标表没有带有标记时,将用于指示该供数请求对应的供数进程开启成功的信息输出。When the target table corresponding to the supply request is not marked, a message indicating that the supply process corresponding to the supply request is successfully started is output.
  9. 一种异常供数检测装置,其特征在于,包括:An abnormal supply data detection device, characterized in that it includes:
    扫描单元,用于通过扫描源表和每一所述源表对应的hive表,判断所述源表中是否存在变更表;其中,所述变更表的表结构和所述变更表对应的所述hive表所指示的表结构不一致;A scanning unit, configured to determine whether there is a change table in the source table by scanning the source table and the hive table corresponding to each of the source tables; wherein, the table structure of the change table and the change table corresponding to the change table The table structure indicated by the hive table is inconsistent;
    确定单元,用于当存在所述变更表时,将所述变更表对应的目标表作为待同步目标表;以及将所述待同步目标表关联的供数进程作为异常供数进程;A determining unit, configured to use the target table corresponding to the change table as the target table to be synchronized when the change table exists; and use the supply process associated with the target table to be synchronized as the abnormal supply process;
    控制单元,用于对所述异常供数进程执行挂起操作;A control unit for performing a suspend operation on the abnormal supply process;
    发送单元,用于向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息。The sending unit is configured to send prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:
    更新单元,用于根据所述变更表和所述变更表对应的所述hive表生成针对所述待同步目标表的更表信息;根据所述更表信息,更新所述变更表对应的所述hive表;An updating unit, configured to generate table change information for the target table to be synchronized according to the change table and the hive table corresponding to the change table; according to the table change information, update the table corresponding to the change table hive table
    所述发送单元,还用于向所述目标账号发送所述更表信息。The sending unit is further configured to send the table change information to the target account.
  11. 根据权利要求9所述的装置,其特征在于,The device according to claim 9, characterized in that
    所述控制单元,还用于检测是否接收到所述目标账号所有者发送的终止更新指令;当检测接收到所述终止更新指令时,控制所述异常供数进程由挂起状态转变为执行状态。The control unit is further configured to detect whether a termination update instruction sent by the target account owner is received; when detecting that the termination update instruction is received, control the abnormal supply process to change from a suspended state to an execution state .
  12. 根据权利要求11所述的装置,其特征在于,The device according to claim 11, characterized in that
    所述控制单元,具体用于当检测接收到所述终止更新指令时,获取更新后的待同步目标表的表结构;判断所述更新后的待同步目标表的表结构与所述变更表的表结构是否匹配;当所述更新后的待同步目标表的表结构与所述变更表的表结构匹配时,控制所述异常供数进程由挂起状态转变为执行状态。The control unit is specifically configured to acquire the table structure of the updated target table to be synchronized when it is detected that the termination update instruction is received; to determine the table structure of the updated target table to be synchronized and the change table Whether the table structure matches; when the updated table structure of the target table to be synchronized matches the table structure of the change table, the abnormal supply process is controlled to change from the suspended state to the execution state.
  13. 根据权利要求9所述的装置,其特征在于,The device according to claim 9, characterized in that
    所述确定单元,还用于在将所述待同步目标表关联的供数进程作为异常供数进程之前,判断是否接收到第三方平台发送的供数请求;当接收到所述供数请求时,开启与所述供数请求对应的供数进程;The determining unit is further configured to determine whether a supply request sent by a third-party platform is received before the supply process associated with the target table to be synchronized is regarded as an abnormal supply process; when the supply request is received , Start the supply process corresponding to the supply request;
    所述确定单元在将所述待同步目标表关联的供数进程作为异常供数进程的时,具体用于:When the determining unit uses the supply process associated with the target table to be synchronized as an abnormal supply process, it is specifically used to:
    在与所述供数请求对应的供数进程中查找所述待同步目标表关联的供数进程;Searching for the supply process associated with the target table to be synchronized in the supply process corresponding to the supply request;
    将查找到的所述待同步目标表关联的供数进程作为异常供数进程。The found supply process associated with the target table to be synchronized is regarded as an abnormal supply process.
  14. 根据权利要求9所述的装置,其特征在于,The device according to claim 9, characterized in that
    所述扫描单元,还用于当判断出源表中存在变更表时,对变更表对应的目标表进行标记;当接收到第三方平台发送的供数请求时,判断与所述供数请求对应的目标表是否带有标记;当与所述供数请求对应的目标表带有标记时,将用于指示所述供数请求对应的供数进程开启失败的信息输出;当与所述供数请求对应的目标表没有带有标记时,将用于指示该供数请求对应的供数进程开启成功的信息输出。The scanning unit is also used to mark the target table corresponding to the change table when it is determined that there is a change table in the source table; when receiving the supply request sent by the third-party platform, it is determined to correspond to the supply request Whether the target table with the mark is provided; when the target table corresponding to the feed request is marked, output information indicating that the feed process corresponding to the feed request failed to start; when When the target table corresponding to the request is not marked, a message indicating that the supply process corresponding to the supply request is successfully started is output.
  15. 一种计算机可读存储介质,其特征在于,其存储计算机程序,所述计算机程序使得计算机执行权利要求1~8任一项所述的基于数据迁移的异常供数检测方法。A computer-readable storage medium, characterized in that it stores a computer program that causes a computer to execute the method for detecting abnormal supply based on data migration according to any one of claims 1 to 8.
  16. 一种终端设备,其特征在于,所述终端设备包括:A terminal device, characterized in that the terminal device includes:
    处理器;processor;
    存储器,所述存储器上存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,实现如下步骤:A memory, on which computer-readable instructions are stored, and when the computer-readable instructions are executed by the processor, the following steps are implemented:
    通过扫描源表和每一所述源表对应的hive表,判断所述源表中是否存在变更表;其中,所述变更表的表结构和所述变更表对应的所述hive表所指示的表结构不一致;Scan the source table and the hive table corresponding to each of the source tables to determine whether there is a change table in the source table; wherein, the table structure of the change table and the hive table corresponding to the change table indicate The table structure is inconsistent;
    当存在所述变更表时,将所述变更表对应的目标表作为待同步目标表;When the change table exists, use the target table corresponding to the change table as the target table to be synchronized;
    将所述待同步目标表关联的供数进程作为异常供数进程;Use the supply process associated with the target table to be synchronized as an abnormal supply process;
    对所述异常供数进程执行挂起操作;Perform a suspend operation on the abnormal supply process;
    向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息。Sending prompt information to the target account to instruct the target account owner to update the target table to be synchronized.
  17. 根据权利要求16所述的终端设备,其特征在于,所述处理器在执行所述向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息之后,还执行以下步骤:The terminal device according to claim 16, wherein after the processor executes the prompt information for instructing the target account owner to update the target table to be synchronized to the target account, the processor further executes the following step:
    根据所述变更表和所述变更表对应的所述hive表生成针对所述待同步目标表的更表信息;Generating table modification information for the target table to be synchronized according to the change table and the hive table corresponding to the change table;
    根据所述更表信息,更新所述变更表对应的所述hive表;Update the hive table corresponding to the change table according to the change table information;
    向所述目标账号发送所述更表信息。Sending the change table information to the target account.
  18. 根据权利要求16所述的终端设备,其特征在于,所述处理器在执行所述向目标账号发送用于指示所述目标账号所有者更新所述待同步目标表的提示信息之后,还执行以下步骤:The terminal device according to claim 16, wherein after the processor executes the prompt information for instructing the target account owner to update the target table to be synchronized to the target account, the processor further executes the following step:
    检测是否接收到所述目标账号所有者发送的终止更新指令;Detecting whether a termination update instruction sent by the target account owner is received;
    当检测接收到所述终止更新指令时,控制所述异常供数进程由挂起状态转变为执行状态。When it is detected that the termination update instruction is received, the abnormal supply process is controlled to change from a suspended state to an execution state.
  19. 根据权利要求16所述的终端设备,其特征在于,所述处理器在执行所述将所述待同步目标表关联的供数进程作为异常供数进程之前,还执行以下步骤:The terminal device according to claim 16, wherein the processor further executes the following steps before executing the process of supplying data associated with the target table to be synchronized as an abnormal supplying process:
    判断是否接收到第三方平台发送的供数请求;Determine whether a supply request sent by a third-party platform is received;
    当接收到所述供数请求时,开启与所述供数请求对应的供数进程;When receiving the supply request, start the supply process corresponding to the supply request;
    所述处理器在执行所述将所述待同步目标表关联的供数进程作为异常供数进程时,具体执行以下步骤:When the processor executes the process of taking the supply process associated with the target table to be synchronized as an abnormal supply process, it specifically performs the following steps:
    在与所述供数请求对应的供数进程中查找所述待同步目标表关联的供数进程;Searching for the supply process associated with the target table to be synchronized in the supply process corresponding to the supply request;
    将查找到的所述待同步目标表关联的供数进程作为异常供数进程。The found supply process associated with the target table to be synchronized is regarded as an abnormal supply process.
  20. 根据权利要求16所述的终端设备,其特征在于,所述处理器还执行以下步骤:The terminal device according to claim 16, wherein the processor further performs the following steps:
    当判断出源表中存在变更表时,对变更表对应的目标表进行标记;When it is determined that there is a change table in the source table, mark the target table corresponding to the change table;
    当接收到第三方平台发送的供数请求时,判断与所述供数请求对应的目标表是否带有标记;When receiving a supply request sent by a third-party platform, determine whether the target table corresponding to the supply request is marked;
    当与所述供数请求对应的目标表带有标记时,将用于指示所述供数请求对应的供数进程开启失败的信息输出;When the target table corresponding to the supply request is marked, output information indicating that the supply process corresponding to the supply request fails to start;
    当与所述供数请求对应的目标表没有带有标记时,将用于指示该供数请求对应的供数进程开启成功的信息输出。When the target table corresponding to the supply request is not marked, a message indicating that the supply process corresponding to the supply request is successfully started is output.
PCT/CN2019/120598 2019-01-03 2019-11-25 Abnormal data provision detection method and apparatus based on data migration, and terminal device WO2020140645A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910003213.2 2019-01-03
CN201910003213.2A CN109840160A (en) 2019-01-03 2019-01-03 It is a kind of abnormal for several detection methods, device and terminal device based on Data Migration

Publications (1)

Publication Number Publication Date
WO2020140645A1 true WO2020140645A1 (en) 2020-07-09

Family

ID=66883637

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120598 WO2020140645A1 (en) 2019-01-03 2019-11-25 Abnormal data provision detection method and apparatus based on data migration, and terminal device

Country Status (2)

Country Link
CN (1) CN109840160A (en)
WO (1) WO2020140645A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109840160A (en) * 2019-01-03 2019-06-04 深圳壹账通智能科技有限公司 It is a kind of abnormal for several detection methods, device and terminal device based on Data Migration
CN112231181B (en) * 2020-12-08 2021-03-16 平安科技(深圳)有限公司 Data abnormal update detection method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105069128A (en) * 2015-08-14 2015-11-18 北京京东尚科信息技术有限公司 Data synchronization method and apparatus
CN105447172A (en) * 2015-12-07 2016-03-30 北京先进数通信息技术股份公司 Data processing method and system under Hadoop platform
US20170031948A1 (en) * 2014-04-15 2017-02-02 Huawei Technologies Co., Ltd. File synchronization method, server, and terminal
CN108595541A (en) * 2018-04-08 2018-09-28 上海康斐信息技术有限公司 A kind of test method and system of data pick-up quality
CN108920698A (en) * 2018-07-16 2018-11-30 北京京东金融科技控股有限公司 A kind of method of data synchronization, device, system, medium and electronic equipment
CN109840160A (en) * 2019-01-03 2019-06-04 深圳壹账通智能科技有限公司 It is a kind of abnormal for several detection methods, device and terminal device based on Data Migration

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9152659B2 (en) * 2011-12-30 2015-10-06 Bmc Software, Inc. Systems and methods for migrating database data
CN104954469B (en) * 2015-06-19 2018-07-24 长沙廖氏软件科技有限公司 A kind of heterogeneous system information switching method
CN106326376A (en) * 2016-08-15 2017-01-11 东软集团股份有限公司 Method and device for copying information after table structure modification
CN108121774B (en) * 2017-12-08 2021-04-02 平安科技(深圳)有限公司 Data table backup method and terminal equipment
CN108959564B (en) * 2018-07-04 2020-11-27 玖富金科控股集团有限责任公司 Data warehouse metadata management method, readable storage medium and computer device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170031948A1 (en) * 2014-04-15 2017-02-02 Huawei Technologies Co., Ltd. File synchronization method, server, and terminal
CN105069128A (en) * 2015-08-14 2015-11-18 北京京东尚科信息技术有限公司 Data synchronization method and apparatus
CN105447172A (en) * 2015-12-07 2016-03-30 北京先进数通信息技术股份公司 Data processing method and system under Hadoop platform
CN108595541A (en) * 2018-04-08 2018-09-28 上海康斐信息技术有限公司 A kind of test method and system of data pick-up quality
CN108920698A (en) * 2018-07-16 2018-11-30 北京京东金融科技控股有限公司 A kind of method of data synchronization, device, system, medium and electronic equipment
CN109840160A (en) * 2019-01-03 2019-06-04 深圳壹账通智能科技有限公司 It is a kind of abnormal for several detection methods, device and terminal device based on Data Migration

Also Published As

Publication number Publication date
CN109840160A (en) 2019-06-04

Similar Documents

Publication Publication Date Title
US10847122B2 (en) Method and apparatus for updating information
WO2016175452A1 (en) Fingerprint information processing method and electronic device supporting the same
US10587741B2 (en) Communication event processing method and apparatus
US9572091B2 (en) Method and electronic device for network search
US20140330561A1 (en) Voice recognition method and electronic device thereof
CN110162442B (en) System performance bottleneck positioning method and system
CN110069401B (en) System test abnormality positioning method and system based on data modeling
US20180248821A1 (en) Information pushing method, apparatus, and system, and computer storage medium
KR20170072165A (en) Method and device for information push
JP2017510008A (en) Firmware restoration method, apparatus, terminal, program, and recording medium
WO2016029648A1 (en) File backup method and device
WO2020140645A1 (en) Abnormal data provision detection method and apparatus based on data migration, and terminal device
CN110134593B (en) Software testing method and device, electronic equipment and storage medium
US9509832B2 (en) Recommending preferred ringer settings for a mobile communications device
WO2018048217A1 (en) Electronic apparatus and operating method thereof
WO2017023040A1 (en) Screen controlling method and electronic device for supporting the same
CN105094904A (en) Application program installation method and device
WO2023226255A1 (en) Article query method and apparatus based on strategy mode, device and storage medium
CN104636475A (en) Method and device for optimizing multimedia file storage space
US20130244627A1 (en) Method for providing phone book service and associated electronic device thereof
CN106126382B (en) Identify the method and device of file system error
CN111046040A (en) Method and device for determining index, electronic equipment and storage medium
CN110716914B (en) Database configuration method, system, computer readable storage medium and terminal device
CN110046095B (en) System integration method and device based on test flow improvement
CN105094510A (en) Text processing method, device and system

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: 19907316

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 1205A DATED 22.10.2021)