Skip to content
Snippets Groups Projects
  1. Jul 09, 2015
    • Wenchen Fan's avatar
      [SPARK-8942][SQL] use double not decimal when cast double and float to timestamp · 09cb0d9c
      Wenchen Fan authored
      Author: Wenchen Fan <cloud0fan@outlook.com>
      
      Closes #7312 from cloud-fan/minor and squashes the following commits:
      
      a4589fa [Wenchen Fan] use double not decimal when cast double and float to timestamp
      09cb0d9c
    • Weizhong Lin's avatar
      [SPARK-8928] [SQL] Makes CatalystSchemaConverter sticking to 1.4.x- when... · 851e247c
      Weizhong Lin authored
      [SPARK-8928] [SQL] Makes CatalystSchemaConverter sticking to 1.4.x- when handling Parquet LISTs in compatible mode
      
      This PR is based on #7209 authored by Sephiroth-Lin.
      
      Author: Weizhong Lin <linweizhong@huawei.com>
      
      Closes #7314 from liancheng/spark-8928 and squashes the following commits:
      
      75267fe [Cheng Lian] Makes CatalystSchemaConverter sticking to 1.4.x- when handling LISTs in compatible mode
      851e247c
    • Cheng Lian's avatar
      Revert "[SPARK-8928] [SQL] Makes CatalystSchemaConverter sticking to 1.4.x-... · c056484c
      Cheng Lian authored
      Revert "[SPARK-8928] [SQL] Makes CatalystSchemaConverter sticking to 1.4.x- when handling Parquet LISTs in compatible mode"
      
      This reverts commit 3dab0da4.
      c056484c
    • Cheng Lian's avatar
      [SPARK-8928] [SQL] Makes CatalystSchemaConverter sticking to 1.4.x- when... · 3dab0da4
      Cheng Lian authored
      [SPARK-8928] [SQL] Makes CatalystSchemaConverter sticking to 1.4.x- when handling Parquet LISTs in compatible mode
      
      This PR is based on #7209 authored by Sephiroth-Lin.
      
      Author: Weizhong Lin <linweizhong@huawei.com>
      
      Closes #7304 from liancheng/spark-8928 and squashes the following commits:
      
      75267fe [Cheng Lian] Makes CatalystSchemaConverter sticking to 1.4.x- when handling LISTs in compatible mode
      3dab0da4
    • Reynold Xin's avatar
      Closes #7310. · a240bf3b
      Reynold Xin authored
      a240bf3b
    • Michael Armbrust's avatar
      [SPARK-8926][SQL] Good errors for ExpectsInputType expressions · 768907eb
      Michael Armbrust authored
      For example: `cannot resolve 'testfunction(null)' due to data type mismatch: argument 1 is expected to be of type int, however, null is of type datetype.`
      
      Author: Michael Armbrust <michael@databricks.com>
      
      Closes #7303 from marmbrus/expectsTypeErrors and squashes the following commits:
      
      c654a0e [Michael Armbrust] fix udts and make errors pretty
      137160d [Michael Armbrust] style
      5428fda [Michael Armbrust] style
      10fac82 [Michael Armbrust] [SPARK-8926][SQL] Good errors for ExpectsInputType expressions
      768907eb
  2. Jul 08, 2015
    • Kousuke Saruta's avatar
      [SPARK-8937] [TEST] A setting `spark.unsafe.exceptionOnMemoryLeak ` is missing in ScalaTest config. · aba5784d
      Kousuke Saruta authored
      `spark.unsafe.exceptionOnMemoryLeak` is present in the config of surefire.
      
      ```
              <!-- Surefire runs all Java tests -->
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.18.1</version>
                <!-- Note config is repeated in scalatest config -->
      ...
      
      <spark.unsafe.exceptionOnMemoryLeak>true</spark.unsafe.exceptionOnMemoryLeak>
                  </systemProperties>
      ...
      ```
      
       but is absent in the config ScalaTest.
      
      Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
      
      Closes #7308 from sarutak/add-setting-for-memory-leak and squashes the following commits:
      
      95644e7 [Kousuke Saruta] Added a setting for memory leak
      aba5784d
    • Andrew Or's avatar
      [SPARK-8910] Fix MiMa flaky due to port contention issue · 47ef423f
      Andrew Or authored
      Due to the way MiMa works, we currently start a `SQLContext` pretty early on. This causes us to start a `SparkUI` that attempts to bind to port 4040. Because many tests run in parallel on the Jenkins machines, this  causes port contention sometimes and fails the MiMa tests.
      
      Note that we already disabled the SparkUI for scalatests. However, the MiMa test is run before we even have a chance to load the default scalatest settings, so we need to explicitly disable the UI ourselves.
      
      Author: Andrew Or <andrew@databricks.com>
      
      Closes #7300 from andrewor14/mima-flaky and squashes the following commits:
      
      b55a547 [Andrew Or] Do not enable SparkUI during tests
      47ef423f
    • Josh Rosen's avatar
      [SPARK-8932] Support copy() for UnsafeRows that do not use ObjectPools · b55499a4
      Josh Rosen authored
      We call Row.copy() in many places throughout SQL but UnsafeRow currently throws UnsupportedOperationException when copy() is called.
      
      Supporting copying when ObjectPool is used may be difficult, since we may need to handle deep-copying of objects in the pool. In addition, this copy() method needs to produce a self-contained row object which may be passed around / buffered by downstream code which does not understand the UnsafeRow format.
      
      In the long run, we'll need to figure out how to handle the ObjectPool corner cases, but this may be unnecessary if other changes are made. Therefore, in order to unblock my sort patch (#6444) I propose that we support copy() for the cases where UnsafeRow does not use an ObjectPool and continue to throw UnsupportedOperationException when an ObjectPool is used.
      
      This patch accomplishes this by modifying UnsafeRow so that it knows the size of the row's backing data in order to be able to copy it into a byte array.
      
      Author: Josh Rosen <joshrosen@databricks.com>
      
      Closes #7306 from JoshRosen/SPARK-8932 and squashes the following commits:
      
      338e6bf [Josh Rosen] Support copy for UnsafeRows that do not use ObjectPools.
      b55499a4
    • Yijie Shen's avatar
      [SPARK-8866][SQL] use 1us precision for timestamp type · a2908148
      Yijie Shen authored
      JIRA: https://issues.apache.org/jira/browse/SPARK-8866
      
      Author: Yijie Shen <henry.yijieshen@gmail.com>
      
      Closes #7283 from yijieshen/micro_timestamp and squashes the following commits:
      
      dc735df [Yijie Shen] update CastSuite to avoid round error
      714eaea [Yijie Shen] add timestamp_udf into blacklist due to precision lose
      c3ca2f4 [Yijie Shen] fix unhandled case in CurrentTimestamp
      8d4aa6b [Yijie Shen] use 1us precision for timestamp type
      a2908148
    • Jonathan Alter's avatar
      [SPARK-8927] [DOCS] Format wrong for some config descriptions · 28fa01e2
      Jonathan Alter authored
      A couple descriptions were not inside `<td></td>` and were being displayed immediately under the section title instead of in their row.
      
      Author: Jonathan Alter <jonalter@users.noreply.github.com>
      
      Closes #7292 from jonalter/docs-config and squashes the following commits:
      
      5ce1570 [Jonathan Alter] [DOCS] Format wrong for some config descriptions
      28fa01e2
    • Davies Liu's avatar
      [SPARK-8450] [SQL] [PYSARK] cleanup type converter for Python DataFrame · 74d8d3d9
      Davies Liu authored
      This PR fixes the converter for Python DataFrame, especially for DecimalType
      
      Closes #7106
      
      Author: Davies Liu <davies@databricks.com>
      
      Closes #7131 from davies/decimal_python and squashes the following commits:
      
      4d3c234 [Davies Liu] Merge branch 'master' of github.com:apache/spark into decimal_python
      20531d6 [Davies Liu] Merge branch 'master' of github.com:apache/spark into decimal_python
      7d73168 [Davies Liu] fix conflit
      6cdd86a [Davies Liu] Merge branch 'master' of github.com:apache/spark into decimal_python
      7104e97 [Davies Liu] improve type infer
      9cd5a21 [Davies Liu] run python tests with SPARK_PREPEND_CLASSES
      829a05b [Davies Liu] fix UDT in python
      c99e8c5 [Davies Liu] fix mima
      c46814a [Davies Liu] convert decimal for Python DataFrames
      74d8d3d9
    • Kousuke Saruta's avatar
      [SPARK-8914][SQL] Remove RDDApi · 2a4f88b6
      Kousuke Saruta authored
      As rxin suggested in #7298 , we should consider to remove `RDDApi`.
      
      Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
      
      Closes #7302 from sarutak/remove-rddapi and squashes the following commits:
      
      e495d35 [Kousuke Saruta] Fixed mima
      cb7ebb9 [Kousuke Saruta] Removed overriding RDDApi
      2a4f88b6
    • Feynman Liang's avatar
      [SPARK-5016] [MLLIB] Distribute GMM mixture components to executors · f472b8cd
      Feynman Liang authored
      Distribute expensive portions of computation for Gaussian mixture components (in particular, pre-computation of `MultivariateGaussian.rootSigmaInv`, the inverse covariance matrix and covariance determinant) across executors. Repost of PR#4654.
      
      Notes for reviewers:
       * What should be the policy for when to distribute computation. Always? When numClusters > threshold? User-specified param?
      
      TODO:
       * Performance testing and comparison for large number of clusters
      
      Author: Feynman Liang <fliang@databricks.com>
      
      Closes #7166 from feynmanliang/GMM_parallel_mixtures and squashes the following commits:
      
      4f351fa [Feynman Liang] Update heuristic and scaladoc
      5ea947e [Feynman Liang] Fix parallelization logic
      00eb7db [Feynman Liang] Add helper method for GMM's M step, remove distributeGaussians flag
      e7c8127 [Feynman Liang] Add distributeGaussians flag and tests
      1da3c7f [Feynman Liang] Distribute mixtures
      f472b8cd
    • Feynman Liang's avatar
      [SPARK-8877] [MLLIB] Public API for association rule generation · 8c32b2e8
      Feynman Liang authored
      Adds FPGrowth.generateAssociationRules to public API for generating association rules after mining frequent itemsets.
      
      Author: Feynman Liang <fliang@databricks.com>
      
      Closes #7271 from feynmanliang/SPARK-8877 and squashes the following commits:
      
      83b8baf [Feynman Liang] Add API Doc
      867abff [Feynman Liang] Add FPGrowth.generateAssociationRules and change access modifiers for AssociationRules
      8c32b2e8
    • Yanbo Liang's avatar
      [SPARK-8068] [MLLIB] Add confusionMatrix method at class MulticlassMetrics in pyspark/mllib · 381cb161
      Yanbo Liang authored
      Add confusionMatrix method at class MulticlassMetrics in pyspark/mllib
      
      Author: Yanbo Liang <ybliang8@gmail.com>
      
      Closes #7286 from yanboliang/spark-8068 and squashes the following commits:
      
      6109fe1 [Yanbo Liang] Add confusionMatrix method at class MulticlassMetrics in pyspark/mllib
      381cb161
    • Cheng Lian's avatar
      [SPARK-6123] [SPARK-6775] [SPARK-6776] [SQL] Refactors Parquet read path for... · 4ffc27ca
      Cheng Lian authored
      [SPARK-6123] [SPARK-6775] [SPARK-6776] [SQL] Refactors Parquet read path for interoperability and backwards-compatibility
      
      This PR is a follow-up of #6617 and is part of [SPARK-6774] [2], which aims to ensure interoperability and backwards-compatibility for Spark SQL Parquet support.  And this one fixes the read path.  Now Spark SQL is expected to be able to read legacy Parquet data files generated by most (if not all) common libraries/tools like parquet-thrift, parquet-avro, and parquet-hive. However, we still need to refactor the write path to write standard Parquet LISTs and MAPs ([SPARK-8848] [4]).
      
      ### Major changes
      
      1. `CatalystConverter` class hierarchy refactoring
      
         - Replaces `CatalystConverter` trait with a much simpler `ParentContainerUpdater`.
      
           Now instead of extending the original `CatalystConverter` trait, every converter class accepts an updater which is responsible for propagating the converted value to some parent container. For example, appending array elements to a parent array buffer, appending a key-value pairs to a parent mutable map, or setting a converted value to some specific field of a parent row. Root converter doesn't have a parent and thus uses a `NoopUpdater`.
      
           This simplifies the design since converters don't need to care about details of their parent converters anymore.
      
         - Unifies `CatalystRootConverter`, `CatalystGroupConverter` and `CatalystPrimitiveRowConverter` into `CatalystRowConverter`
      
           Specifically, now all row objects are represented by `SpecificMutableRow` during conversion.
      
         - Refactors `CatalystArrayConverter`, and removes `CatalystArrayContainsNullConverter` and `CatalystNativeArrayConverter`
      
           `CatalystNativeArrayConverter` was probably designed with the intention of avoiding boxing costs. However, the way it uses Scala generics actually doesn't achieve this goal.
      
           The new `CatalystArrayConverter` handles both nullable and non-nullable array elements in a consistent way.
      
         - Implements backwards-compatibility rules in `CatalystArrayConverter`
      
           When Parquet records are being converted, schema of Parquet files should have already been verified. So we only need to care about the structure rather than field names in the Parquet schema. Since all map objects represented in legacy systems have the same structure as the standard one (see [backwards-compatibility rules for MAP] [1]), we only need to deal with LIST (namely array) in `CatalystArrayConverter`.
      
      2. Requested columns handling
      
         When specifying requested columns in `RowReadSupport`, we used to use a Parquet `MessageType` converted from a Catalyst `StructType` which contains all requested columns.  This is not preferable when taking compatibility and interoperability into consideration.  Because the actual Parquet file may have different physical structure from the converted schema.
      
         In this PR, the schema for requested columns is constructed using the following method:
      
         - For a column that exists in the target Parquet file, we extract the column type by name from the full file schema, and construct a single-field `MessageType` for that column.
         - For a column that doesn't exist in the target Parquet file, we create a single-field `StructType` and convert it to a `MessageType` using `CatalystSchemaConverter`.
         - Unions all single-field `MessageType`s into a full schema containing all requested fields
      
         With this change, we also fix [SPARK-6123] [3] by validating the global schema against each individual Parquet part-files.
      
      ### Testing
      
      This PR also adds compatibility tests for parquet-avro, parquet-thrift, and parquet-hive. Please refer to `README.md` under `sql/core/src/test` for more information about these tests. To avoid build time code generation and adding extra complexity to the build system, Java code generated from testing Thrift schema and Avro IDL is also checked in.
      
      [1]: https://github.com/apache/incubator-parquet-format/blob/master/LogicalTypes.md#backward-compatibility-rules-1
      [2]: https://issues.apache.org/jira/browse/SPARK-6774
      [3]: https://issues.apache.org/jira/browse/SPARK-6123
      [4]: https://issues.apache.org/jira/browse/SPARK-8848
      
      Author: Cheng Lian <lian@databricks.com>
      
      Closes #7231 from liancheng/spark-6776 and squashes the following commits:
      
      360fe18 [Cheng Lian] Adds ParquetHiveCompatibilitySuite
      c6fbc06 [Cheng Lian] Removes WIP file committed by mistake
      b8c1295 [Cheng Lian] Excludes the whole parquet package from MiMa
      598c3e8 [Cheng Lian] Adds extra Maven repo for hadoop-lzo, which is a transitive dependency of parquet-thrift
      926af87 [Cheng Lian] Simplifies Parquet compatibility test suites
      7946ee1 [Cheng Lian] Fixes Scala styling issues
      3d7ab36 [Cheng Lian] Fixes .rat-excludes
      a8f13bb [Cheng Lian] Using Parquet writer API to do compatibility tests
      f2208cd [Cheng Lian] Adds README.md for Thrift/Avro code generation
      1d390aa [Cheng Lian] Adds parquet-thrift compatibility test
      440f7b3 [Cheng Lian] Adds generated files to .rat-excludes
      13b9121 [Cheng Lian] Adds ParquetAvroCompatibilitySuite
      06cfe9d [Cheng Lian] Adds comments about TimestampType handling
      a099d3e [Cheng Lian] More comments
      0cc1b37 [Cheng Lian] Fixes MiMa checks
      884d3e6 [Cheng Lian] Fixes styling issue and reverts unnecessary changes
      802cbd7 [Cheng Lian] Fixes bugs related to schema merging and empty requested columns
      38fe1e7 [Cheng Lian] Adds explicit return type
      7fb21f1 [Cheng Lian] Reverts an unnecessary debugging change
      1781dff [Cheng Lian] Adds test case for SPARK-8811
      6437d4b [Cheng Lian] Assembles requested schema from Parquet file schema
      bcac49f [Cheng Lian] Removes the 16-byte restriction of decimals
      a74fb2c [Cheng Lian] More comments
      0525346 [Cheng Lian] Removes old Parquet record converters
      03c3bd9 [Cheng Lian] Refactors Parquet read path to implement backwards-compatibility rules
      4ffc27ca
    • Daniel Darabos's avatar
      [SPARK-8902] Correctly print hostname in error · 5687f765
      Daniel Darabos authored
      With "+" the strings are separate expressions, and format() is called on the last string before concatenation. (So substitution does not happen.) Without "+" the string literals are merged first by the parser, so format() is called on the complete string.
      
      Should I make a JIRA for this?
      
      Author: Daniel Darabos <darabos.daniel@gmail.com>
      
      Closes #7288 from darabos/patch-2 and squashes the following commits:
      
      be0d3b7 [Daniel Darabos] Correctly print hostname in error
      5687f765
    • DB Tsai's avatar
      [SPARK-8700][ML] Disable feature scaling in Logistic Regression · 57221934
      DB Tsai authored
      All compressed sensing applications, and some of the regression use-cases will have better result by turning the feature scaling off. However, if we implement this naively by training the dataset without doing any standardization, the rate of convergency will not be good. This can be implemented by still standardizing the training dataset but we penalize each component differently to get effectively the same objective function but a better numerical problem. As a result, for those columns with high variances, they will be penalized less, and vice versa. Without this, since all the features are standardized, so they will be penalized the same.
      
      In R, there is an option for this.
      `standardize`
      Logical flag for x variable standardization, prior to fitting the model sequence. The coefficients are always returned on the original scale. Default is standardize=TRUE. If variables are in the same units already, you might not wish to standardize. See details below for y standardization with family="gaussian".
      
      +cc holdenk mengxr jkbradley
      
      Author: DB Tsai <dbt@netflix.com>
      
      Closes #7080 from dbtsai/lors and squashes the following commits:
      
      877e6c7 [DB Tsai] repahse the doc
      7cf45f2 [DB Tsai] address feedback
      78d75c9 [DB Tsai] small change
      c2c9e60 [DB Tsai] style
      6e1a8e0 [DB Tsai] first commit
      57221934
    • Cheolsoo Park's avatar
      [SPARK-8908] [SQL] Add () to distinct definition in dataframe · 00b265f1
      Cheolsoo Park authored
      Adding `()` to the definition of `distinct` in DataFrame allows distinct to be called with parentheses, which is consistent with `dropDuplicates`.
      
      Author: Cheolsoo Park <cheolsoop@netflix.com>
      
      Closes #7298 from piaozhexiu/SPARK-8908 and squashes the following commits:
      
      7f0d923 [Cheolsoo Park] Add () to distinct definition in dataframe
      00b265f1
    • Alok Singh's avatar
      [SPARK-8909][Documentation] Change the scala example in sql-programmi… · 8f3cd932
      Alok Singh authored
      …ng-guide#Manually Specifying Options to be in sync with java,python, R version
      
      Author: Alok Singh <“singhal@us.ibm.com”>
      
      Closes #7299 from aloknsingh/aloknsingh_SPARK-8909 and squashes the following commits:
      
      d3c20ba [Alok Singh] fix the file to .parquet from .json
      d476140 [Alok Singh] [SPARK-8909][Documentation] Change the scala example in sql-programming-guide#Manually Specifying Options to be in sync with java,python, R version
      8f3cd932
    • Feynman Liang's avatar
      [SPARK-8457] [ML] NGram Documentation · c5532e2f
      Feynman Liang authored
      Add documentation for NGram feature transformer.
      
      Author: Feynman Liang <fliang@databricks.com>
      
      Closes #7244 from feynmanliang/SPARK-8457 and squashes the following commits:
      
      5aface9 [Feynman Liang] Pretty print Scala output and add API doc to each codetab
      60d5ac0 [Feynman Liang] Inline API doc and fix indentation
      736ccbc [Feynman Liang] NGram feature transformer documentation
      c5532e2f
    • Keuntae Park's avatar
      [SPARK-8783] [SQL] CTAS with WITH clause does not work · f0315437
      Keuntae Park authored
      Currently, CTESubstitution only handles the case that WITH is on the top of the plan.
      I think it SHOULD handle the case that WITH is child of CTAS.
      This patch simply changes 'match' to 'transform' for recursive search of WITH in the plan.
      
      Author: Keuntae Park <sirpkt@apache.org>
      
      Closes #7180 from sirpkt/SPARK-8783 and squashes the following commits:
      
      e4428f0 [Keuntae Park] Merge remote-tracking branch 'upstream/master' into CTASwithWITH
      1671c77 [Keuntae Park] WITH clause can be inside CTAS
      f0315437
    • MechCoder's avatar
      [SPARK-7785] [MLLIB] [PYSPARK] Add __str__ and __repr__ to Matrices · 2b40365d
      MechCoder authored
      Adding __str__ and  __repr__ to DenseMatrix and SparseMatrix
      
      Author: MechCoder <manojkumarsivaraj334@gmail.com>
      
      Closes #6342 from MechCoder/spark-7785 and squashes the following commits:
      
      7b9a82c [MechCoder] Add tests for greater than 16 elements
      b88e9dd [MechCoder] Increment limit to 16
      1425a01 [MechCoder] Change tests
      36bd166 [MechCoder] Change str and repr representation
      97f0da9 [MechCoder] zip is same as izip in python3
      94ca4b2 [MechCoder] Added doctests and iterate over values instead of colPtrs
      b26fa89 [MechCoder] minor
      394dde9 [MechCoder] [SPARK-7785] Add __str__ and __repr__ to Matrices
      2b40365d
    • Shivaram Venkataraman's avatar
      [SPARK-8900] [SPARKR] Fix sparkPackages in init documentation · 374c8a8a
      Shivaram Venkataraman authored
      cc pwendell
      
      Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu>
      
      Closes #7293 from shivaram/sparkr-packages-doc and squashes the following commits:
      
      c91471d [Shivaram Venkataraman] Fix sparkPackages in init documentation
      374c8a8a
    • Tao Li's avatar
      [SPARK-8657] [YARN] Fail to upload resource to viewfs · 26d9b6b8
      Tao Li authored
      Fail to upload resource to viewfs in spark-1.4
      JIRA Link: https://issues.apache.org/jira/browse/SPARK-8657
      
      Author: Tao Li <litao@sogou-inc.com>
      
      Closes #7125 from litao-buptsse/SPARK-8657-for-master and squashes the following commits:
      
      65b13f4 [Tao Li] [SPARK-8657] [YARN] Fail to upload resource to viewfs
      26d9b6b8
    • Reynold Xin's avatar
      [SPARK-8888][SQL] Use java.util.HashMap in DynamicPartitionWriterContainer. · f61c989b
      Reynold Xin authored
      Just a baby step towards making it more efficient.
      
      Author: Reynold Xin <rxin@databricks.com>
      
      Closes #7282 from rxin/SPARK-8888 and squashes the following commits:
      
      3da51ae [Reynold Xin] [SPARK-8888][SQL] Use java.util.HashMap in DynamicPartitionWriterContainer.
      f61c989b
    • Wenchen Fan's avatar
      [SPARK-8753][SQL] Create an IntervalType data type · 0ba98c04
      Wenchen Fan authored
      We need a new data type to represent time intervals. Because we can't determine how many days in a month, so we need 2 values for interval: a int `months`, a long `microseconds`.
      
      The interval literal syntax looks like:
      `interval 3 years -4 month 4 weeks 3 second`
      
      Because we use number of 100ns as value of `TimestampType`, so it may not makes sense to support nano second unit.
      
      Author: Wenchen Fan <cloud0fan@outlook.com>
      
      Closes #7226 from cloud-fan/interval and squashes the following commits:
      
      632062d [Wenchen Fan] address comments
      ac348c3 [Wenchen Fan] use case class
      0342d2e [Wenchen Fan] use array byte
      df9256c [Wenchen Fan] fix style
      fd6f18a [Wenchen Fan] address comments
      1856af3 [Wenchen Fan] support interval type
      0ba98c04
    • Davies Liu's avatar
      [SPARK-5707] [SQL] fix serialization of generated projection · 74335b31
      Davies Liu authored
      Author: Davies Liu <davies@databricks.com>
      
      Closes #7272 from davies/fix_projection and squashes the following commits:
      
      075ef76 [Davies Liu] fix codegen with BroadcastHashJion
      74335b31
    • Takeshi YAMAMURO's avatar
      [SPARK-6912] [SQL] Throw an AnalysisException when unsupported Java Map<K,V> types used in Hive UDF · 3e831a26
      Takeshi YAMAMURO authored
      To make UDF developers understood, throw an exception when unsupported Map<K,V> types used in Hive UDF. This fix is the same with #7248.
      
      Author: Takeshi YAMAMURO <linguin.m.s@gmail.com>
      
      Closes #7257 from maropu/ThrowExceptionWhenMapUsed and squashes the following commits:
      
      916099a [Takeshi YAMAMURO] Fix style errors
      7886dcc [Takeshi YAMAMURO] Throw an exception when Map<> used in Hive UDF
      3e831a26
    • Liang-Chi Hsieh's avatar
      [SPARK-8785] [SQL] Improve Parquet schema merging · 6722aca8
      Liang-Chi Hsieh authored
      JIRA: https://issues.apache.org/jira/browse/SPARK-8785
      
      Currently, the parquet schema merging (`ParquetRelation2.readSchema`) may spend much time to merge duplicate schema. We can select only non duplicate schema and merge them later.
      
      Author: Liang-Chi Hsieh <viirya@gmail.com>
      Author: Liang-Chi Hsieh <viirya@appier.com>
      
      Closes #7182 from viirya/improve_parquet_merging and squashes the following commits:
      
      5cf934f [Liang-Chi Hsieh] Refactor it to make it faster.
      f3411ea [Liang-Chi Hsieh] Merge remote-tracking branch 'upstream/master' into improve_parquet_merging
      a63c3ff [Liang-Chi Hsieh] Improve Parquet schema merging.
      6722aca8
    • Sun Rui's avatar
      [SPARK-8894] [SPARKR] [DOC] Example code errors in SparkR documentation. · bf02e377
      Sun Rui authored
      Author: Sun Rui <rui.sun@intel.com>
      
      Closes #7287 from sun-rui/SPARK-8894 and squashes the following commits:
      
      da63898 [Sun Rui] [SPARK-8894][SPARKR][DOC] Example code errors in SparkR documentation.
      bf02e377
    • Kashif Rasul's avatar
      [SPARK-8872] [MLLIB] added verification results from R for FPGrowthSuite · 3bb21775
      Kashif Rasul authored
      Author: Kashif Rasul <kashif.rasul@gmail.com>
      
      Closes #7269 from kashif/SPARK-8872 and squashes the following commits:
      
      2d5457f [Kashif Rasul] added R code for FP Int type
      3de6808 [Kashif Rasul] added verification results from R for FPGrowthSuite
      3bb21775
    • jerryshao's avatar
      [SPARK-7050] [BUILD] Fix Python Kafka test assembly jar not found issue under Maven build · 8a9d9cc1
      jerryshao authored
       To fix Spark Streaming unit test with maven build. Previously the name and path of maven generated jar is different from sbt, which will lead to following exception. This fix keep the same behavior with both Maven and sbt build.
      
      ```
      Failed to find Spark Streaming Kafka assembly jar in /home/xyz/spark/external/kafka-assembly
      You need to build Spark with  'build/sbt assembly/assembly streaming-kafka-assembly/assembly' or 'build/mvn package' before running this program
      ```
      
      Author: jerryshao <saisai.shao@intel.com>
      
      Closes #5632 from jerryshao/SPARK-7050 and squashes the following commits:
      
      74b068d [jerryshao] Fix mvn build issue
      8a9d9cc1
    • Cheng Hao's avatar
      [SPARK-8883][SQL]Remove the OverrideFunctionRegistry · 351a36d0
      Cheng Hao authored
      Remove the `OverrideFunctionRegistry` from the Spark SQL, as the subclasses of `FunctionRegistry` have their own way to the delegate to the right underlying `FunctionRegistry`.
      
      Author: Cheng Hao <hao.cheng@intel.com>
      
      Closes #7260 from chenghao-intel/override and squashes the following commits:
      
      164d093 [Cheng Hao] enable the function registry
      2ca8459 [Cheng Hao] remove the OverrideFunctionRegistry
      351a36d0
    • Tijo Thomas's avatar
      [SPARK-8886][Documentation]python Style update · 08192a1b
      Tijo Thomas authored
      Fixed comment given by rxin
      
      Author: Tijo Thomas <tijoparacka@gmail.com>
      
      Closes #7281 from tijoparacka/modification_for_python_style and squashes the following commits:
      
      6334e21 [Tijo Thomas] removed space
      3de4cd8 [Tijo Thomas] python Style update
      08192a1b
    • Reynold Xin's avatar
      [SPARK-8879][SQL] Remove EmptyRow class. · 61c3cf79
      Reynold Xin authored
      As a baby step towards no megamorphic InternalRow.
      
      Author: Reynold Xin <rxin@databricks.com>
      
      Closes #7277 from rxin/remove-empty-row and squashes the following commits:
      
      594100e [Reynold Xin] [SPARK-8879][SQL] Remove EmptyRow class.
      61c3cf79
  3. Jul 07, 2015
    • Reynold Xin's avatar
      [SPARK-8878][SQL] Improve unit test coverage for bitwise expressions. · 5d603dfe
      Reynold Xin authored
      Author: Reynold Xin <rxin@databricks.com>
      
      Closes #7273 from rxin/bitwise-unittest and squashes the following commits:
      
      60c5667 [Reynold Xin] [SPARK-8878][SQL] Improve unit test coverage for bitwise expressions.
      5d603dfe
    • Yin Huai's avatar
      [SPARK-8868] SqlSerializer2 can go into infinite loop when row consists only of NullType columns · 68a4a169
      Yin Huai authored
      https://issues.apache.org/jira/browse/SPARK-8868
      
      Author: Yin Huai <yhuai@databricks.com>
      
      Closes #7262 from yhuai/SPARK-8868 and squashes the following commits:
      
      cb58780 [Yin Huai] Andrew's comment.
      e456857 [Yin Huai] Josh's comments.
      5122e65 [Yin Huai] If types of all columns are NullTypes, do not use serializer2.
      68a4a169
    • Davies Liu's avatar
      [SPARK-7190] [SPARK-8804] [SPARK-7815] [SQL] unsafe UTF8String · 4ca90935
      Davies Liu authored
      Let UTF8String work with binary buffer. Before we have better idea on manage the lifecycle of UTF8String in Row, we still do the copy when calling `UnsafeRow.get()` for StringType.
      
      cc rxin JoshRosen
      
      Author: Davies Liu <davies@databricks.com>
      
      Closes #7197 from davies/unsafe_string and squashes the following commits:
      
      51b0ea0 [Davies Liu] fix test
      50c1ebf [Davies Liu] remove optimization for upper/lower case
      315d491 [Davies Liu] Merge branch 'master' of github.com:apache/spark into unsafe_string
      93fce17 [Davies Liu] address comment
      e9ff7ba [Davies Liu] clean up
      67ec266 [Davies Liu] fix bug
      7b74b1f [Davies Liu] fallback to String if local dependent
      ab7857c [Davies Liu] address comments
      7da92f5 [Davies Liu] handle local in toUpperCase/toLowerCase
      59dbb23 [Davies Liu] revert python change
      d1e0716 [Davies Liu] Merge branch 'master' of github.com:apache/spark into unsafe_string
      002e35f [Davies Liu] rollback hashCode change
      a87b7a8 [Davies Liu] improve toLowerCase and toUpperCase
      76e794a [Davies Liu] fix test
      8b2d5ce [Davies Liu] fix tests
      fd3f0a6 [Davies Liu] bug fix
      c4e9c88 [Davies Liu] Merge branch 'master' of github.com:apache/spark into unsafe_string
      c45d921 [Davies Liu] address comments
      175405f [Davies Liu] unsafe UTF8String
      4ca90935
Loading