[ 
https://issues.apache.org/jira/browse/DRILL-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fabian Wilckens updated DRILL-1141:
-----------------------------------

    Description: 
Hi,

would be great to have a ISNUMERIC function in SQL because if you want to run a 
count on self-described data there should be an option to check wether the 
field is numeric and therefore countable.

if you have a CSV for example and the first line or some other lines (such as 
in a pagebreak when importing) include the fieldnames and therefore 
text-characters.

Would be great if a query such as: SELECT count(columns[0]) as number FROM 
dfs.`bla` WHERE ISNUMERIC(columns[0])=1

Thanks

  was:
Hi,

would be great to have a ISNUMERIC function in SQL because if you want to run a 
count on self-described data there should be an option to check wether the 
field is numeric and therefore countable.

Thanks


> ISNUMERIC should be implemented as a SQL function
> -------------------------------------------------
>
>                 Key: DRILL-1141
>                 URL: https://issues.apache.org/jira/browse/DRILL-1141
>             Project: Apache Drill
>          Issue Type: Improvement
>          Components: Functions - Drill
>    Affects Versions: 1.0.0-milestone-1
>         Environment: every environment
>            Reporter: Fabian Wilckens
>            Priority: Minor
>
> Hi,
> would be great to have a ISNUMERIC function in SQL because if you want to run 
> a count on self-described data there should be an option to check wether the 
> field is numeric and therefore countable.
> if you have a CSV for example and the first line or some other lines (such as 
> in a pagebreak when importing) include the fieldnames and therefore 
> text-characters.
> Would be great if a query such as: SELECT count(columns[0]) as number FROM 
> dfs.`bla` WHERE ISNUMERIC(columns[0])=1
> Thanks



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to