You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Xuefu Zhang <xz...@cloudera.com> on 2014/04/26 06:25:57 UTC
Include a binary file in a patch
Hi,
I'm wondering if anyone knows how to generate a patch to include a new
binary file? I found myself needing to include an Avro data file as part of
a test. I have been playing .gitattributes without success.
Also, I found that Git thinks some of Hive's .q.out files are binary. Thus,
when I regenerated the test output and generated a patch using git diff,
the patch doesn't include the diff. Instead, the patch including something
like "Binary file X and Y diff". I guess this is the same problem as above.
Any input is greatly appreciate.
Thanks,
Xuefu
Re: Include a binary file in a patch
Posted by Xuefu Zhang <xz...@cloudera.com>.
Yes. That worked for me. Thanks, Harish!
--Xuefu
On Fri, Apr 25, 2014 at 9:36 PM, Harish Butani <hb...@hortonworks.com>wrote:
> for large .q.out 'git diff --text' works.
>
> regards,
> Harish.
>
>
> On Fri, Apr 25, 2014 at 9:25 PM, Xuefu Zhang <xz...@cloudera.com> wrote:
>
> > Hi,
> >
> > I'm wondering if anyone knows how to generate a patch to include a new
> > binary file? I found myself needing to include an Avro data file as part
> of
> > a test. I have been playing .gitattributes without success.
> >
> > Also, I found that Git thinks some of Hive's .q.out files are binary.
> Thus,
> > when I regenerated the test output and generated a patch using git diff,
> > the patch doesn't include the diff. Instead, the patch including
> something
> > like "Binary file X and Y diff". I guess this is the same problem as
> > above.
> >
> > Any input is greatly appreciate.
> >
> > Thanks,
> > Xuefu
> >
>
> --
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity to
> which it is addressed and may contain information that is confidential,
> privileged and exempt from disclosure under applicable law. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any printing, copying, dissemination, distribution, disclosure or
> forwarding of this communication is strictly prohibited. If you have
> received this communication in error, please contact the sender immediately
> and delete it from your system. Thank You.
>
Re: Include a binary file in a patch
Posted by Harish Butani <hb...@hortonworks.com>.
for large .q.out 'git diff --text' works.
regards,
Harish.
On Fri, Apr 25, 2014 at 9:25 PM, Xuefu Zhang <xz...@cloudera.com> wrote:
> Hi,
>
> I'm wondering if anyone knows how to generate a patch to include a new
> binary file? I found myself needing to include an Avro data file as part of
> a test. I have been playing .gitattributes without success.
>
> Also, I found that Git thinks some of Hive's .q.out files are binary. Thus,
> when I regenerated the test output and generated a patch using git diff,
> the patch doesn't include the diff. Instead, the patch including something
> like "Binary file X and Y diff". I guess this is the same problem as
> above.
>
> Any input is greatly appreciate.
>
> Thanks,
> Xuefu
>
--
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.