We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spark-The-Definitive-Guide/code/Structured_APIs-Chapter_7_Aggregations.scala
Line 171 in 38e8814
First, the column Quantity is parsed as String. It should be IntegerType.
Quantity
String
IntegerType
Second orderBy(CustomerId) should be orderBy(desc(Quantity))
orderBy(CustomerId)
orderBy(desc(Quantity))
The text was updated successfully, but these errors were encountered:
want to just open a pull request if you're seeing something wrong?
Sorry, something went wrong.
@xuewei4d ===> I ran the below command - dfWithDate.printSchema() resulted in Quantity as an IntegerType root |-- InvoiceNo: string (nullable = true) |-- StockCode: string (nullable = true) |-- Description: string (nullable = true) |-- Quantity: integer (nullable = true) |-- InvoiceDate: string (nullable = true) |-- UnitPrice: double (nullable = true) |-- CustomerID: integer (nullable = true) |-- Country: string (nullable = true) |-- date: date (nullable = true) ===> orderBy("CustomerId") or orderBy($"Quantity".desc) resulted in the same result.
No branches or pull requests
Spark-The-Definitive-Guide/code/Structured_APIs-Chapter_7_Aggregations.scala
Line 171 in 38e8814
First, the column
Quantity
is parsed asString
. It should beIntegerType
.Second
orderBy(CustomerId)
should beorderBy(desc(Quantity))
The text was updated successfully, but these errors were encountered: