       if condensedQuery.split
         switch condensedQuery.split.bucket
           when 'identity'
-            if aproximate
+            if approximate
               queryFn = druidQueryFns.topN
             else
               done('not implemented yet'); return

        throw new Error("must have an aggregate or an arithmetic")

  addApply: (apply) ->
    throw new Error("filtered applies are not supported yet") in apply.filter
    @addApplyHelper(apply, false)
    return this


}


module.exports = ({requester, dataSource, timeAttribute, approximate, filter}) ->
  timeAttribute or= 'time'
  approximate ?= true
  return (query, callback) ->
    condensedQuery = driverUtil.condenseQuery(query)

