|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | +# contributor license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright ownership. |
| 5 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | +# (the "License"); you may not use this file except in compliance with |
| 7 | +# the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
1 | 18 | # A set of S3 classes and methods that support the SparkSQL `StructType` and `StructField |
2 | 19 | # datatypes. These are used to create and interact with DataFrame schemas. |
3 | 20 |
|
@@ -37,7 +54,7 @@ structType.structField <- function(x, ...) { |
37 | 54 | sfObjList <- lapply(fields, function(field) { |
38 | 55 | field$jobj |
39 | 56 | }) |
40 | | - stObj <- callJStatic("edu.berkeley.cs.amplab.sparkr.SQLUtils", |
| 57 | + stObj <- callJStatic("org.apache.spark.sql.api.r.SQLUtils", |
41 | 58 | "createStructType", |
42 | 59 | listToSeq(sfObjList)) |
43 | 60 | structType(stObj) |
@@ -121,7 +138,7 @@ structField.character <- function(x, type, nullable = TRUE) { |
121 | 138 | } else { |
122 | 139 | stop(paste("Unsupported type for Dataframe:", type)) |
123 | 140 | } |
124 | | - sfObj <- callJStatic("edu.berkeley.cs.amplab.sparkr.SQLUtils", |
| 141 | + sfObj <- callJStatic("org.apache.spark.sql.api.r.SQLUtils", |
125 | 142 | "createStructField", |
126 | 143 | x, |
127 | 144 | dataType, |
|
0 commit comments