Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
493 views
in Technique[技术] by (71.8m points)

bigdata - Hot do automatically generate sqls and test them according to semantics and grammar of a DDL?

For example, there is a table ddl pattern:

CREATE TABLE [IF NOT EXISTS]
  [<database_name>.]<table_name> 
  [(<column_name> <data_type> [COMMENT '<column_comment>'] 
    [, <column_name> <data_type> ...])]
  [COMMENT '<table_comment>'] 
  [PARTITIONED BY (<part_key> <data_type> [COMMENT '<partition_comment>']    
    [, <part_key> <data_type>...])] 
  [CLUSTERED BY (<col_name> [, <col_name>...])  
    [SORTED BY (<col_name> [ASC|DESC] [, <col_name> [ASC|DESC]...])] 
  INTO <num_buckets> BUCKETS]
  STORED AS TABLE_TYPE WITH ((TABLESIZE <table_size>KB|MB|GB|TB|PB|EB|ZB|BB) | (TABLET NUMBER <tablet_number> CAPACITY NUMBER <capacity_number> REPLICATION <replication_number>))  
  [TBLPROPERTIES ('<property_name>'='<property_value>', ...)]
  [SERDEPROPERTIES ('<property_name>'='<property_value>', ...)];

Are there some open source tools could generate sqls and test them automatically if the DDL pattern given?

question from:https://stackoverflow.com/questions/66057314/hot-do-automatically-generate-sqls-and-test-them-according-to-semantics-and-gram

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...