From dev-return-58936-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Mon Dec 9 16:41:03 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 C55FE18064C for ; Mon, 9 Dec 2019 17:41:02 +0100 (CET) Received: (qmail 84027 invoked by uid 500); 9 Dec 2019 16:41:01 -0000 Mailing-List: contact dev-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list dev@phoenix.apache.org Received: (qmail 83912 invoked by uid 99); 9 Dec 2019 16:41: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; Mon, 09 Dec 2019 16:41: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 AB8DAE2D8D for ; Mon, 9 Dec 2019 16:41: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 2CDBE780429 for ; Mon, 9 Dec 2019 16:41:00 +0000 (UTC) Date: Mon, 9 Dec 2019 16:41:00 +0000 (UTC) From: "Josh Elser (Jira)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (PHOENIX-5603) Phoenix add sybmol 0x00 to first in key 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/PHOENIX-5603?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Josh Elser resolved PHOENIX-5603. --------------------------------- Resolution: Not A Problem You are describing how the Salted Tables feature in Phoenix works. The salt= byte is prefixed onto the rowkey. Please ask questions on the user mailing list in the future. > Phoenix add sybmol 0x00 to first in key > --------------------------------------- > > Key: PHOENIX-5603 > URL: https://issues.apache.org/jira/browse/PHOENIX-5603 > Project: Phoenix > Issue Type: Bug > Affects Versions: 5.0.0 > Environment: HDP 3.0=C2=A0 > hbase=C2=A02.0.2.3.1.0.0-78 > Reporter: Rustam Iksanov > Priority: Major > Attachments: keyWObyte.jpg, keyWbyte.jpg > > > Phoenix add symbol `0X00` to rowkey in the salted table. If data load wit= hout phoenix, where aren't this byte. > Create table with next script: > ```CREATE TABLE TKT ("ROWKEY" varchar PRIMARY KEY, > CREATED bigint);``` > =C2=A0 > Write data always from spark connector, for example: > ```df.write.format("org.apache.phoenix.spark").mode("overwrite").option("= zkUrl", "zkServAdrs:2181").option("table", "TKT").save()``` > =C2=A0 > And 2 scan from hbase shell. One table with salt, second similar table wi= thout salt. > =C2=A0 > Links to similar problem([https://stackoverflow.com/questions/47809243/ph= oenix-salted-table-rowkey-issue-with-hbase]) -- This message was sent by Atlassian Jira (v8.3.4#803005)