<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to call sparksql methods in VSCode-Fabric integrated Notebook in Data Science</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3669559#M170</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="644621" data-lia-user-login="robkerrdm" class="lia-mention lia-mention-user"&gt;robkerrdm&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 06:13:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-01-31T06:13:37Z</dc:date>
    <item>
      <title>Unable to call sparksql methods in VSCode-Fabric integrated Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3663552#M163</link>
      <description>&lt;P&gt;I'm trying to get my VSCode -&amp;gt; Fabric integration working.&amp;nbsp; I've been through &lt;A href="https://community.fabric.microsoft.com/t5/General-Discussion/VS-Code-and-Synapse-Kernel/m-p/3494429" target="_self"&gt;this thread&lt;/A&gt;&amp;nbsp;&amp;nbsp;many times, and it was instructive and helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-- I've installed the prereqs listed in the docs, have JAVA_HOME setup, conda and java in the path&lt;/P&gt;&lt;P&gt;-- After installing the VSCode synapse extension, on first use it creates the two conda environments (fabric-synapse-runtime-1-1 and&amp;nbsp;fabric-synapse-runtime-1-2), and on reviewing those initialization logs I see no errors&lt;/P&gt;&lt;P&gt;-- I can browse my workspaces and open notebooks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is whenI try to use a spark command, there is a long pause (session starting in Fabric?), following by an error:&lt;/P&gt;&lt;P&gt;- Example 1-&lt;/P&gt;&lt;P&gt;%%sparksql&lt;/P&gt;&lt;P&gt;SELECT * FROM TableName&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;UsageError: Cell magic `%%sql` not found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Example 2-&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df&lt;/SPAN&gt;&lt;SPAN&gt; = spark.sql(&lt;/SPAN&gt;&lt;SPAN&gt;"SELECT * FROM LakehouseName.TableName LIMIT 1000"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;AttributeError&lt;/SPAN&gt;&lt;SPAN class=""&gt;: 'NoneType' object has no attribute 'sql'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I've pulled the logs from the local Fabric notebook folder--There are messages in the logs, but I don't know whether these are "normal" or not, since I've not yet used a system where this feature works. Logs are below. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;I suspect the issue is in the PySparkLighter.log, but I can't connect the error with any configuration step I may have missed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Failed to initialize Spark Lighter variables. An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext. &amp;lt;-- See below for context&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Any ideas?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;******************* SparkLighter.log ******************&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;[WARN ] 2024-01-26 16:52:01.302 [main] Shell: Did not find winutils.exe: java.io.FileNotFoundException: java.io.FileNotFoundException: HADOOP_HOME and hadoop.home.dir are unset. -see &lt;A href="https://wiki.apache.org/hadoop/WindowsProblems" target="_blank" rel="noopener"&gt;https://wiki.apache.org/hadoop/WindowsProblems&lt;/A&gt;&lt;BR /&gt;[INFO ] 2024-01-26 16:52:01.963 [Thread-2] SparkContext: Running Spark version 3.4.1&lt;BR /&gt;[WARN ] 2024-01-26 16:52:02.013 [Thread-2] NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.083 [Thread-2] ResourceUtils: ==============================================================&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.084 [Thread-2] ResourceUtils: No custom resources configured for spark.driver.&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.084 [Thread-2] ResourceUtils: ==============================================================&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.085 [Thread-2] SparkContext: Submitted application: Data Cloud: Spark Lighter Connection 2024-01-26 16:51:58.578904&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.099 [Thread-2] ResourceProfile: Default ResourceProfile created, executor resources: Map(cores -&amp;gt; name: cores, amount: 1, script: , vendor: , memory -&amp;gt; name: memory, amount: 1024, script: , vendor: , offHeap -&amp;gt; name: offHeap, amount: 0, script: , vendor: ), task resources: Map(cpus -&amp;gt; name: cpus, amount: 1.0)&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.104 [Thread-2] ResourceProfile: Limiting resource is cpu&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.105 [Thread-2] ResourceProfileManager: Added ResourceProfile id: 0&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.141 [Thread-2] SecurityManager: Changing view acls to: RobertKerr&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.143 [Thread-2] SecurityManager: Changing modify acls to: RobertKerr&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.143 [Thread-2] SecurityManager: Changing view acls groups to:&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.143 [Thread-2] SecurityManager: Changing modify acls groups to:&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.144 [Thread-2] SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: RobertKerr; groups with view permissions: EMPTY; users with modify permissions: RobertKerr; groups with modify permissions: EMPTY&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.357 [Thread-2] Utils: Successfully started service 'sparkDriver' on port 49959.&lt;BR /&gt;[INFO ] 2024-01-26 16:52:02.381 [Thread-2] SparkEnv: Registering MapOutputTracker&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*************&amp;nbsp;&lt;SPAN class=""&gt;PySparkLighter.log ******************&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;16:51:36,461 root INFO current_directory c:\Users\RobertKerr\source\CrabShack\4fe867d4-8b9c-451f-94cc-b0b950a52f55\SynapseNotebook\c2564846-6518-4589-8682-db06c92f76f8\Load and Enrich Reviews&lt;/DIV&gt;&lt;DIV&gt;16:51:36,461 root INFO workspace_path c:\Users\RobertKerr\source\CrabShack\4fe867d4-8b9c-451f-94cc-b0b950a52f55&lt;/DIV&gt;&lt;DIV&gt;16:51:36,462 root INFO log_path c:\Users\RobertKerr\source\CrabShack\4fe867d4-8b9c-451f-94cc-b0b950a52f55\logs\c2564846-6518-4589-8682-db06c92f76f8&lt;/DIV&gt;&lt;DIV&gt;16:51:36,462 root INFO Using synapse remote kernel ...&lt;/DIV&gt;&lt;DIV&gt;16:51:36,462 root INFO Should attach session in dev mode False&lt;/DIV&gt;&lt;DIV&gt;16:51:37,633 root INFO Starting session 0feb87f2-4d8a-4de0-ad12-af0ed67c5a1d...&lt;/DIV&gt;&lt;DIV&gt;16:51:38,664 root INFO Getting refresh token...&lt;/DIV&gt;&lt;DIV&gt;16:51:39,628 root INFO &lt;A href="https://pbipwus8-westus.pbidedicated.windows.net/webapi/capacities/***********************/workloads/Notebook/Data/Direct/sparklighter/api/tjs/versions/2022-04-30/artifacts/c2564846-6518-4589-8682-db06c92f76f8/sessions/0feb87f2-4d8a-4de0-ad12-af0ed67c5a1d" target="_blank" rel="noopener"&gt;https://pbipwus8-westus.pbidedicated.windows.net/webapi/capacities/***********************/workloads/Notebook/Data/Direct/sparklighter/api/tjs/versions/2022-04-30/artifacts/c2564846-6518-4589-8682-db06c92f76f8/sessions/0feb87f2-4d8a-4de0-ad12-af0ed67c5a1d&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;16:51:41,985 root INFO &amp;lt;session_management.SessionStatus object at 0x0000026C4DCEE830&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;16:51:44,201 root INFO Trident session states: starting&lt;/DIV&gt;&lt;DIV&gt;16:51:48,750 root INFO Trident session states: busy&lt;/DIV&gt;&lt;DIV&gt;16:51:53,240 root INFO Trident session states: busy&lt;/DIV&gt;&lt;DIV&gt;16:51:57,654 root INFO Trident session states: idle&lt;/DIV&gt;&lt;DIV&gt;16:51:57,656 root INFO Starting session 0feb87f2-4d8a-4de0-ad12-af0ed67c5a1d finished...&lt;/DIV&gt;&lt;DIV&gt;16:51:57,656 root INFO Attaching spark session 0feb87f2-4d8a-4de0-ad12-af0ed67c5a1d for Spark Lighter ...&lt;/DIV&gt;&lt;DIV&gt;16:51:58,578 root INFO log4j.properties variable LOG_FILE_PATH c:\Users\RobertKerr\source\CrabShack\4fe867d4-8b9c-451f-94cc-b0b950a52f55\logs\c2564846-6518-4589-8682-db06c92f76f8\SparkLighter.log&lt;/DIV&gt;&lt;DIV&gt;16:52:02,399 root ERROR Failed to initialize Spark Lighter variables. An error occurred while calling None.org.apache.spark.api.java.JavaSparkContext.&lt;/DIV&gt;&lt;DIV&gt;: java.lang.ExceptionInInitializerError&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.unsafe.array.ByteArrayMethods.&amp;lt;clinit&amp;gt;(ByteArrayMethods.java:52)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.memory.MemoryManager.defaultPageSizeBytes$lzycompute(MemoryManager.scala:306)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.memory.MemoryManager.defaultPageSizeBytes(MemoryManager.scala:296)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.memory.MemoryManager.$anonfun$pageSizeBytes$1(MemoryManager.scala:315)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at scala.runtime.java8.JFunction0$mcJ$sp.apply(JFunction0$mcJ$sp.java:23)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at scala.Option.getOrElse(Option.scala:189)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.memory.MemoryManager.&amp;lt;init&amp;gt;(MemoryManager.scala:315)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.memory.UnifiedMemoryManager.&amp;lt;init&amp;gt;(UnifiedMemoryManager.scala:58)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.memory.UnifiedMemoryManager$.apply(UnifiedMemoryManager.scala:215)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.SparkEnv$.create(SparkEnv.scala:328)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.SparkEnv$.createDriverEnv(SparkEnv.scala:199)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.SparkContext.createSparkEnv(SparkContext.scala:287)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.SparkContext.&amp;lt;init&amp;gt;(SparkContext.scala:505)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.api.java.JavaSparkContext.&amp;lt;init&amp;gt;(JavaSparkContext.scala:58)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:75)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:53)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:247)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:374)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at py4j.Gateway.invoke(Gateway.java:238)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at py4j.commands.ConstructorCommand.invokeConstructor(ConstructorCommand.java:80)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at py4j.commands.ConstructorCommand.execute(ConstructorCommand.java:69)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:182)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at py4j.ClientServerConnection.run(ClientServerConnection.java:106)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at java.base/java.lang.Thread.run(Thread.java:1583)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Caused by: java.lang.IllegalStateException: java.lang.NoSuchMethodException: java.nio.DirectByteBuffer.&amp;lt;init&amp;gt;(long,int)&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.unsafe.Platform.&amp;lt;clinit&amp;gt;(Platform.java:113)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;... 27 more&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;Caused by: java.lang.NoSuchMethodException: java.nio.DirectByteBuffer.&amp;lt;init&amp;gt;(long,int)&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at java.base/java.lang.Class.getConstructor0(Class.java:3761)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at java.base/java.lang.Class.getDeclaredConstructor(Class.java:2930)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;at org.apache.spark.unsafe.Platform.&amp;lt;clinit&amp;gt;(Platform.java:71)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;... 27 more&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;16:52:02,400 root INFO Registering Spark Lighter magics for IPython...&lt;/DIV&gt;&lt;DIV&gt;16:52:02,400 root INFO Registered Spark Lighter magics for IPython.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 22:26:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3663552#M163</guid>
      <dc:creator>robkerrdm</dc:creator>
      <dc:date>2024-01-26T22:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to call sparksql methods in VSCode-Fabric integrated Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3665620#M165</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="644621" data-lia-user-login="robkerrdm" class="lia-mention lia-mention-user"&gt;robkerrdm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for using Fabric Community.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1) We only support %pip in current version, other magic commands are not supported yet.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Can you please confirm that the Java version which you are using is&amp;nbsp;OpenJDK 8 ?&lt;/P&gt;
