Commit 47a17fd 1 parent e0a670f commit 47a17fd Copy full SHA for 47a17fd
File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,8 @@ impl BallistaContext {
238
238
239
239
/// Create a DataFrame from a SQL statement.
240
240
///
241
- /// Async because CreateExternalTable might require to resolve the schema
241
+ /// This method is `async` because queries of type `CREATE EXTERNAL TABLE`
242
+ /// might require the schema to be infered.
242
243
pub async fn sql ( & self , sql : & str ) -> Result < Arc < dyn DataFrame > > {
243
244
let mut ctx = {
244
245
let state = self . state . lock ( ) . unwrap ( ) ;
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ syntax = "proto3";
20
20
21
21
package ballista.protobuf ;
22
22
23
- import "google/protobuf/timestamp.proto" ;
24
-
25
23
option java_multiple_files = true ;
26
24
option java_package = "org.ballistacompute.protobuf" ;
27
25
option java_outer_classname = "BallistaProto" ;
Original file line number Diff line number Diff line change @@ -182,7 +182,8 @@ impl ExecutionContext {
182
182
183
183
/// Creates a dataframe that will execute a SQL query.
184
184
///
185
- /// async because CreateExternalTable queries might need schema inference
185
+ /// This method is `async` because queries of type `CREATE EXTERNAL TABLE`
186
+ /// might require the schema to be infered.
186
187
pub async fn sql ( & mut self , sql : & str ) -> Result < Arc < dyn DataFrame > > {
187
188
let plan = self . create_logical_plan ( sql) ?;
188
189
match plan {
You can’t perform that action at this time.
0 commit comments