Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9FADA200C52 for ; Mon, 10 Apr 2017 21:46:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9E1F6160BA7; Mon, 10 Apr 2017 19:46:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E2EAF160B7F for ; Mon, 10 Apr 2017 21:46:44 +0200 (CEST) Received: (qmail 68982 invoked by uid 500); 10 Apr 2017 19:46:44 -0000 Mailing-List: contact dev-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list dev@atlas.incubator.apache.org Received: (qmail 68970 invoked by uid 99); 10 Apr 2017 19:46:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2017 19:46:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B9CE8C34C1 for ; Mon, 10 Apr 2017 19:46:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id LV7SauvK4rmw for ; Mon, 10 Apr 2017 19:46:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9510D5F1E9 for ; Mon, 10 Apr 2017 19:46:42 +0000 (UTC) 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 CD658E0538 for ; Mon, 10 Apr 2017 19:46:41 +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 87B2120D54 for ; Mon, 10 Apr 2017 19:46:41 +0000 (UTC) Date: Mon, 10 Apr 2017 19:46:41 +0000 (UTC) From: "Sharmadha Sainath (JIRA)" To: dev@atlas.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ATLAS-1730) Error after updating attribute's data type of an Atlas type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Apr 2017 19:46:45 -0000 Sharmadha Sainath created ATLAS-1730: ---------------------------------------- Summary: Error after updating attribute's data type of an Atlas type Key: ATLAS-1730 URL: https://issues.apache.org/jira/browse/ATLAS-1730 Project: Atlas Issue Type: Bug Components: atlas-core Affects Versions: 0.8-incubating, 0.9-incubating Reporter: Sharmadha Sainath 1.Created a type with one of its attributes' type as date and POSTed the type definition to {code} /api/atlas/v2/types/typedefs {code} 2. Tried to update the attribute data type to string , hence modified the JSON (changed "date" to "string") and PUT the JSON to the same API which succeeded. 3. Tried to create an entity of the type and provided "val1" as value for the string attribute (which was updated from date). 4. Entity creation failed with {code} java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String {code} This could be a rare one but this scenario might cause issues when user initially gave data type as "date" by mistake and wants to update it as "string". Also , since attribute delete is not allowed as part of type update , attribute with "date" type can't be deleted and recreated with string. -- This message was sent by Atlassian JIRA (v6.3.15#6346)