lib/dataset/index.js
function (s) {
            var ret, m;
            if ((m = s.match(this._static.COLUMN_REF_RE1)) !== null) {
                ret = m.slice(1);
            }
            else if ((m = s.match(this._static.COLUMN_REF_RE2)) !== null) {
                ret = [null, m[1], m[2]];
            }
            else if ((m = s.match(this._static.COLUMN_REF_RE3)) !== null) {
                ret = [m[1], m[2], null];
            }
            else {
                ret = [null, s, null];
            }
            return ret;
        }
function (s) {
            var ret, m;
            if ((m = s.match(this._static.COLUMN_REF_RE1)) !== null) {
                ret = m.slice(1);
            }
            else if ((m = s.match(this._static.COLUMN_REF_RE2)) !== null) {
                ret = [null, m[1], m[2]];
            }
            else if ((m = s.match(this._static.COLUMN_REF_RE3)) !== null) {
                ret = [m[1], m[2], null];
            }
            else {
                ret = [null, s, null];
            }
            return ret;
        }
function ( s ) { var ret , m ; if ( ( m = s . match ( this . _static . COLUMN_REF_RE1 ) ) !== null ) { ret = m . slice ( 1 ) ; } else if ( ( m = s . match ( this . _static . COLUMN_REF_RE2 ) ) !== null ) { ret = [ null , m [ 1 ] , m [ 2 ] ] ; } else if ( ( m = s . match ( this . _static . COLUMN_REF_RE3 ) ) !== null ) { ret = [ m [ 1 ] , m [ 2 ] , null ] ; } else { ret = [ null , s , null ] ; } return ret ; }
Can either be a string or null.


@example
//columns
table__column___alias //=> table.column as alias
table__column //=> table.column
//tables
schema__table___alias //=> schema.table as alias
schema__table //=> schema.table

//name and alias
columnOrTable___alias //=> columnOrTable as alias



@return {String[]} an array with the elements being:
<ul>
<li>For columns :[table, column, alias].</li>
<li>For tables : [schema, table, alias].</li>
</ul>
Can either be a string or null .