# objectComponent {#objectComponent}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`objectComponent(obj)`

## Arguments {#arguments}

**obj** can be of any data type.

## Details {#details}

Return value: A dictionary.

-   If *obj* is not of type CODE, the function returns the components of the object.
-   If *obj* is of type CODE, the function returns the components of the object represented by *obj*.

## Examples {#examples}

``` {#codeblock_zq1_tms_c2c}
objectComponent(<select col1,col2 from pt>)

/*
output:
exec->0
select->(< col1 >,< col2 >)
from->< objByName("pt") >
where->()
groupBy->()
groupFlag->
cgroups->0
csort->()
having->
orderBy->()
rowOffset->
rowCount->
hint->0
segment->
*/
```

