Skip to content
Closed

Spelling #30323

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ private[sql] class AvroDeserializer(

private lazy val decimalConversions = new DecimalConversion()

private val dateRebaseFunc = DataSourceUtils.creteDateRebaseFuncInRead(
private val dateRebaseFunc = DataSourceUtils.createDateRebaseFuncInRead(
datetimeRebaseMode, "Avro")

private val timestampRebaseFunc = DataSourceUtils.creteTimestampRebaseFuncInRead(
private val timestampRebaseFunc = DataSourceUtils.createTimestampRebaseFuncInRead(
datetimeRebaseMode, "Avro")

private val converter: Any => Option[Any] = rootCatalystType match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ private[sql] class AvroSerializer(
converter.apply(catalystData)
}

private val dateRebaseFunc = DataSourceUtils.creteDateRebaseFuncInWrite(
private val dateRebaseFunc = DataSourceUtils.createDateRebaseFuncInWrite(
datetimeRebaseMode, "Avro")

private val timestampRebaseFunc = DataSourceUtils.creteTimestampRebaseFuncInWrite(
private val timestampRebaseFunc = DataSourceUtils.createTimestampRebaseFuncInWrite(
datetimeRebaseMode, "Avro")

private val converter: Any => Any = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ object DataSourceUtils {
"Gregorian calendar.", null)
}

def creteDateRebaseFuncInRead(
def createDateRebaseFuncInRead(
rebaseMode: LegacyBehaviorPolicy.Value,
format: String): Int => Int = rebaseMode match {
case LegacyBehaviorPolicy.EXCEPTION => days: Int =>
Expand All @@ -177,7 +177,7 @@ object DataSourceUtils {
case LegacyBehaviorPolicy.CORRECTED => identity[Int]
}

def creteDateRebaseFuncInWrite(
def createDateRebaseFuncInWrite(
rebaseMode: LegacyBehaviorPolicy.Value,
format: String): Int => Int = rebaseMode match {
case LegacyBehaviorPolicy.EXCEPTION => days: Int =>
Expand All @@ -189,7 +189,7 @@ object DataSourceUtils {
case LegacyBehaviorPolicy.CORRECTED => identity[Int]
}

def creteTimestampRebaseFuncInRead(
def createTimestampRebaseFuncInRead(
rebaseMode: LegacyBehaviorPolicy.Value,
format: String): Long => Long = rebaseMode match {
case LegacyBehaviorPolicy.EXCEPTION => micros: Long =>
Expand All @@ -201,7 +201,7 @@ object DataSourceUtils {
case LegacyBehaviorPolicy.CORRECTED => identity[Long]
}

def creteTimestampRebaseFuncInWrite(
def createTimestampRebaseFuncInWrite(
rebaseMode: LegacyBehaviorPolicy.Value,
format: String): Long => Long = rebaseMode match {
case LegacyBehaviorPolicy.EXCEPTION => micros: Long =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@ private[parquet] class ParquetRowConverter(
*/
def currentRecord: InternalRow = currentRow

private val dateRebaseFunc = DataSourceUtils.creteDateRebaseFuncInRead(
private val dateRebaseFunc = DataSourceUtils.createDateRebaseFuncInRead(
datetimeRebaseMode, "Parquet")

private val timestampRebaseFunc = DataSourceUtils.creteTimestampRebaseFuncInRead(
private val timestampRebaseFunc = DataSourceUtils.createTimestampRebaseFuncInRead(
datetimeRebaseMode, "Parquet")

private val int96RebaseFunc = DataSourceUtils.creteTimestampRebaseFuncInRead(
private val int96RebaseFunc = DataSourceUtils.createTimestampRebaseFuncInRead(
int96RebaseMode, "Parquet INT96")

// Converters for each field.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,16 @@ class ParquetWriteSupport extends WriteSupport[InternalRow] with Logging {
private val datetimeRebaseMode = LegacyBehaviorPolicy.withName(
SQLConf.get.getConf(SQLConf.LEGACY_PARQUET_REBASE_MODE_IN_WRITE))

private val dateRebaseFunc = DataSourceUtils.creteDateRebaseFuncInWrite(
private val dateRebaseFunc = DataSourceUtils.createDateRebaseFuncInWrite(
datetimeRebaseMode, "Parquet")

private val timestampRebaseFunc = DataSourceUtils.creteTimestampRebaseFuncInWrite(
private val timestampRebaseFunc = DataSourceUtils.createTimestampRebaseFuncInWrite(
datetimeRebaseMode, "Parquet")

private val int96RebaseMode = LegacyBehaviorPolicy.withName(
SQLConf.get.getConf(SQLConf.LEGACY_PARQUET_INT96_REBASE_MODE_IN_WRITE))

private val int96RebaseFunc = DataSourceUtils.creteTimestampRebaseFuncInWrite(
private val int96RebaseFunc = DataSourceUtils.createTimestampRebaseFuncInWrite(
int96RebaseMode, "Parquet INT96")

override def init(configuration: Configuration): WriteContext = {
Expand Down