cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Remove WHERE 1=0

DanBrown
New Contributor

I am hoping someone can help me remove the WHERE 1=0 that is constantly getting added onto the end of my Query (see below).  Please let me know if I can provide more info here.

This is running a notebook, in Azure Databricks against a cluster that has the IRIS JDBC Driver loaded in the libraries.
The cluster configuration is using Spark 3.5.0
The query that gets passed into IRIS is this (from jdbc log) : SELECT * FROM (select TOP 100 AdjudicatedSvcNum, Charges, CodingSystem,CoverageGrpAuthStatus FROM CLAIMS.AdjudicatedSvcs) SPARK_GEN_SUBQ_24 WHERE 1=0

%python
connectString = "jdbc:IRIS://10.200.10.61:1981/RDD"
user = "*************"
password = "Dlh#36L!aZ"

connectionProperties = {
'user': user,
'password': password,
'driver': 'com.intersystems.jdbc.IRISDriver',
}

cacheDF = (spark.read
.format('jdbc')
.option("autopushdown", "false")
.option('url', connectString)
.option("query", "select TOP 100 AdjudicatedSvcNum, Charges, CodingSystem,CoverageGrpAuthStatus FROM CLAIMS.AdjudicatedSvcs")
.option('user', user)
.option('password', password)
.option('driver','com.intersystems.jdbc.IRISDriver')
.load()
.cache()
)

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now