Quantcast
Channel: Hortonworks » All Topics
Viewing all articles
Browse latest Browse all 5121

Handling of quoted csv format (through Sandbox web interface)

$
0
0

Replies: 0

Note that I’m working with Sandbox simply as a learning exercise – this is not a production issue for me.

Within the Sandbox web interface, I created an HCatalog table for a file with a quoted csv format. By this I mean “ABC”,”DEF”,”1.0″…etc.

The actual data contains all fields including those with numeric values enclosed in double-quotes.

I’m finding that if I define these numeric columns are anything other than string type (e.g. float or int), the resulting table displays the values as NULL, presumably because the quotation marks are taken as an indication that these can only be string values.

When choosing the column delimiter within the web interface, I tried selecting the checkbox for Excel style functionality ( I forget the exact description). Within the data preview, this caused all the values to be shown without the quotes, but after the table was defined the browse function still showed NULL for any fields defined as type float or int.

Is there any way to have HCatalog cast these “string” values as numeric type fields?

Is this an issue with Sandbox (i.e. GUI provides access to commonly used functions, but not all), or is this a current limitation of the current release of HCatalog or Hive?

I looked at documentation at http://incubator.apache.org/hcatalog/docs/r0.5.0/index.html, but couldn’t find anything about how delimiter or file formats are to be specified. There was some information for Hive, but not addressing this. I also checked the issues.apache.org, but couldn’t see anything on this.


Viewing all articles
Browse latest Browse all 5121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>