Data loading method and device
A data loading and data technology, applied in the database field, can solve problems such as wrong file names, partition errors, system error loading checks and prompts, etc., to ensure correctness and avoid data loading errors.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] The embodiment of the present invention provides a data loading method, see figure 1 , the method flow is as follows:
[0052] 101: Create a partition table according to the partition type, and the partition table includes partition fields;
[0053] 102: Read the data to be loaded line by line;
[0054] 103: Obtain the partition field of the row data according to the partition information of the partition table;
[0055] 104: Determine the partition to which the row of data belongs in the partition table according to the partition field of the row of data;
[0056] 105: Load the row of data into the corresponding partition.
[0057] In the method provided by the embodiment of the present invention, by obtaining the partition field of the data according to the partition information of the partition table, and determining the partition to which the row data belongs in the partition table, and automatically loading the row data into the corresponding partition, it is re...
Embodiment 2
[0059] The embodiment of the present invention provides a data loading method, see figure 2 , the method flow is as follows:
[0060] 201: Create a partition table according to the partition type, and the partition table includes partition fields;
[0061] Wherein, the embodiment of the present invention creates the table through the CREATE TABLE statement, and other ways may also be used to create the table, which is not specifically limited. Define the type of partition when creating a table to form a partitioned table. The type of the partition can be a partition of the range type, a partition of the list type, or a composite type of partition nested between the two. The embodiment of the present invention supports two levels of nesting, such as range-range, range- List, list-list, and list-range are four composite partition types, but there are no specific restrictions on other partition types.
[0062] Specifically, the way to create a table and define a partition typ...
Embodiment 3
[0157] see Figure 5 , the embodiment of the present invention provides a data loading device, the device includes:
[0158] The creation module 501 is used to create a partition table according to the type of the partition, and the partition table contains a partition field;
[0159] The reading module 502 is used to read the data to be loaded line by line;
[0160] An acquisition module 503, configured to acquire the partition field of the row of data read by the reading module 502 according to the partition information of the partition table;
[0161] A determining module 504, configured to determine the partition to which the row of data belongs in the partition table according to the partition field of the data obtained by the obtaining module 503;
[0162] The loading module 505 is configured to load the row of data into the corresponding partition determined by the determining module 504 .
[0163] Wherein, the obtaining module 503 is specifically conf...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com