bitnine-oss / agens-spark-modules Goto Github PK
View Code? Open in Web Editor NEWspark-cypher, spark-connector, livy-jobs, hive-storage-handler for AG3
spark-cypher, spark-connector, livy-jobs, hive-storage-handler for AG3
ES 에 저장된 property.type = java.lang.Float 인 데이터 property.value 를 spark-cypher 에서 읽어들이면서 Double 로 변환
이후, cypher 처리 과정에서 변환 값을 StructType(Float) 에 저장할 때 type mismatch 오류 발생
Expected:
Equal column data types for union all (differing nullability is OK)
Found:
Left fields: ... StructField(node_e_score __ FLOAT?,DoubleType,true) ...
SparkTable.scala:186
// ERROR: mismatch (float type => double type)
leftTypes.zip(rightTypes).foreach {
case (leftType, rightType) if !leftType.nullable.couldBeSameTypeAs(rightType.nullable) =>
throw IllegalArgumentException(
"Equal column data types for union all (differing nullability is OK)",
s"Left fields: ${df.schema.fields.mkString(", ")}\n\tRight fields: ${other.df.schema.fields.mkString(", ")}")
case _ =>
}
spark-cypher 코드 자체에서는 Float 를 Double 로 타입변환 시키는 코드는 없음
내부에 사용한 다른 라이브러리에서 처리된 영향인듯 하나, 현재로서는 찾지 못하고 있음
값을 입력할 때, "java.lang.Float" 는 사용하지 말도록 권고 (must be "java.lang.Double")
그 외 "java.lang.Integer" 등은 관계 없음. 단지, 소수점 숫자값에 대해서만 문제 발견
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.