avantgardnerio opened a new issue, #287:
URL: https://github.com/apache/arrow-ballista/issues/287

   **Describe the bug**
   
   In `datafusion-cli` I can run: 
   
   ```
   /snap/bin/cargo run --color=always --bin datafusion-cli --manifest-path 
/home/bgardner/workspace/ballista/arrow-datafusion/datafusion-cli/Cargo.toml
       Finished dev [unoptimized + debuginfo] target(s) in 0.11s
        Running `target/debug/datafusion-cli`
   DataFusion CLI v12.0.0
   select 1;
   +----------+
   | Int64(1) |
   +----------+
   | 1        |
   +----------+
   1 row in set. Query took 0.004 seconds.
   create external table customer stored as CSV WITH HEADER ROW
       LOCATION 
'/home/bgardner/workspace/ballista/arrow-datafusion/datafusion/core/tests/tpch-csv/customer.csv';
   0 rows in set. Query took 0.021 seconds.
   
   select * from customer limit 1;
   
+-----------+--------------------+---------------------------------------+-------------+-----------------+-----------+--------------+-------------------------------------------------------------------------------------------------------------------+
   | c_custkey | c_name             | c_address                             | 
c_nationkey | c_phone         | c_acctbal | c_mktsegment | c_comment            
                                                                                
             |
   
+-----------+--------------------+---------------------------------------+-------------+-----------------+-----------+--------------+-------------------------------------------------------------------------------------------------------------------+
   | 2         | Customer#000000002 | XSTf4,NCwDVaWNe6tEgvwfmRchLXak        | 
13          | 23-768-687-3665 | 121.65    | AUTOMOBILE   | l accounts. blithely 
ironic theodolites integrate boldly: caref                                      
             |
   
+-----------+--------------------+---------------------------------------+-------------+-----------------+-----------+--------------+-------------------------------------------------------------------------------------------------------------------+
   9 rows in set. Query took 0.011 seconds.
   ```
   
   In `ballista-cli` I get:
   
   ```
   /snap/bin/cargo run --color=always --bin ballista-cli --manifest-path 
/home/bgardner/workspace/ballista/arrow-ballista/ballista-cli/Cargo.toml -- 
--host 127.0.0.1 --port 50050
       Finished dev [unoptimized + debuginfo] target(s) in 0.09s
        Running `target/debug/ballista-cli --host 127.0.0.1 --port 50050`
   Ballista CLI v0.8.0
   create external table customer stored as CSV with header row
       location 
'/home/bgardner/workspace/ballista/arrow-datafusion/datafusion/core/tests/tpch-csv/customer.csv';
   0 rows in set. Query took 0.002 seconds.
   select * from customer limit 5;
   [2022-09-27T20:18:42Z ERROR 
ballista_core::execution_plans::distributed_query] Job rkjseLs failed: Task 
rkjseLs/1/0 failed: Task failed due to Tokio error: DataFusion error: 
Execution("ArrowError(InvalidArgumentError(\"must either specify a row count or 
at least one column\"))")
       
   ArrowError(ExternalError(Execution("Job rkjseLs failed: Task rkjseLs/1/0 
failed: Task failed due to Tokio error: DataFusion error: 
Execution(\"ArrowError(InvalidArgumentError(\\\"must either specify a row count 
or at least one column\\\"))\")\n")))
   select c_name from customer limit 5;
   SchemaError(FieldNotFound { qualifier: None, name: "c_name", valid_fields: 
Some([]) })
   ```
   
   **To Reproduce**
   
   Described above
   
   **Expected behavior**
   
   They work the same
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to