Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2DD68118CD for ; Sat, 26 Apr 2014 04:26:38 +0000 (UTC) Received: (qmail 50083 invoked by uid 500); 26 Apr 2014 04:26:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 49481 invoked by uid 500); 26 Apr 2014 04:26:31 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 49451 invoked by uid 99); 26 Apr 2014 04:26:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2014 04:26:29 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of xzhang@cloudera.com designates 209.85.192.43 as permitted sender) Received: from [209.85.192.43] (HELO mail-qg0-f43.google.com) (209.85.192.43) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2014 04:26:17 +0000 Received: by mail-qg0-f43.google.com with SMTP id a108so4893931qge.2 for ; Fri, 25 Apr 2014 21:25:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=5j1G9+ivNWnn42CtIBFg+zdCLaaxbto3Dskh02hShVQ=; b=jBrWN7XoAG7ZoiqSisv0bpFgycNiMaJXNJt4jPJgzE+O1Kt1UMIIAwNIYhB8eS+lnC TRnq/uDF7BYTlhau1hQ6/pyqLLghlyhXYNNDqU/QpuerWvMUFXrvYLunncCj/uUIuPNm UnajWwls10+N4j7XKnxKdFiE8oYzg8kj2DFx7wVX4rnkMDDplyfMOyX/rvaohBx5aIw4 REBLfvfhYzovBLwUUmlS9vJY7FVFtEYtzENhiK3isr9K1e1WX7J1+64Oqu8wk+nztATe r1NfDZ+sVy2b5ObGrBZdIyKYbYTGD5AqYpzXZXMKjoZLxgZXsryn0UBU9RKUGtJrTiF6 1ePA== X-Gm-Message-State: ALoCoQm3xoJHM28ju1lj+VzzWYS5i8SOHV4vCkPlmHh4igXc54nADJmLAyZB/kpp/PSYb8loZYiu MIME-Version: 1.0 X-Received: by 10.224.44.17 with SMTP id y17mr17210133qae.36.1398486357049; Fri, 25 Apr 2014 21:25:57 -0700 (PDT) Received: by 10.96.135.196 with HTTP; Fri, 25 Apr 2014 21:25:57 -0700 (PDT) Date: Fri, 25 Apr 2014 21:25:57 -0700 Message-ID: Subject: Include a binary file in a patch From: Xuefu Zhang To: dev@hive.apache.org Content-Type: multipart/alternative; boundary=047d7bdc88e48954a904f7ea7a4d X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc88e48954a904f7ea7a4d Content-Type: text/plain; charset=ISO-8859-1 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 --047d7bdc88e48954a904f7ea7a4d--