drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Givre <cgi...@gmail.com>
Subject NPE On UDF in Directory Query
Date Thu, 02 Feb 2017 03:11:59 GMT
Hello everyone, 
I’m working on a UDF (https://github.com/cgivre/drill-geoip-functions <https://github.com/cgivre/drill-geoip-functions>)
that does a bunch of IPGEO stuff.  So far it works relatively well, but I encountered a Null
Pointer Exception that I’m not quite sure how to resolve. 

If I execute the query:

SELECT getCountryInfo( ip ) 
FROM dfs.`data.csv`

It works.  If I try:

SELECT getCountryInfo (ip)
FROM dfs.`data.*`

It works..
But, I have data that is spread across multiple directories and when I try to use this function
like this, I get Null Pointer Exceptions.  Any suggestions?

SELECT getCountryInfo( ip )
FROM dfs.`dir1/`

(assuming dir1 contains other directories).

Thanks
— Charles
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message