waitingkuo opened a new issue, #3176:
URL: https://github.com/apache/arrow-datafusion/issues/3176

   **Describe the bug**
   A clear and concise description of what the bug is.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   create this `time.csv`
   ```csv
   c0,c1,c2
   1,00:00:00,2000-01-01T00:00:00
   2,00:01:00,2000-01-01T00:00:00
   3,00:02:00,2000-01-01T00:00:00
   ```
   
   the query for time doesn't work while timestamp works
   
   ```bash
   DataFusion CLI v10.0.0
   ❯ create external table a (c0 int, c1 time, c2 timestamp) stored as csv with 
header row location 'time.csv';
   0 rows in set. Query took 0.020 seconds.
   
   ❯ select c0 from a;
   +----+
   | c0 |
   +----+
   | 1  |
   | 2  |
   | 3  |
   +----+
   3 rows in set. Query took 0.039 seconds.
   
   ❯ select c1 from a;
   ArrowError(ParseError("Unsupported data type Time64(Nanosecond)"))
   
   ❯ select c2 from a;
   +---------------------+
   | c2                  |
   +---------------------+
   | 1999-12-31 16:00:00 |
   | 1999-12-31 16:00:00 |
   | 1999-12-31 16:00:00 |
   +---------------------+
   3 rows in set. Query took 0.009 seconds.
   ```
   
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Additional context**
   Add any other context about the problem here.
   


-- 
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