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 CB258200B50 for ; Fri, 29 Jul 2016 20:19:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C9CA4160A79; Fri, 29 Jul 2016 18:19:38 +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 E8852160A6E for ; Fri, 29 Jul 2016 20:19:37 +0200 (CEST) Received: (qmail 70815 invoked by uid 500); 29 Jul 2016 18:19:37 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 70798 invoked by uid 99); 29 Jul 2016 18:19:37 -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; Fri, 29 Jul 2016 18:19:37 +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 9C5BDC0E71 for ; Fri, 29 Jul 2016 18:19:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.179 X-Spam-Level: *** X-Spam-Status: No, score=3.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_BL_SPAMCOP_NET=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=streamingedge.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id PK6zWX_y3NeO for ; Fri, 29 Jul 2016 18:19:35 +0000 (UTC) Received: from mail-qt0-f173.google.com (mail-qt0-f173.google.com [209.85.216.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 971DE5F1B3 for ; Fri, 29 Jul 2016 18:19:35 +0000 (UTC) Received: by mail-qt0-f173.google.com with SMTP id 52so71377080qtq.3 for ; Fri, 29 Jul 2016 11:19:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=streamingedge.com; s=google; h=from:to:subject:date:message-id:mime-version:thread-index :content-language; bh=fokqAl/flXmFKyAl4wn5nZfpQXiHTIjUKDtm9NiRrQc=; b=yZYGsaAcW26NyPAetmZ6y7WL1rFdohCbYKQm3zFVWmejFzIK46EmGn03o0mpLnS/pI wvEvJ4/vU4NK51BNC79JiQJnxCaTzv7LTPYKx85wjA+V2MMAI58x7XMW2lNCRIyhqN1O 5lm2/C7mUy+Om3M5qKK4wEg6mCsCgaLKL0nh0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :thread-index:content-language; bh=fokqAl/flXmFKyAl4wn5nZfpQXiHTIjUKDtm9NiRrQc=; b=DeF1p/o4SYQAhapuoD68p9Hqw5cUGi/1jLFjIiMoDw3vaJOupIWP4NZqchsAL9MBdM V7/6lOymd8TVVMGE6FLNd7nmSejI71HLsQ5HPaXMJAL2wyTz2vo7zMjBI1fKbKichGhO 07zoijnZ01eybCxxUu9wF0XrK7HaEOxv9CPGddWpf94x/VksNHA+9fdc0VS/iAFT60Od /Wek2lz+Rr0llSUIA7+HwlYCpC20NJO7wRMCGy3G/hVZbO/NtWCv/Gq5IWGJhl6JYt6X 242sX2Wl5MlScCElI+lvB7ZLAMv1rRbeeVnf6cM1ZiYcy4GCZ/RYh7gkp9tqMhJSG725 PoWg== X-Gm-Message-State: AEkoouuFCCEvJqzOPPxOu4XfDSbyLgaaOudAO9Jxbf9/MSI1a0QlGgxoWE0fRXp3Mk9qEPfD5wmkeSgFPl574jca0wpzCXzpbqFM2b4fbWOM2dUkgReTv+Q8HebgB+blHatQ6aiKkI4YEe3VsMMFi3lkRwfZlv8apGNAn7YvACU9SpRWzEtxFyLtVmjxNmQ0Fq4dv3qTIA== X-Received: by 10.200.56.90 with SMTP id r26mr68176700qtb.37.1469816368728; Fri, 29 Jul 2016 11:19:28 -0700 (PDT) Received: from adminTHINK2 (static-100-37-140-131.nycmny.fios.verizon.net. [100.37.140.131]) by smtp.gmail.com with ESMTPSA id s52sm10712645qtc.4.2016.07.29.11.19.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Jul 2016 11:19:28 -0700 (PDT) From: "Davran Muzafarov" To: Subject: Flink and SQL Date: Fri, 29 Jul 2016 14:24:05 -0400 Message-ID: <002201d1e9c6$63ad4030$2b07c090$@streamingedge.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0023_01D1E9A4.DC9BEE50" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AdHpxR+8F89B+J+3RZGjGvogiJ00Mg== Content-Language: en-us archived-at: Fri, 29 Jul 2016 18:19:39 -0000 This is a multipart message in MIME format. ------=_NextPart_000_0023_01D1E9A4.DC9BEE50 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I could not find the way to reuse table names. tableEnv = TableEnvironment.getTableEnvironment(env); ..... Table table = .... tableEnv.registerTable( "table1", table ); Table table = tableEnv.sql( "select * from table1" ); ..... ..... Is it possible to "unregister" table or replace it with another one? Thank you. ------=_NextPart_000_0023_01D1E9A4.DC9BEE50 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

I could not = find the way to reuse table names.

 

tableEnv =3D = TableEnvironment.getTableEnvironment(env);

.....

 

Table table = =3D ....

tableEnv.registerTable( = "table1", table );

Table = table =3D tableEnv.sql( "select * from table1" = );

.....

.....

 

Is it = possible to "unregister" table or replace it with another = one?

 

 

Thank = you.

------=_NextPart_000_0023_01D1E9A4.DC9BEE50--