-
1. Re: 'selectable=false' on virtual table
rareddy Sep 11, 2015 5:10 AM (in response to prashanthi1)You define $select on the odata URL and define all the columns you want, or create another view of the same table without the that particular column exposed.
BTW, what is behavior through JDBC? If that is allowing "select *" and not returning the column, then we will consider the enhancement for OData.
Ramesh..
-
2. Re: 'selectable=false' on virtual table
prashanthi1 Sep 11, 2015 5:22 AM (in response to rareddy)Hi Ramesh,
thanks for the reply. when I try Preview Data from Teiid designer, I do not get the columns that I updated 'selectable=false'.
I expected odata to behave the same way. But I get this error.
thanks,
Prashanthi.
-
3. Re: 'selectable=false' on virtual table
rareddy Sep 11, 2015 5:30 AM (in response to prashanthi1)Try using JDBC client, like SQuirreL, if the same behavior then you can log a JIRA.
-
4. Re: 'selectable=false' on virtual table
shawkins Sep 11, 2015 8:28 AM (in response to rareddy)I think what you are seeing is that if you don't specify $select, the ODataSQLBuilder does not filter non selectable columns from the generated Teiid query (if we internally were using select * instead, then this would work as expected). So yes that needs an issue to fix.
-
5. Re: 'selectable=false' on virtual table
shawkins Sep 11, 2015 12:14 PM (in response to shawkins)This was logged and worked as [TEIID-3698] non-selectable columns will cause OData failures - JBoss Issue Tracker
-
6. Re: 'selectable=false' on virtual table
prashanthi1 Oct 21, 2015 6:04 AM (in response to shawkins)Can we do this by using column masking? to not to show a column in odata response?
-
7. Re: 'selectable=false' on virtual table
rareddy Oct 21, 2015 9:03 AM (in response to prashanthi1)selectable or not, column masking is two different features. selectable defines if column can be selected, masking shows the column but can mask the data with whatever you want. If you want the column to show up for all users but show different values for each logged in user then column masking is what you are looking for.