Skip to main content
Liquid error: Exception has been thrown by the target of an invocation.

Vote (0) Share
's profile image

on

Comments (Liquid error: Exception has been thrown by the target of an invocation.)
's profile image Profile Picture

on 06 Jul 2024 05:22:55

RE:

Joycie Lycan

's profile image Profile Picture

on 06 Jul 2024 05:22:52

RE:

Joycie Lycan

's profile image Profile Picture

on 06 Jul 2024 05:22:49

RE:

Joycie Lycan

's profile image Profile Picture

on 06 Jul 2024 05:22:45

RE:

Joycie Lycan

's profile image Profile Picture

on 06 Jul 2024 05:22:42

RE:

Joycie Lycan

's profile image Profile Picture

on 06 Jul 2024 05:22:38

RE:

Joycie Lycan

's profile image Profile Picture

on 06 Jul 2024 05:22:34

RE:

Joycie Lycan

's profile image Profile Picture

on 06 Jul 2024 05:22:31

RE:

Joycie Lycan

's profile image Profile Picture

on 06 Jul 2024 05:22:27

RE:

Joycie Lycan

's profile image Profile Picture

Niels van de Coevering on 06 Jul 2024 05:13:07

RE:

Here's another code snippet that the spark.sql() function seems to break, allthough the code is able to run. The code below gives the red squiggly underline errors "no viable alternative at input '\n'" and "extraneous input '.' expecting {, 'assert', 'async'...". But the code still runs. The errors can be solved by using backslashes on each line for line continuation, but that makes the code messy. When commenting or removing the spark.sql() line, the errors disappear.df = spark.sql(query)df1 = (df        .withColumn("col1", lit(1))        .select(col('*'))    )