Hotfix weight table, writeback, chunking test

Branches/Merges are cheap in git. Just commit to this branch and merge
again to master and develop

On Wed, Sep 24, 2014 at 6:24 PM, Zifei Shan <notifications@github.com>
wrote:

> In
> src/main/scala/org/deepdive/inference/datastore/SQLInferenceDataStore.scala:
>
> > @@ -583,6 +575,15 @@ trait SQLInferenceDataStore extends InferenceDataStore with Logging {
> >          case _ => 0.0
> >        }
> >
> > +      // generate weight description
> > +      def generateWeightDesc(weightPrefix: String, weightVariables: Seq[String]) : String =
> > +        weightVariables.map ( v => s"""(CASE WHEN "${v}" IS NULL THEN '' ELSE "${v}"::text END)""" )
>
> Sorry I missed this earlier. It seems we don't need to use SQL conditions.
> Conditioning in Scala should already solve the problem, why struggling with
> SQL?
>
> I will change this in Mysql branch.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/HazyResearch/deepdive/pull/145/files#r18004771>.
>



-- 
Matteo Riondato, Ph.D.
Post-doc Researcher
Department of Computer Science
Stanford University