Coder Social home page Coder Social logo

Compatibility with Hive about orc HOT 2 CLOSED

scritchley avatar scritchley commented on August 29, 2024
Compatibility with Hive

from orc.

Comments (2)

scritchley avatar scritchley commented on August 29, 2024

Hi, I've just tested a file with the same schema and had no issue. Please find the file attached. Can you confirm whether this file also produces an error?

Note, the file is zipped in order to upload to github. Please ensure to unzip before testing.
test.orc.zip

Here is create table statement I used to produce a table over this file:

create external table orctest (
  			t_int int,
			t_int64 bigint,
			t_float32 float,
			t_float64 double,
			t_string string,
			t_bool boolean,
			t_timestamp timestamp,
			t_list array<int>,
			t_map map<string,int>,
			t_nested struct<
				t_int:int,
				t_int64:bigint,
				t_float32:float,
				t_float64:double,
				t_string:string,
				t_bool:boolean,
				t_timestamp:timestamp
			>
) 
stored as orc
location '/user/admin/orctest';

from orc.

michaeltrobinson avatar michaeltrobinson commented on August 29, 2024

@scritchley Yes I can confirm that file does work for me.

Could you take a look at this example of how I am writing the file: https://gist.github.com/michaeltrobinson/ab2b7c2ed2e43fc24ca3ecf65965c21f

EDIT: I figured it out, silly stupid mistake on my end. I had modified the version I had in vendor with a fmt.Println to debug an issue I was having parsing the schema. That was putting bad bytes into my output since I was writing to stdout.

from orc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.