Open sananguliyev opened 3 years ago
storage_descriptor should not require all arguments for table builder because of virtual view. e.g.
storage_descriptor
table = TableBuilder( table_name="test_view", db_name="default", owner="test", table_type="VIRTUAL_VIEW", storage_descriptor=storage_descriptor, view_expanded_text="select * from test", view_original_text="select * from test" ).build()
When the user wants to create a virtual view, he/she should be able to just pass columns to storage descriptor instead of everything.
Instead of
storage_descriptor = StorageDescriptorBuilder( columns=columns, location="s3a://path/to/file", input_format="org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat", output_format="org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat", serde_info=serde_info, ).build()
user should pass just
storage_descriptor = StorageDescriptorBuilder( columns=columns, ).build()
storage_descriptor
should not require all arguments for table builder because of virtual view. e.g.When the user wants to create a virtual view, he/she should be able to just pass columns to storage descriptor instead of everything.
Instead of
user should pass just