Test data generation method and device based on Hive data warehouse

The invention discloses a test data generation method and device based on a Hive data warehouse, and the method comprises the steps: configuring the configuration information of test data in a relational database, wherein the configuration information at least comprises a file storage format of a Hi...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: ZHANG YAZE
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a test data generation method and device based on a Hive data warehouse, and the method comprises the steps: configuring the configuration information of test data in a relational database, wherein the configuration information at least comprises a file storage format of a Hive table for storing the test data; generating a Hive table of a corresponding file storage format according to the configuration information; and executing the Spark task, generating test data, and importing the generated test data into the generated Hive table. By configuring the file storage format of the Hive table, the Hive tables of different file storage formats can be generated to store the test data according to different test data requirements, so that the test data requirements of different test scenes and different Hive table storage formats are met. 本发明公开了一种基于Hive数据仓库的测试数据生成方法及装置,其中该方法包括:将测试数据的配置信息,配置到在关系型数据库中,其中,配置信息中至少包含:用于存储测试数据的Hive表的文件存储格式;根据配置信息,生成相应文件存储格式的Hive表;执行Spark任务,生成测试数据,并将生成的测试数据导入生成的Hiv