epam / epam/parso

[QUESTION] Identify TIME Column Type?

Open
#90 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
79
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Thank you very much for writing (and open sourcing) this really great library! I am working on incorporating this into Apache Drill which will enable users to use Drill to query SAS files with SQL. I ran into a small issue which I can't seem to figure out. I need to get the schema of the data. Right now, I have a `for` loop that iterates over the columns and maps them to the correct type of Drill vector.

```java
List columns = sasFileReader.getColumns();
```
The issue I'm running into is with `TIME` formats. With the code above, parso only seems to return times as `longs`. Is there any way to programmatically identify whether a column is a time and not a `long`?

Here's a link to my code: https://github.com/cgivre/drill/tree/format-sas
The relevant code can be found in the `contrib/format-sas` folder.

Thanks!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.