SqlExceptionHelper: Cursors are not supported on a table which has a clustered columnstore index

后端 未结 1 448
慢半拍i
慢半拍i 2021-01-23 13:26

I\'m trying to import data from DWH SQL server table which is using Clustered Columnstore Index into kudu through flume. However, after my custom

相关标签:
1条回答
  • 2021-01-23 13:48

    Try setting selectmethod=direct in the connection properties. Source:

    If set to direct (the default), the database server sends the complete result set in a single response to the driver when responding to a query. A server-side database cursor is not created if the requested result set type is a forward-only result set. Typically, responses are not cached by the driver. Using this method, the driver must process the entire response to a query before another query is submitted. If another query is submitted (using a different statement on the same connection, for example), the driver caches the response to the first query before submitting the second query. Typically, the Direct method performs better than the Cursor method.

    Of course you need to define your resultset as FORWARD_ONLY to guarantee this.

    0 讨论(0)
提交回复
热议问题