org.apache.spark.sql.AnalysisException: Cannot resolve column name "col" among (x, y);

Stack Overflow | smeeb | 2 months ago
  1. 0

    Adding StringType column to existing Spark DataFrame and then applying default values

    Stack Overflow | 2 months ago | smeeb
    org.apache.spark.sql.AnalysisException: Cannot resolve column name "col" among (x, y);
  2. 0

    Why does dropna() not work?

    Stack Overflow | 2 years ago | Jason
    org.apache.spark.sql.AnalysisException: Cannot resolve column name "dropna" among (Name, Age, Country, Score);
  3. 0

    UTF-8 BOM not properly handled

    GitHub | 1 year ago | sfelsheim
    org.apache.spark.sql.AnalysisException: Cannot resolve column name "addrId" among (´╗┐addrId, city, state, zip);
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SparkR: "Cannot resolve column name..." when adding a new column to Spark data frame

    Stack Overflow | 11 months ago | AltShift
    org.apache.spark.sql.AnalysisException: Cannot resolve column name "Ready.minus.In.mins" among (ASAP, AddressLine, BasketCount, CustomerEmail, CustomerID, CustomerName, CustomerPhone, DPOSCustomerID, DPOSOrderID, ImportedFromOldDb, InTime, IsOnlineOrder, LineItemTotal, NetTenderedAmount, OrderDate, OrderID, OutTime, Postcode, ReadyTime, SnapshotID, StoreID, Suburb, TakenBy, TenderType, TenderedAmount, TransactionStatus, TransactionType, hasLineItems, Ready.minus.In.mins);
  6. 0

    Simple join of two Spark DataFrame failing with "org.apache.spark.sql.AnalysisException: Cannot resolve column name"

    Stack Overflow | 1 year ago | S. Felsheim
    org.apache.spark.sql.AnalysisException: **Cannot resolve column name "addrid" among (addrid, city, state, zip);**

  1. tyson925 2 times, last 4 months ago
2 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.spark.sql.AnalysisException

    Cannot resolve column name "col" among (x, y);

    at org.apache.spark.sql.DataFrame$$anonfun$resolve$1.apply()
  2. Spark Project SQL
    DataFrame$$anonfun$resolve$1.apply
    1. org.apache.spark.sql.DataFrame$$anonfun$resolve$1.apply(DataFrame.scala:152)
    2. org.apache.spark.sql.DataFrame$$anonfun$resolve$1.apply(DataFrame.scala:152)
    2 frames
  3. Scala
    Option.getOrElse
    1. scala.Option.getOrElse(Option.scala:120)
    1 frame
  4. Spark Project SQL
    DataFrame.apply
    1. org.apache.spark.sql.DataFrame.resolve(DataFrame.scala:151)
    2. org.apache.spark.sql.DataFrame.col(DataFrame.scala:664)
    3. org.apache.spark.sql.DataFrame.apply(DataFrame.scala:652)
    3 frames