@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
1414limitations under the License.
1515*/
1616
17- use clap:: { Parser , Subcommand , ValueEnum } ;
17+ use clap:: { Parser , Subcommand } ;
1818
1919#[ derive( Parser ) ]
2020#[ command( about = "Spice.ai data generation tool - generates Arrow data and writes to S3" ) ]
@@ -63,14 +63,6 @@ pub struct CommonArgs {
6363 #[ arg( long, default_value = "" ) ]
6464 pub prefix : String ,
6565
66- /// Logical table format propagated to system adapters
67- #[ arg( long, value_enum, default_value = "parquet" ) ]
68- pub table_format : TableFormat ,
69-
70- /// Executor instance type label propagated to adapters for dashboarding
71- #[ arg( long, default_value = "unknown" ) ]
72- pub executor_instance_type : String ,
73-
7466 /// AWS region
7567 #[ arg( long) ]
7668 pub region : Option < String > ,
@@ -93,31 +85,10 @@ pub struct DatasetConfig {
9385pub struct TargetConfig {
9486 pub bucket : String ,
9587 pub prefix : String ,
96- pub table_format : TableFormat ,
97- pub executor_instance_type : String ,
9888 pub region : Option < String > ,
9989 pub endpoint : Option < String > ,
10090}
10191
102- #[ derive( Clone , Debug , ValueEnum ) ]
103- #[ value( rename_all = "lower" ) ]
104- pub enum TableFormat {
105- Iceberg ,
106- Parquet ,
107- Delta ,
108- }
109-
110- impl std:: fmt:: Display for TableFormat {
111- fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
112- let value = match self {
113- Self :: Iceberg => "iceberg" ,
114- Self :: Parquet => "parquet" ,
115- Self :: Delta => "delta" ,
116- } ;
117- write ! ( f, "{value}" )
118- }
119- }
120-
12192pub struct IngestorConfig {
12293 pub max_concurrency : usize ,
12394}
@@ -135,8 +106,6 @@ impl CommonArgs {
135106 TargetConfig {
136107 bucket : self . bucket . clone ( ) ,
137108 prefix : self . prefix . clone ( ) ,
138- table_format : self . table_format . clone ( ) ,
139- executor_instance_type : self . executor_instance_type . clone ( ) ,
140109 region : self . region . clone ( ) ,
141110 endpoint : self . endpoint . clone ( ) ,
142111 }
0 commit comments