# Partitioned Attribute

**URL:** <https://forum.kx.com/t/partitioned-attribute/10229>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [August 7, 2015, 4:16pm UTC](https://forum.kx.com/t/partitioned-attribute/10229 "2015-08-07T16:16:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoffmanroni1](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hoffmanroni1](https://forum.kx.com/u/hoffmanroni1)\
**Post date:** [August 7, 2015, 4:16pm UTC](https://forum.kx.com/t/partitioned-attribute/10229/1 "2015-08-07T16:16:00Z")

</div>

Hello,

I have a partitioned table. &nbsp;When I check the meta for it on the table I see the `p attribute but when I pull the table from a partition I dont see it. &nbsp;

q)meta t

q)

&nbsp;ctfa

dated

symsp

timet

q) meta (select from t where date=2015.08.06)

q)

©¬ ctfa

dated

syms

timet

Does this mean the attribute is not on the partition? &nbsp;Will cause slower queries?

---

<div class="post-metadata">

**Author:** ![rahul\_asati041](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@rahul\_asati041](https://forum.kx.com/u/rahul_asati041)\
**Post date:** [August 7, 2015, 4:34pm UTC](https://forum.kx.com/t/partitioned-attribute/10229/2 "2015-08-07T16:34:00Z")

</div>

The parted attribute is not preserved under an operation on the list, even if the operation preserves the partitioning.

reference:[http://code.kx.com/wiki/JB:QforMortals2/tables#Attributes](http://code.kx.com/wiki/JB:QforMortals2/tables#Attributes)

---

<div class="post-metadata">

**Author:** ![david\_demner](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@david\_demner](https://forum.kx.com/u/david_demner)\
**Post date:** [August 7, 2015, 6:15pm UTC](https://forum.kx.com/t/partitioned-attribute/10229/3 "2015-08-07T18:15:00Z")

</div>

Individual partitions can have different attributes to the table meta (which comes from the latest partition). See example below:\<o:p\>\</o:p\>

\<o:p\> \</o:p\>

q)`:2015.01.01/t/ set (a:til 5)\<o:p\>\</o:p\>

`:2015.01.01/t/\<o:p\>\</o:p\>

q)`:2015.01.02/t/ set ([]a:`p#til 5)\<o:p\>\</o:p\>

`:2015.01.02/t/\<o:p\>\</o:p\>

q)\l .\<o:p\>\</o:p\>

q)meta t\<o:p\>\</o:p\>

c&nbsp;&nbsp; | t f a\<o:p\>\</o:p\>

----| -----\<o:p\>\</o:p\>

date| d\<o:p\>\</o:p\>

a&nbsp;&nbsp; | j&nbsp;&nbsp; **p** \<o:p\>\</o:p\>

q)meta `:2015.01.01/t/\<o:p\>\</o:p\>

c| t f a\<o:p\>\</o:p\>

-| -----\<o:p\>\</o:p\>

a| j\<o:p\>\</o:p\>

q)meta `:2015.01.02/t/\<o:p\>\</o:p\>

c| t f a\<o:p\>\</o:p\>

-| -----\<o:p\>\</o:p\>

a| j&nbsp;&nbsp; **p** \<o:p\>\</o:p\>

q)meta select from t where date=2015.01.02\<o:p\>\</o:p\>

c&nbsp;&nbsp; | t f a\<o:p\>\</o:p\>

----| -----\<o:p\>\</o:p\>

date| d\<o:p\>\</o:p\>

a&nbsp;&nbsp; | j&nbsp;&nbsp; **p** \<o:p\>\</o:p\>

\<o:p\> \</o:p\>

\<o:p\> \</o:p\>

you can re-apply the attribute using \<o:p\>\</o:p\>

q)@[`:2015.01.01/t/;`a;`p#]\<o:p\>\</o:p\>

`:2015.01.01/t/\<o:p\>\</o:p\>

q)meta `:2015.01.01/t/\<o:p\>\</o:p\>

c| t f a\<o:p\>\</o:p\>

-| -----\<o:p\>\</o:p\>

a| j&nbsp;&nbsp; **p** \<o:p\>\</o:p\>

\<o:p\> \</o:p\>

**From:** [personal-kdbplus@googlegroups.com](mailto:personal-kdbplus@googlegroups.com) [[mailto:personal-kdbplus@googlegroups.com](mailto:personal-kdbplus@googlegroups.com)] **On Behalf Of** RAHUL ASATI  
**Sent:** Friday, August 7, 2015 8:34 AM  
**To:** Kdb+ Personal Developers  
**Subject:** [personal kdb+] Re: Partitioned Attribute\<o:p\>\</o:p\>

\<o:p\> \</o:p\>

The parted attribute is not preserved under an operation on the list, even if the operation preserves the partitioning. \<o:p\>\</o:p\>

\<o:p\> \</o:p\>

reference:[http://code.kx.com/wiki/JB:QforMortals2/tables#Attributes](http://code.kx.com/wiki/JB:QforMortals2/tables#Attributes)\<o:p\>\</o:p\>

---

<div class="post-metadata">

**Author:** ![hoffmanroni1](https://avatars.discourse-cdn.com/v4/letter/h/8dc957/32.png) [@hoffmanroni1](https://forum.kx.com/u/hoffmanroni1)\
**Post date:** [August 7, 2015, 8:11pm UTC](https://forum.kx.com/t/partitioned-attribute/10229/4 "2015-08-07T20:11:00Z")

</div>

I see, Thanks
