Bug fixed ? Schema updated?

Forum for users that want to write their own custom queries against the PT database either via the Structured Query Language (SQL) or using the PT3 custom stats/reports interface.

Moderator: Moderators

Bug fixed ? Schema updated?

Postby Duxx » Tue Oct 07, 2008 7:01 am

Re: stat: BB folds when SB opens
by APerfect10 on Fri Aug 08, 2008 1:17 pm

This appears to be a bug which I have added to our bug list and we will get resolved.

9 should always be the SB
8 should always be the BB



Has this been resolved?

If so, then the schema should mention it so that simple souls such as myself don't suffer brain-damage from too much head scratching.
Duxx
 
Posts: 23
Joined: Thu Mar 13, 2008 5:22 am

Re: Bug fixed ? Schema updated?

Postby WhiteRider » Tue Oct 07, 2008 9:06 am

Can you link to the original thread, please.
IIRC this isn't the standard position stats, it's PF Aggressor or something?
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Bug fixed ? Schema updated?

Postby Duxx » Tue Oct 07, 2008 9:49 am

viewtopic.php?f=18&t=9911&st=0&sk=t&sd=a&start=10

I'd also appreciate it if you could give me an idea as to why when I run a certain report with a cusom stat of my own that a column containing "NA"
several times together with the required value is returned. As is, I am unable to incorporate this stat in the HUD. I have updated the cache.

I am trying to get an attempted steal from SB stat using the quotient of the following columns:

sum( if[holdem_hand_player_statistics.flg_p_first_raise AND holdem_hand_player_statistics.flg_p_open_opp AND position = 9, 1, 0])

sum(if[holdem_hand_player_statistics.flg_p_open_opp AND position = 9, 1, 0])

BTW,if I use sum( if[holdem_hand_player_statistics.flg_p_open AND holdem_hand_player_statistics.flg_p_open_opp AND position = 9, 1, 0]) I get a VP$IP from SB instead. I also get "NA" several times in the report column in this case.

Thanks in advance.
Duxx
 
Posts: 23
Joined: Thu Mar 13, 2008 5:22 am

Re: Bug fixed ? Schema updated?

Postby Duxx » Tue Oct 07, 2008 10:29 am

Just found a stat for this in the repository. It gives the same result as my stat but without the extra rows in the column (when run as a report). It should worh in the HUD now.
Duxx
 
Posts: 23
Joined: Thu Mar 13, 2008 5:22 am

Re: Bug fixed ? Schema updated?

Postby WhiteRider » Tue Oct 07, 2008 11:40 am

Duxx wrote:Just found a stat for this in the repository. It gives the same result as my stat but without the extra rows in the column (when run as a report). It should worh in the HUD now.

So do you have the stat you want now?

FWIW; there is no point checking:
holdem_hand_player_statistics.flg_p_open AND holdem_hand_player_statistics.flg_p_open_opp
because "open" can't be true unless "open_opp" is true.

I'm not sure whether the "val_p_raise_aggressor_pos" has been fixed yet - I'll try to test later and check it out for you.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Bug fixed ? Schema updated?

Postby Duxx » Tue Oct 07, 2008 5:11 pm

[quote="WhiteRider
So do you have the stat you want now?
[/quote]

Yes thanks. It even works in the HUD and displays in a report as a one row column.

I'm still curious as to why "my stat" (now thankfully redundant) should show extra rows though in the report window.

BTW, if(holdem_hand_player_statistics.flg_p_open AND position = 9) is true <=> VP$IP from SB is true. It says in the schema that holdem_hand_player_statistics.flg_p_open pertains to an openraise. This is incorrect at least when applied to the SB.

Thanks for your help. Everything appears to be working although I am a little confused as to the whys and wherefores.
Duxx
 
Posts: 23
Joined: Thu Mar 13, 2008 5:22 am

Re: Bug fixed ? Schema updated?

Postby WhiteRider » Tue Oct 07, 2008 6:20 pm

holdem_hand_player_statistics.flg_p_open only implies the first action, call or raise.

If that doesn't explain your issue, you'll have to explain a little more clearly exactly what you mean?
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Bug fixed ? Schema updated?

Postby Duxx » Wed Oct 08, 2008 10:27 am

If you look in the schema documentation under holdem_hand_player_statistics.flg_p_open and holdem_hand_player_statistics.position you will see exactly what I mean. What you say makes perfect sense. What the schema says is not only clearly wrong but misleading which is somewhat frustrating when unexpected results occur. It would save some peoples time if the schema doc. were to be corrected. Thanks once again for your help.
Duxx
 
Posts: 23
Joined: Thu Mar 13, 2008 5:22 am

Re: Bug fixed ? Schema updated?

Postby WhiteRider » Wed Oct 08, 2008 11:06 am

You're quite right - I hadn't looked back at the schema for a while.
Thanks for pointing this out.
WhiteRider
Moderator
 
Posts: 54025
Joined: Sat Jan 19, 2008 7:06 pm
Location: UK

Re: Bug fixed ? Schema updated?

Postby APerfect10 » Wed Oct 08, 2008 1:10 pm

Yes, I am aware that the database documentation is outdated. We will get this updated shortly. Thank for bringing this to our attention as a reminder :)

Best regards,

Derek
APerfect10
Site Admin
 
Posts: 4489
Joined: Sat Dec 08, 2007 6:03 pm


Return to Custom Stats, Reports, and SQL [Read Only]

Who is online

Users browsing this forum: No registered users and 1 guest