From brad.cantin at gmail.com Wed Sep 3 10:55:09 2008 From: brad.cantin at gmail.com (Brad Cantin) Date: Wed, 3 Sep 2008 10:55:09 -0400 Subject: [Activewarehouse-discuss] using rails 2.1 Message-ID: <7140a9950809030755h1c639316m26ee83319b77638a@mail.gmail.com> Hey there. I am starting on my first active warehouse project. I understand the current active warehouse plugin is not compabable with rails 2.1. But I am going to get (at least) the sample project in active_warehouse/rails_warehouse to work. I will detail my frustra.... progress. once I have a working plugin with 2.1, what should I do then to release it ? thanks much Brad -------------- next part -------------- An HTML attachment was scrubbed... URL: From mghaught at gmail.com Wed Sep 3 14:23:40 2008 From: mghaught at gmail.com (Marty Haught) Date: Wed, 3 Sep 2008 12:23:40 -0600 Subject: [Activewarehouse-discuss] using rails 2.1 In-Reply-To: <7140a9950809030755h1c639316m26ee83319b77638a@mail.gmail.com> References: <7140a9950809030755h1c639316m26ee83319b77638a@mail.gmail.com> Message-ID: <57f29e620809031123r75c167b4xfd9adb6962529429@mail.gmail.com> Hi Brad, Why don't you post back your results to the list. I know we'll be upgrading to 2.1 in the near future so we'll need to do the same thing. I'm sure between us we can get a pull request put together so it will be done. Cheers, Marty On Wed, Sep 3, 2008 at 8:55 AM, Brad Cantin wrote: > Hey there. > > I am starting on my first active warehouse project. I understand the > current active warehouse plugin is not compabable with rails 2.1. But I am > going to get (at least) the sample project in > active_warehouse/rails_warehouse to work. > > I will detail my frustra.... progress. once I have a working plugin with > 2.1, what should I do then to release it ? > > thanks much > > Brad > > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss > > From thibaut.barrere at gmail.com Wed Sep 3 15:08:44 2008 From: thibaut.barrere at gmail.com (=?ISO-8859-1?Q?Thibaut_Barr=E8re?=) Date: Wed, 3 Sep 2008 21:08:44 +0200 Subject: [Activewarehouse-discuss] using rails 2.1 In-Reply-To: <7140a9950809030755h1c639316m26ee83319b77638a@mail.gmail.com> References: <7140a9950809030755h1c639316m26ee83319b77638a@mail.gmail.com> Message-ID: <4a68b8cf0809031208l6c692aa9u1940310e7e038445@mail.gmail.com> Hi Brad, do you intend on creating a fork on GitHub for this ? (here http://github.com/aeden/activewarehouse/tree/master and here http://github.com/bcotton/activewarehouse-demo/tree/master) I could be a convenient way to share your changes, while ensuring it will be easy to push them back into the main branch. Just a though - maybe that's what you already intented to do ? cheers and keep us posted! Thibaut Barr?re / LoGeek -- http://blog.logeek.fr - learning content for developers http://evolvingworker.com - tools for a better day -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmaine at blurb.com Wed Sep 3 15:42:31 2008 From: jmaine at blurb.com (Jacob Maine) Date: Wed, 3 Sep 2008 12:42:31 -0700 (PDT) Subject: [Activewarehouse-discuss] using rails 2.1 In-Reply-To: <32447462.429241220468700486.JavaMail.root@kilgore.blurb.com> Message-ID: <7353818.429541220470951225.JavaMail.root@kilgore.blurb.com> Get in touch with Darin Wilson, who posted a few weeks ago. He said he was going to work on patching AW and/or the sample project for 2.1. ----- "Marty Haught" wrote: > Hi Brad, > > Why don't you post back your results to the list. I know we'll be > upgrading to 2.1 in the near future so we'll need to do the same > thing. I'm sure between us we can get a pull request put together so > it will be done. > > Cheers, > Marty > > On Wed, Sep 3, 2008 at 8:55 AM, Brad Cantin > wrote: > > Hey there. > > > > I am starting on my first active warehouse project. I understand > the > > current active warehouse plugin is not compabable with rails 2.1. > But I am > > going to get (at least) the sample project in > > active_warehouse/rails_warehouse to work. > > > > I will detail my frustra.... progress. once I have a working plugin > with > > 2.1, what should I do then to release it ? > > > > thanks much > > > > Brad > > > > _______________________________________________ > > Activewarehouse-discuss mailing list > > Activewarehouse-discuss at rubyforge.org > > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss > > > > > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss From dwlist at stellarmadness.org Thu Sep 4 03:14:47 2008 From: dwlist at stellarmadness.org (Darin Wilson) Date: Thu, 04 Sep 2008 00:14:47 -0700 Subject: [Activewarehouse-discuss] using rails 2.1 In-Reply-To: <7353818.429541220470951225.JavaMail.root@kilgore.blurb.com> Message-ID: Hi all- I think this is the post you're referring to: http://rubyforge.org/pipermail/activewarehouse-discuss/2008-August/000307.ht ml I haven't actually been able to start getting aw-etl to work with Rails 2.1, but the patch I supplied in this post lets you take advantage of the vendor/rails feature, so you can use a frozen version of Rails with aw-etl. This is useful if you're running on a machine that has 2.1 installed on the system level and you want to bypass that (at least for now). HTH, Darin > From: Jacob Maine > Date: Wed, 3 Sep 2008 12:42:31 -0700 (PDT) > To: Marty Haught > Cc: > Subject: Re: [Activewarehouse-discuss] using rails 2.1 > > Get in touch with Darin Wilson, who posted a few weeks ago. He said he was > going to work on patching AW and/or the sample project for 2.1. > > ----- "Marty Haught" wrote: > >> Hi Brad, >> >> Why don't you post back your results to the list. I know we'll be >> upgrading to 2.1 in the near future so we'll need to do the same >> thing. I'm sure between us we can get a pull request put together so >> it will be done. >> >> Cheers, >> Marty >> >> On Wed, Sep 3, 2008 at 8:55 AM, Brad Cantin >> wrote: >>> Hey there. >>> >>> I am starting on my first active warehouse project. I understand >> the >>> current active warehouse plugin is not compabable with rails 2.1. >> But I am >>> going to get (at least) the sample project in >>> active_warehouse/rails_warehouse to work. >>> >>> I will detail my frustra.... progress. once I have a working plugin >> with >>> 2.1, what should I do then to release it ? >>> >>> thanks much >>> >>> Brad >>> >>> _______________________________________________ >>> Activewarehouse-discuss mailing list >>> Activewarehouse-discuss at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/activewarehouse-discuss >>> >>> >> _______________________________________________ >> Activewarehouse-discuss mailing list >> Activewarehouse-discuss at rubyforge.org >> http://rubyforge.org/mailman/listinfo/activewarehouse-discuss > _______________________________________________ > Activewarehouse-discuss mailing list > Activewarehouse-discuss at rubyforge.org > http://rubyforge.org/mailman/listinfo/activewarehouse-discuss From brad.cantin at gmail.com Mon Sep 8 15:42:16 2008 From: brad.cantin at gmail.com (Brad Cantin) Date: Mon, 8 Sep 2008 15:42:16 -0400 Subject: [Activewarehouse-discuss] non sum views Message-ID: <7140a9950809081242o665e6227s5a7c741d4e5e2737@mail.gmail.com> I'm working on a proof of concept using the active warehouse plugin. I have my dimension tables as city_dimension (country_name, state_name, city_name) person_dimension (first_name, last_name, city_id) company_dimensoin (name, city_id) my facts are the projects that tie them together project_facts (:title, :city_id, :person_id, company_id) here is a cube that sorta works.... class CityPeopleCube < ActiveWarehouse::Cube reports_on :project pivots_on :city, :person end and my fact file... class ProjectFact < ActiveWarehouse::Fact aggregate :title dimension :date dimension :city dimension :person dimension :organization end of course, it tries to place a sum(project_facts.title) in the SQL query. I would rather not do that. I looked at the lib/active_warehouse/aggregate/aggregate.rb and ../aggregate_field.rb but I don't see a way to override the strategy_name = :sum. Well, I can do aggregrate :title, :type => :string but then my SQL query will crash when it wraps the project_facts.title with string. any ideas ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From brad.cantin at gmail.com Mon Sep 8 15:44:14 2008 From: brad.cantin at gmail.com (Brad Cantin) Date: Mon, 8 Sep 2008 15:44:14 -0400 Subject: [Activewarehouse-discuss] error in last message Message-ID: <7140a9950809081244s7e9cfc97g6b7d81e77a09d962@mail.gmail.com> my ProjectFact has an incorrect line dimension :organization should be dimension :company. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmaine at blurb.com Mon Sep 8 17:14:20 2008 From: jmaine at blurb.com (Jacob Maine) Date: Mon, 8 Sep 2008 14:14:20 -0700 (PDT) Subject: [Activewarehouse-discuss] non sum views In-Reply-To: <8319127.482971220908447175.JavaMail.root@kilgore.blurb.com> Message-ID: <22590957.482991220908460502.JavaMail.root@kilgore.blurb.com> As you're probably aware, strings rarely appear on facts, because they're not additive (can't be summed, averaged, etc.). The one exception I'm aware of is degenerate dimensions. So, if "title" is a degenerate dimension in your schema, you shouldn't specify it as an aggregate. That, is you should probably remove "aggregate :title" from the fact. The problem with that is you would no longer have any aggregates. You can fix this by adding: aggregate :id, :type => :count Which will do a count on the ids in the fact table - basically a "Number of Projects" aggregate. In fact, the :type parameter is what you use to override strategy_name in general. It can be any SQL aggregate function (avg, max, or whatever else your db supports.) You can also add :distinct => true, if that's what you're looking for.