You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2020/01/09 11:46:26 UTC

[phoenix-connectors] branch master updated: PHOENIX-5625 Move Phoenix Pig example directory to phoenix-connectors repo

This is an automated email from the ASF dual-hosted git repository.

stoty pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix-connectors.git


The following commit(s) were added to refs/heads/master by this push:
     new 0d50ca5  PHOENIX-5625 Move Phoenix Pig example directory to phoenix-connectors repo
0d50ca5 is described below

commit 0d50ca517c41071413743dafed519d96b58baf69
Author: Istvan Toth <st...@stoty.hu>
AuthorDate: Tue Dec 17 10:36:25 2019 +0100

    PHOENIX-5625 Move Phoenix Pig example directory to phoenix-connectors repo
---
 examples/pig/test.pig | 19 +++++++++++++++++++
 examples/pig/testdata | 18 ++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/examples/pig/test.pig b/examples/pig/test.pig
new file mode 100644
index 0000000..6835d00
--- /dev/null
+++ b/examples/pig/test.pig
@@ -0,0 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+A = load 'examples/pig/testdata' as (a:chararray, b:chararray, c:int, d:chararray, e: datetime) ;
+STORE A into 'hbase://TESTPHX' using org.apache.phoenix.pig.PhoenixHBaseStorage('localhost','-batchSize 1000');
diff --git a/examples/pig/testdata b/examples/pig/testdata
new file mode 100644
index 0000000..15f3f0b
--- /dev/null
+++ b/examples/pig/testdata
@@ -0,0 +1,18 @@
+00D300000000XHP	124	123456	weq	2012-12-12
+00D300000000XHP	111	123456	nab	2012-01-21
+00D300000000UIH	101	123456	ben	2014-01-01
+00D300000000XHP	124	123456	weq	2012-12-12
+00D300000000XHP	111	123456	nab	2012-01-21
+00D300000000UIH	101	123456	ben	2014-01-01
+00D300000000XHP	124	123456	weq	2012-12-12
+00D300000000XHP	111	123456	nab	2012-01-21
+00D300000000UIH	101	123456	ben	2014-01-01
+00D300000000XHP	124	123456	weq	2012-12-12
+00D300000000XHP	111	123456	nab	2012-01-21
+00D300000000UIH	101	123456	ben	2014-01-01
+00D300000000XHP	124	123456	weq	2012-12-12
+00D300000000XHP	111	123456	nab	2012-01-21
+00D300000000UIH	101	123456	ben	2014-01-01
+00D300000000XHP	124	123456	weq	2012-12-12
+00D300000000XHP	111	123456	nab	2012-01-21
+00D300000000UIH	101	123456	ben	2014-01-01