-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
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
wip: Support UDF for spark-rapids-tools #1347
base: dev
Are you sure you want to change the base?
Changes from 13 commits
5dcc95b
1e5a8b4
7dfe11c
1e12968
cee6004
096f5f6
83341b2
a52f14d
49fcc56
3347da9
5cc3ce2
22152dc
9ab61af
b1131da
6349290
83d3273
2412631
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,21 @@ | |
<hadoop.version>3.3.6</hadoop.version> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>bd321</id> | ||
<activation> | ||
<property> | ||
<name>buildver</name> | ||
<value>321</value> | ||
</property> | ||
</activation> | ||
<properties> | ||
<buildver>321</buildver> | ||
<spark.version>${bdspark321.version}</spark.version> | ||
<delta.core.version>${delta20x.version}</delta.core.version> | ||
<hadoop.version>3.3.6</hadoop.version> | ||
</properties> | ||
</profile> | ||
<profile> | ||
<id>release322</id> | ||
<activation> | ||
|
@@ -443,6 +458,7 @@ | |
<spark314.version>3.1.4-SNAPSHOT</spark314.version> | ||
<spark320.version>3.2.0</spark320.version> | ||
<spark321.version>3.2.1</spark321.version> | ||
<bdspark321.version>3.2.1-bd1-SNAPSHOT</bdspark321.version> | ||
<spark322.version>3.2.2</spark322.version> | ||
<spark323.version>3.2.3</spark323.version> | ||
<spark324.version>3.2.4</spark324.version> | ||
|
@@ -502,6 +518,7 @@ | |
<project.build.sourceEncoding>${platform-encoding}</project.build.sourceEncoding> | ||
<project.reporting.sourceEncoding>${platform-encoding}</project.reporting.sourceEncoding> | ||
<project.reporting.outputEncoding>${platform-encoding}</project.reporting.outputEncoding> | ||
<hive.version>1.2.2-bd103</hive.version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this available on public mvn? and why do we need to define custom hive version to do basic functionalities? it will only run in a specific environment. |
||
</properties> | ||
|
||
<dependencies> | ||
|
@@ -582,6 +599,40 @@ | |
<version>${spark.version}</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hive</groupId> | ||
<artifactId>hive-common</artifactId> | ||
<version>${hive.version}</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.hive</groupId> | ||
<artifactId>hive-exec</artifactId> | ||
<version>${hive.version}</version> | ||
<scope>provided</scope> | ||
<!-- <exclusions>--> | ||
<!-- <exclusion>--> | ||
<!-- <groupId>org.codehaus.jackson</groupId>--> | ||
<!-- <artifactId>jackson-core-asl</artifactId>--> | ||
<!-- </exclusion>--> | ||
<!-- <exclusion>--> | ||
<!-- <groupId>org.codehaus.jackson</groupId>--> | ||
<!-- <artifactId>jackson-mapper-asl</artifactId>--> | ||
<!-- </exclusion>--> | ||
<!-- <exclusion>--> | ||
<!-- <groupId>org.codehaus.jackson</groupId>--> | ||
<!-- <artifactId>jackson-jaxrs</artifactId>--> | ||
<!-- </exclusion>--> | ||
<!-- <exclusion>--> | ||
<!-- <groupId>org.codehaus.jackson</groupId>--> | ||
<!-- <artifactId>jackson-xc</artifactId>--> | ||
<!-- </exclusion>--> | ||
<!-- <exclusion>--> | ||
<!-- <groupId>com.google.protobuf</groupId>--> | ||
<!-- <artifactId>protobuf-java</artifactId>--> | ||
<!-- </exclusion>--> | ||
<!-- </exclusions>--> | ||
Comment on lines
+613
to
+634
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove commented code |
||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,283 @@ | ||
CPUOperator,Score | ||
CoalesceExec,3.0 | ||
CollectLimitExec,3.0 | ||
ExpandExec,2.68 | ||
FileSourceScanExec,0.5 | ||
FilterExec,22.04 | ||
GenerateExec,3.0 | ||
GlobalLimitExec,3.0 | ||
LocalLimitExec,3.0 | ||
ProjectExec,1.5 | ||
RangeExec,3.0 | ||
SampleExec,3.0 | ||
SortExec,6.64 | ||
SubqueryBroadcastExec,3.0 | ||
TakeOrderedAndProjectExec,3.0 | ||
UnionExec,3.0 | ||
CustomShuffleReaderExec,3.0 | ||
HashAggregateExec,10.55 | ||
ObjectHashAggregateExec,3.0 | ||
SortAggregateExec,3.0 | ||
InMemoryTableScanExec,3.0 | ||
DataWritingCommandExec,3.0 | ||
ExecutedCommandExec,3.0 | ||
BatchScanExec,0.5 | ||
BroadcastExchangeExec,30.0 | ||
ShuffleExchangeExec,1.0 | ||
BroadcastHashJoinExec,40.00 | ||
BroadcastNestedLoopJoinExec,3.0 | ||
CartesianProductExec,3.0 | ||
ShuffledHashJoinExec,22.29 | ||
SortMergeJoinExec,22.33 | ||
AggregateInPandasExec,1.2 | ||
ArrowEvalPythonExec,1.2 | ||
FlatMapCoGroupsInPandasExec,3.0 | ||
FlatMapGroupsInPandasExec,1.2 | ||
MapInPandasExec,1.2 | ||
WindowInPandasExec,1.2 | ||
WindowExec,127.61 | ||
HiveTableScanExec,0.5 | ||
Abs,4 | ||
Acos,4 | ||
Acosh,4 | ||
Add,4 | ||
AggregateExpression,4 | ||
Alias,4 | ||
And,4 | ||
ApproximatePercentile,4 | ||
ArrayContains,4 | ||
ArrayExcept,4 | ||
ArrayExists,4 | ||
ArrayIntersect,4 | ||
ArrayMax,4 | ||
ArrayMin,4 | ||
ArrayRemove,4 | ||
ArrayRepeat,4 | ||
ArrayTransform,4 | ||
ArrayUnion,4 | ||
ArraysOverlap,4 | ||
ArraysZip,4 | ||
Asin,4 | ||
Asinh,4 | ||
AtLeastNNonNulls,4 | ||
Atan,4 | ||
Atanh,4 | ||
AttributeReference,4 | ||
Average,4 | ||
BRound,4 | ||
BitLength,4 | ||
BitwiseAnd,4 | ||
BitwiseNot,4 | ||
BitwiseOr,4 | ||
BitwiseXor,4 | ||
CaseWhen,4 | ||
Cbrt,4 | ||
Ceil,4 | ||
CheckOverflow,4 | ||
Coalesce,4 | ||
CollectList,4 | ||
CollectSet,4 | ||
Concat,4 | ||
ConcatWs,4 | ||
Contains,4 | ||
Conv,4 | ||
Cos,4 | ||
Cosh,4 | ||
Cot,4 | ||
Count,4 | ||
CreateArray,4 | ||
CreateMap,4 | ||
CreateNamedStruct,4 | ||
CurrentRow$,4 | ||
DateAdd,4 | ||
DateAddInterval,4 | ||
DateDiff,4 | ||
DateFormatClass,4 | ||
DateSub,4 | ||
DayOfMonth,4 | ||
DayOfWeek,4 | ||
DayOfYear,4 | ||
DenseRank,4 | ||
Divide,4 | ||
DynamicPruningExpression,4 | ||
ElementAt,4 | ||
EndsWith,4 | ||
EqualNullSafe,4 | ||
EqualTo,4 | ||
Exp,4 | ||
Explode,4 | ||
Expm1,4 | ||
First,4 | ||
Flatten,4 | ||
Floor,4 | ||
FormatNumber,4 | ||
FromUTCTimestamp,4 | ||
FromUnixTime,4 | ||
GetArrayItem,4 | ||
GetArrayStructFields,4 | ||
GetJsonObject,4 | ||
GetMapValue,4 | ||
GetStructField,4 | ||
GetTimestamp,4 | ||
GreaterThan,4 | ||
GreaterThanOrEqual,4 | ||
Greatest,4 | ||
HiveGenericUDF,4 | ||
HiveSimpleUDF,4 | ||
Hour,4 | ||
Hypot,4 | ||
If,4 | ||
In,4 | ||
InSet,4 | ||
InitCap,4 | ||
InputFileBlockLength,4 | ||
InputFileBlockStart,4 | ||
InputFileName,4 | ||
IntegralDivide,4 | ||
IsNaN,4 | ||
IsNotNull,4 | ||
IsNull,4 | ||
JsonToStructs,4 | ||
JsonTuple,4 | ||
KnownFloatingPointNormalized,4 | ||
KnownNotNull,4 | ||
Lag,4 | ||
LambdaFunction,4 | ||
Last,4 | ||
LastDay,4 | ||
Lead,4 | ||
Least,4 | ||
Length,4 | ||
LessThan,4 | ||
LessThanOrEqual,4 | ||
Like,4 | ||
Literal,4 | ||
Log,4 | ||
Log10,4 | ||
Log1p,4 | ||
Log2,4 | ||
Logarithm,4 | ||
Lower,4 | ||
MakeDecimal,4 | ||
MapConcat,4 | ||
MapEntries,4 | ||
MapFilter,4 | ||
MapKeys,4 | ||
MapValues,4 | ||
Max,4 | ||
Md5,4 | ||
MicrosToTimestamp,4 | ||
MillisToTimestamp,4 | ||
Min,4 | ||
Minute,4 | ||
MonotonicallyIncreasingID,4 | ||
Month,4 | ||
Multiply,4 | ||
Murmur3Hash,4 | ||
NaNvl,4 | ||
NamedLambdaVariable,4 | ||
NormalizeNaNAndZero,4 | ||
Not,4 | ||
NthValue,4 | ||
OctetLength,4 | ||
Or,4 | ||
ParseUrl,4 | ||
Percentile,4 | ||
PercentRank,4 | ||
PivotFirst,4 | ||
Pmod,4 | ||
PosExplode,4 | ||
Pow,4 | ||
PreciseTimestampConversion,4 | ||
PromotePrecision,4 | ||
PythonUDF,4 | ||
Quarter,4 | ||
RLike,4 | ||
RaiseError,4 | ||
Rand,4 | ||
Rank,4 | ||
RegExpExtract,4 | ||
RegExpExtractAll,4 | ||
RegExpReplace,4 | ||
Remainder,4 | ||
ReplicateRows,4 | ||
Reverse,4 | ||
Rint,4 | ||
Round,4 | ||
RowNumber,4 | ||
ScalaUDF,4 | ||
ScalarSubquery,4 | ||
Second,4 | ||
SecondsToTimestamp,4 | ||
Sequence,4 | ||
ShiftLeft,4 | ||
ShiftRight,4 | ||
ShiftRightUnsigned,4 | ||
Signum,4 | ||
Sin,4 | ||
Sinh,4 | ||
Size,4 | ||
SortArray,4 | ||
SortOrder,4 | ||
SparkPartitionID,4 | ||
SpecifiedWindowFrame,100 | ||
Sqrt,4 | ||
Stack,4 | ||
StartsWith,4 | ||
StddevPop,4 | ||
StddevSamp,4 | ||
StringInstr,4 | ||
StringLPad,4 | ||
StringLocate,4 | ||
StringRPad,4 | ||
StringRepeat,4 | ||
StringReplace,4 | ||
StringSplit,4 | ||
StringToMap,4 | ||
StringTranslate,4 | ||
StringTrim,4 | ||
StringTrimLeft,4 | ||
StringTrimRight,4 | ||
StructsToJson,4 | ||
Substring,4 | ||
SubstringIndex,4 | ||
Subtract,4 | ||
Sum,4 | ||
Tan,4 | ||
Tanh,4 | ||
TimeAdd,4 | ||
ToDegrees,4 | ||
ToRadians,4 | ||
ToUnixTimestamp,4 | ||
TransformKeys,4 | ||
TransformValues,4 | ||
UnaryMinus,4 | ||
UnaryPositive,4 | ||
UnboundedFollowing$,4 | ||
UnboundedPreceding$,4 | ||
UnixTimestamp,4 | ||
UnscaledValue,4 | ||
Upper,4 | ||
VariancePop,4 | ||
VarianceSamp,4 | ||
WeekDay,4 | ||
WindowExpression,100 | ||
WindowSpecDefinition,100 | ||
XxHash64,4 | ||
Year,4 | ||
WriteFilesExec,4 | ||
Empty2Null,4 | ||
Ascii,4 | ||
ToUTCTimestamp,4 | ||
KMeans-pyspark,8.86 | ||
KMeans-scala,1 | ||
PCA-pyspark,2.24 | ||
PCA-scala,2.69 | ||
LinearRegression-pyspark,2 | ||
LinearRegression-scala,1 | ||
RandomForestClassifier-pyspark,6.31 | ||
RandomForestClassifier-scala,1 | ||
RandomForestRegressor-pyspark,3.66 | ||
RandomForestRegressor-scala,1 | ||
XGBoost-pyspark,1 | ||
XGBoost-scala,3.31 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file is going to be deprecated and removed anyway since we rely on qualx for speedups. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this available on mvn public repo?