shardingsphere icon indicating copy to clipboard operation
shardingsphere copied to clipboard

Statement setFetchDirection not supported

Open VincentChi opened this issue 6 years ago • 6 comments

Feature Request

setFetchDirection is not supported and would throw exception org.apache.shardingsphere.shardingjdbc.jdbc.unsupported.AbstractUnsupportedOperationStatement#setFetchDirection

Is your feature request related to a problem?

We are using apache mahout which uses this method in db initialization, but would throw exception. image

Describe the feature you would like.

It's better to support this feature, or just make it not final which could be overridden in our codes. ** image **

VincentChi avatar Aug 06 '20 06:08 VincentChi

we not support setFetchDirection,maybe cannot integrateion apache mahout, thanks!

yu199195 avatar Aug 06 '20 06:08 yu199195

Thanks for your debug. @VincentChi We welcome you or other guys to try to fix this issue, for it seems not difficult. You can remove final from setFetchDirection and implement it in AbstractPreparedStatementAdapter and ShardingSpherePreparedStatement.

If you need any help, please feel free to ping us!

Best, Trista

tristaZero avatar Aug 06 '20 09:08 tristaZero

Thanks for your debug. @VincentChi We welcome you or other guys to try to fix this issue, for it seems not difficult. You can remove final from setFetchDirection and implement it in AbstractPreparedStatementAdapter and ShardingSpherePreparedStatement.

If you need any help, please feel free to ping us!

Best, Trista

Can this be assgined to me? I want to try fixing it:) @tristaZero

wenweibin avatar Aug 06 '20 12:08 wenweibin

My pleasure. @wenweibin You can request my review at your incoming PR. Good luck. :)

tristaZero avatar Aug 07 '20 08:08 tristaZero

@wenweibin Hi, any update?

terrymanu avatar Aug 24 '20 04:08 terrymanu

@wenweibin any improvement or close this issue for a long time?

kimmking avatar Sep 21 '20 12:09 kimmking