Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Drill >> mail # dev >> Re: [jira] [Commented] (DRILL-159) 1.sql


+
Sree V 2013-07-30, 17:18
+
Ted Dunning 2013-07-30, 18:24
+
Sree V 2013-07-30, 19:20
+
Sree V 2013-07-30, 06:14
+
Ted Dunning 2013-07-30, 07:11
+
Sree V 2013-07-30, 15:41
+
Julian Hyde 2013-07-30, 21:21
+
Sree V 2013-07-30, 23:33
+
Sree V 2013-07-30, 23:37
+
Ted Dunning 2013-07-31, 06:54
+
Julian Hyde 2013-07-31, 07:31
+
Ted Dunning 2013-07-31, 07:57
+
Sree V 2013-07-31, 19:17
+
Julian Hyde 2013-07-31, 19:45
+
Ted Dunning 2013-07-31, 23:55
Copy link to this message
-
Re: [jira] [Commented] (DRILL-159) 1.sql
On Jul 31, 2013, at 4:55 PM, Ted Dunning <[EMAIL PROTECTED]> wrote:

> I mean "where is the file name?"
>
> I didn't see anything in the schema that looked like a file name.

File name is one of the operands to DrillTable.Factory. My example wrongly omitted it, but Sree's example has a "path" operand:

private static final String MODEL_LINEITEM           "{\n"
        + "  version: '1.0',\n"
        + "   schemas: [\n"
        + "     {\n"
        + "       name: 'LINEITEM',\n"
        + "       tables: [\n"
        + "         {\n"
        + "           name: 'LINEITEM',\n"
        + "           type: 'custom',\n"
        + "           factory: '" + DrillTable.Factory.class.getName() + "',\n"
        + "           operand: {\n"
        + "             path: '/lineitem.tbl.1.json'\n"
        + "           }\n"
        + "         }\n"
        + "       ]\n"
        + "     }\n"
        + "   ]\n"
        + "}";

Julian
+
Ted Dunning 2013-08-01, 01:38
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB