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 Threaded View
Drill >> mail # dev >> Re: [jira] [Commented] (DRILL-159) 1.sql


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
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