From dev-return-2805-archive-asf-public=cust-asf.ponee.io@orc.apache.org Mon May 20 11:23:01 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 975F6180627 for ; Mon, 20 May 2019 13:23:01 +0200 (CEST) Received: (qmail 30033 invoked by uid 500); 20 May 2019 11:23:01 -0000 Mailing-List: contact dev-help@orc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@orc.apache.org Delivered-To: mailing list dev@orc.apache.org Received: (qmail 30022 invoked by uid 99); 20 May 2019 11:23:00 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 May 2019 11:23:00 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4E09DE299F for ; Mon, 20 May 2019 11:23:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 06F6720FEB for ; Mon, 20 May 2019 11:23:00 +0000 (UTC) Date: Mon, 20 May 2019 11:23:00 +0000 (UTC) From: "Oleksiy Sayankin (JIRA)" To: dev@orc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ORC-502) Hive ORC read INT, BIGINT as NULL for Data created by spark MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Oleksiy Sayankin created ORC-502: ------------------------------------ Summary: Hive ORC read INT, BIGINT as NULL for Data created by spark Key: ORC-502 URL: https://issues.apache.org/jira/browse/ORC-502 Project: ORC Issue Type: Bug Reporter: Oleksiy Sayankin *Preconditions* Create file {{ratings.csv}} and put it to HDFS {{/user/test/rating/ratings.csv}}. {code} userId,movieId,rating,timestamp 1,2,4.5,1784325658 {code} *STR:* 1. Using spark (tested on version 2.2.1 and 2.3.1) created {{dataframe(df)}} of using {{interSchema}} from a CSV file {code} val df =spark.read.format("csv").option("header","true").option("inferSchema","true").load("/user/test/rating/ratings.csv") {code} 2. Now save the df into ORC format file. {code} df.write.format("orc").save("/user/test/spark_rating_orc_typesafe") {code} 3. Using hive 2.3. Try creating hive external table respective. {code} create external table rating_orc_hive_type_1(userId int,movieId int,rating double, `timestamp` int) stored as ORC location "/user/test/spark_orc_rating_typesafe/"; {code} 4. Do query {code} select * from rating_orc_hive_type_1; {code} Only double value is printed. Null for integer and even for BIGINT. {code} OK NULL NULL 4.5 1784325658 {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)