Closed aurokk closed 2 months ago
Looks like this functionality is not in the scope of the connector, so i'm closing the issue. https://github.com/microsoft/sql-spark-connector/blob/master/src/main/scala/com/microsoft/sqlserver/jdbc/spark/DefaultSource.scala#L26
Have you tried just issuing a table hint in the query? So something like
select col1, col2 from table (NOLOCK) where col1 = 'condition'
Hi!
I want to read data from a db without any locks cuz that db is used by a service running in production, so i want to set transaction isolation level for the session to
read_uncommitted
or sth. Is there any way to do that?By default it's
read_committed
I configure the read operation this way:
upd 1: tried to set sessionInitStatement
upd 2: tried to add
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
to query directlyEnv: