Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B897318BB5 for ; Tue, 19 Jan 2016 17:22:40 +0000 (UTC) Received: (qmail 13881 invoked by uid 500); 19 Jan 2016 17:22:40 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 13802 invoked by uid 500); 19 Jan 2016 17:22:39 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 13770 invoked by uid 99); 19 Jan 2016 17:22:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jan 2016 17:22:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C5C512C0453 for ; Tue, 19 Jan 2016 17:22:39 +0000 (UTC) Date: Tue, 19 Jan 2016 17:22:39 +0000 (UTC) From: "Joel Bernstein (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-8571) Wire the ConcatOperation into the SQLhandler MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-8571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15107035#comment-15107035 ] Joel Bernstein commented on SOLR-8571: -------------------------------------- Once this is done we can support the following construct: {code} daemon(update(jdbc(connection="jdbc:solr://zkHost?collection=collection1&numWorkers=10&aggregationMode=map_reduce", sql="select year, month, concat('month, year', '_') as id, sum(price) from tablex group by year, month"))) {code} In the code above the jdbc stream is connecting to a SolrCloud and running a SQL aggregate query which is used to update another SolrCloud collection. The daemon code will run this in the background at intervals. The concat function creates the id field on the fly so aggregates update properly. > Wire the ConcatOperation into the SQLhandler > -------------------------------------------- > > Key: SOLR-8571 > URL: https://issues.apache.org/jira/browse/SOLR-8571 > Project: Solr > Issue Type: New Feature > Reporter: Joel Bernstein > Priority: Minor > > This will support the *concat* function. Syntax: > {code} > select a, b, concat('a,b', '|') as c from tableX > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org