Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeTask sort data as bytecomparator #24

Open
zoken opened this issue Jul 17, 2013 · 1 comment
Open

NativeTask sort data as bytecomparator #24

zoken opened this issue Jul 17, 2013 · 1 comment
Labels

Comments

@zoken
Copy link
Collaborator

zoken commented Jul 17, 2013

Issue founded by a testcase:
using nativetask to read a sequence file with IntWritable vey and IntWritable value, then write to HDFS.

sample data(sequence file content):
1649017694 409447690
1961194481 389281748
1972912194 -1727627767
-1962537218 1879855206
-424314478 -1772058909
-1622710398 -666322232
-691459978 1444896200
-1275884969 1162424531
-976606073 -1485431141

Nativetask output content:
1649017694 409447690
1928185315 -267386735
1961194481 389281748
1972912194 -1727627767
-1962537218 1879855206
-1622710398 -666322232
-1275884969 1162424531
-976606073 -1485431141
-691459978 1444896200
-424314478 -1772058909

Expected output content:
-1962537218 1879855206
-1622710398 -666322232
-1275884969 1162424531
-976606073 -1485431141
-691459978 1444896200
-424314478 -1772058909
1649017694 409447690
1928185315 -267386735
1961194481 389281748
1972912194 -1727627767

Remark:
In this case, we expect result sorted by int, factually it sorted by byte.

@clockfly
Copy link
Owner

Implemented

@clockfly clockfly reopened this Jul 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants