From issues-return-261030-archive-asf-public=cust-asf.ponee.io@spark.apache.org Fri Aug 7 12:22:02 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id BE11C180181 for ; Fri, 7 Aug 2020 14:22:02 +0200 (CEST) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id 0136B126262 for ; Fri, 7 Aug 2020 12:22:01 +0000 (UTC) Received: (qmail 94378 invoked by uid 500); 7 Aug 2020 12:22:01 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 94368 invoked by uid 99); 7 Aug 2020 12:22:01 -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; Fri, 07 Aug 2020 12:22:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AA6DB43590 for ; Fri, 7 Aug 2020 12:22:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 2DC63780210 for ; Fri, 7 Aug 2020 12:22:00 +0000 (UTC) Date: Fri, 7 Aug 2020 12:22:00 +0000 (UTC) From: "yx91490 (Jira)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SPARK-32563) spark-sql doesn't support insert into mixed static & dynamic partition MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-32563?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] yx91490 updated SPARK-32563: ---------------------------- Description:=20 spark-sql doesn't support insert into mixed static & dynamic partition, for= example: source table : {code:java} CREATE TABLE `id_name`(`id` int, `name` string) PARTITIONED BY (`dt` string) {code} dest table: {code:java} CREATE TABLE `id_name_dt1_dt2`(`id` int, `name` string) PARTITIONED BY (`dt1` string, `dt2` string) {code} insert sql: {code:java} insert into table tmp.id_name_dt1_dt2 partition(dt1=3D'beijing',dt2) select= * from tmp.id_name; {code} result: data not inserted, dest table partition not added. =C2=A0 there are two warns: {code:java} 20/08/07 14:32:28 WARN warehouse: Cannot create partition spec from hdfs://= nameservice/; missing keys [dt1] 20/08/07 14:32:28 WARN FileOperations: Ignoring invalid DP directory hdfs:/= /nameservice/user/hive/warehouse/tmp.db/id_name_dt1_dt2/.hive-staging_hive_= 2020-08-07_14-32-02_538_7897451753303149223-1/-ext-10000/dt2=3D2002 {code} was: spark-sql doesn't support insert into mixed static & dynamic partition, for= example: source table : {code:java} CREATE TABLE `id_name`(`id` int, `name` string) PARTITIONED BY (`dt` string) {code} dest table: {code:java} CREATE TABLE `id_name_dt1_dt2`(`id` int, `name` string) PARTITIONED BY (`dt1` string, `dt2` string) {code} insert sql: {code:java} insert into table tmp.id_name_dt1_dt2 partition(dt1=3D'beijing',dt2) select= * from tmp.id_name; {code} result: data not inserted, dest table partition not added > spark-sql doesn't support insert into mixed static & dynamic partition=20 > ----------------------------------------------------------------------- > > Key: SPARK-32563 > URL: https://issues.apache.org/jira/browse/SPARK-32563 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.3.2 > Environment: HDP=C2=A0version 2.3.2.3.1.4.0-315 > Reporter: yx91490 > Priority: Major > Attachments: SPARK-32563.log > > > spark-sql doesn't support insert into mixed static & dynamic partition, f= or example: > source table : > {code:java} > CREATE TABLE `id_name`(`id` int, `name` string) > PARTITIONED BY (`dt` string) > {code} > dest table: > {code:java} > CREATE TABLE `id_name_dt1_dt2`(`id` int, `name` string) > PARTITIONED BY (`dt1` string, `dt2` string) > {code} > insert sql: > {code:java} > insert into table tmp.id_name_dt1_dt2 partition(dt1=3D'beijing',dt2) sele= ct * from tmp.id_name; > {code} > result: > data not inserted, dest table partition not added. > =C2=A0 > there are two warns: > {code:java} > 20/08/07 14:32:28 WARN warehouse: Cannot create partition spec from hdfs:= //nameservice/; missing keys [dt1] > 20/08/07 14:32:28 WARN FileOperations: Ignoring invalid DP directory hdfs= ://nameservice/user/hive/warehouse/tmp.db/id_name_dt1_dt2/.hive-staging_hiv= e_2020-08-07_14-32-02_538_7897451753303149223-1/-ext-10000/dt2=3D2002 > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org