&lt;P&gt;3)&amp;nbsp;Select the right spark runtime version. You can set environment in notebook in the portal, if you use fabric spark 1.2, you need to choose fabric-synapse-runtime-1-2 kernel when running code in VS Code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Please let us know if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 07:53:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3665620#M165</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-29T07:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to call sparksql methods in VSCode-Fabric integrated Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3666435#M167</link>
      <description>&lt;P&gt;Thanks for the response, nikhilan!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a screen grab of my VS selection, java &amp;amp; conda versions and notebook selection in the portal.&amp;nbsp; The openjdk is 21.0.2 LTS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did have 1.2 selected in both the notebook and VSCode (at the time this was the only environment in portal).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed in your screen grab you're using Runtime 1.1. I added an enviroment for 1.1, selected it in Portal and VSCode, but the error is the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also noticed in your screen grab you have a magic&amp;nbsp; command in the cell "%%spar..." (can't read all of it). What is the rest of it, and is it required?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last Q: you mentioned %%sql is not supported. Thanks for letting me know. This limitation isn't stated in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension" target="_self" rel="nofollow noopener noreferrer"&gt;the "current limitations" section of the docs&lt;/A&gt;. Are there other limitations we should know about?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a grab of my notebook (portal), notebook (VSCode), versions.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 15:13:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3666435#M167</guid>
      <dc:creator>robkerrdm</dc:creator>
      <dc:date>2024-01-29T15:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to call sparksql methods in VSCode-Fabric integrated Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3668017#M168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="644621" data-lia-user-login="robkerrdm" class="lia-mention lia-mention-user"&gt;robkerrdm&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please note that you should use openjdk8 instead of openjdk21. Download openjdk8 and set the environment variable.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;You can refer to this document for more information:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Please let me know if you have any further questions.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 10:28:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3668017#M168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-30T10:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to call sparksql methods in VSCode-Fabric integrated Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3668919#M169</link>
      <description>&lt;P&gt;Thanks!&amp;nbsp; Indeed that was the problem. I uninstalled openjdk and installed the 1.8 version of same and the remote execution now works as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 19:59:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3668919#M169</guid>
      <dc:creator>robkerrdm</dc:creator>
      <dc:date>2024-01-30T19:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to call sparksql methods in VSCode-Fabric integrated Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3669559#M170</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="644621" data-lia-user-login="robkerrdm" class="lia-mention lia-mention-user"&gt;robkerrdm&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 06:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3669559#M170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-01-31T06:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to call sparksql methods in VSCode-Fabric integrated Notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3831325#M171</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When will %%sql magic commands start working in vs code when running fabric notebooks locally?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 15:16:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Science/Unable-to-call-sparksql-methods-in-VSCode-Fabric-integrated/m-p/3831325#M171</guid>
      <dc:creator>garys12</dc:creator>
      <dc:date>2024-04-11T15:16:29Z</dc:date>
    </item>
  </channel>
</rss>

