Skip to content

Commit b329f52

Browse files
committedDec 5, 2024
fix comment
1 parent 5ecb80a commit b329f52

File tree

5 files changed

+311
-7
lines changed

5 files changed

+311
-7
lines changed
 

‎LICENSE

+273
Original file line numberDiff line numberDiff line change
@@ -226,3 +226,276 @@ under the MIT license:
226226
SOFTWARE.
227227

228228
https://github.com/pola-rs/polars/blob/main/LICENSE
229+
230+
--------------------------------------------------------------------------------
231+
232+
This project includes code from apache spark project, which is licensed
233+
under the Apache license:
234+
235+
Apache License
236+
Version 2.0, January 2004
237+
http://www.apache.org/licenses/
238+
239+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
240+
241+
1. Definitions.
242+
243+
"License" shall mean the terms and conditions for use, reproduction,
244+
and distribution as defined by Sections 1 through 9 of this document.
245+
246+
"Licensor" shall mean the copyright owner or entity authorized by
247+
the copyright owner that is granting the License.
248+
249+
"Legal Entity" shall mean the union of the acting entity and all
250+
other entities that control, are controlled by, or are under common
251+
control with that entity. For the purposes of this definition,
252+
"control" means (i) the power, direct or indirect, to cause the
253+
direction or management of such entity, whether by contract or
254+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
255+
outstanding shares, or (iii) beneficial ownership of such entity.
256+
257+
"You" (or "Your") shall mean an individual or Legal Entity
258+
exercising permissions granted by this License.
259+
260+
"Source" form shall mean the preferred form for making modifications,
261+
including but not limited to software source code, documentation
262+
source, and configuration files.
263+
264+
"Object" form shall mean any form resulting from mechanical
265+
transformation or translation of a Source form, including but
266+
not limited to compiled object code, generated documentation,
267+
and conversions to other media types.
268+
269+
"Work" shall mean the work of authorship, whether in Source or
270+
Object form, made available under the License, as indicated by a
271+
copyright notice that is included in or attached to the work
272+
(an example is provided in the Appendix below).
273+
274+
"Derivative Works" shall mean any work, whether in Source or Object
275+
form, that is based on (or derived from) the Work and for which the
276+
editorial revisions, annotations, elaborations, or other modifications
277+
represent, as a whole, an original work of authorship. For the purposes
278+
of this License, Derivative Works shall not include works that remain
279+
separable from, or merely link (or bind by name) to the interfaces of,
280+
the Work and Derivative Works thereof.
281+
282+
"Contribution" shall mean any work of authorship, including
283+
the original version of the Work and any modifications or additions
284+
to that Work or Derivative Works thereof, that is intentionally
285+
submitted to Licensor for inclusion in the Work by the copyright owner
286+
or by an individual or Legal Entity authorized to submit on behalf of
287+
the copyright owner. For the purposes of this definition, "submitted"
288+
means any form of electronic, verbal, or written communication sent
289+
to the Licensor or its representatives, including but not limited to
290+
communication on electronic mailing lists, source code control systems,
291+
and issue tracking systems that are managed by, or on behalf of, the
292+
Licensor for the purpose of discussing and improving the Work, but
293+
excluding communication that is conspicuously marked or otherwise
294+
designated in writing by the copyright owner as "Not a Contribution."
295+
296+
"Contributor" shall mean Licensor and any individual or Legal Entity
297+
on behalf of whom a Contribution has been received by Licensor and
298+
subsequently incorporated within the Work.
299+
300+
2. Grant of Copyright License. Subject to the terms and conditions of
301+
this License, each Contributor hereby grants to You a perpetual,
302+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
303+
copyright license to reproduce, prepare Derivative Works of,
304+
publicly display, publicly perform, sublicense, and distribute the
305+
Work and such Derivative Works in Source or Object form.
306+
307+
3. Grant of Patent License. Subject to the terms and conditions of
308+
this License, each Contributor hereby grants to You a perpetual,
309+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
310+
(except as stated in this section) patent license to make, have made,
311+
use, offer to sell, sell, import, and otherwise transfer the Work,
312+
where such license applies only to those patent claims licensable
313+
by such Contributor that are necessarily infringed by their
314+
Contribution(s) alone or by combination of their Contribution(s)
315+
with the Work to which such Contribution(s) was submitted. If You
316+
institute patent litigation against any entity (including a
317+
cross-claim or counterclaim in a lawsuit) alleging that the Work
318+
or a Contribution incorporated within the Work constitutes direct
319+
or contributory patent infringement, then any patent licenses
320+
granted to You under this License for that Work shall terminate
321+
as of the date such litigation is filed.
322+
323+
4. Redistribution. You may reproduce and distribute copies of the
324+
Work or Derivative Works thereof in any medium, with or without
325+
modifications, and in Source or Object form, provided that You
326+
meet the following conditions:
327+
328+
(a) You must give any other recipients of the Work or
329+
Derivative Works a copy of this License; and
330+
331+
(b) You must cause any modified files to carry prominent notices
332+
stating that You changed the files; and
333+
334+
(c) You must retain, in the Source form of any Derivative Works
335+
that You distribute, all copyright, patent, trademark, and
336+
attribution notices from the Source form of the Work,
337+
excluding those notices that do not pertain to any part of
338+
the Derivative Works; and
339+
340+
(d) If the Work includes a "NOTICE" text file as part of its
341+
distribution, then any Derivative Works that You distribute must
342+
include a readable copy of the attribution notices contained
343+
within such NOTICE file, excluding those notices that do not
344+
pertain to any part of the Derivative Works, in at least one
345+
of the following places: within a NOTICE text file distributed
346+
as part of the Derivative Works; within the Source form or
347+
documentation, if provided along with the Derivative Works; or,
348+
within a display generated by the Derivative Works, if and
349+
wherever such third-party notices normally appear. The contents
350+
of the NOTICE file are for informational purposes only and
351+
do not modify the License. You may add Your own attribution
352+
notices within Derivative Works that You distribute, alongside
353+
or as an addendum to the NOTICE text from the Work, provided
354+
that such additional attribution notices cannot be construed
355+
as modifying the License.
356+
357+
You may add Your own copyright statement to Your modifications and
358+
may provide additional or different license terms and conditions
359+
for use, reproduction, or distribution of Your modifications, or
360+
for any such Derivative Works as a whole, provided Your use,
361+
reproduction, and distribution of the Work otherwise complies with
362+
the conditions stated in this License.
363+
364+
5. Submission of Contributions. Unless You explicitly state otherwise,
365+
any Contribution intentionally submitted for inclusion in the Work
366+
by You to the Licensor shall be under the terms and conditions of
367+
this License, without any additional terms or conditions.
368+
Notwithstanding the above, nothing herein shall supersede or modify
369+
the terms of any separate license agreement you may have executed
370+
with Licensor regarding such Contributions.
371+
372+
6. Trademarks. This License does not grant permission to use the trade
373+
names, trademarks, service marks, or product names of the Licensor,
374+
except as required for reasonable and customary use in describing the
375+
origin of the Work and reproducing the content of the NOTICE file.
376+
377+
7. Disclaimer of Warranty. Unless required by applicable law or
378+
agreed to in writing, Licensor provides the Work (and each
379+
Contributor provides its Contributions) on an "AS IS" BASIS,
380+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
381+
implied, including, without limitation, any warranties or conditions
382+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
383+
PARTICULAR PURPOSE. You are solely responsible for determining the
384+
appropriateness of using or redistributing the Work and assume any
385+
risks associated with Your exercise of permissions under this License.
386+
387+
8. Limitation of Liability. In no event and under no legal theory,
388+
whether in tort (including negligence), contract, or otherwise,
389+
unless required by applicable law (such as deliberate and grossly
390+
negligent acts) or agreed to in writing, shall any Contributor be
391+
liable to You for damages, including any direct, indirect, special,
392+
incidental, or consequential damages of any character arising as a
393+
result of this License or out of the use or inability to use the
394+
Work (including but not limited to damages for loss of goodwill,
395+
work stoppage, computer failure or malfunction, or any and all
396+
other commercial damages or losses), even if such Contributor
397+
has been advised of the possibility of such damages.
398+
399+
9. Accepting Warranty or Additional Liability. While redistributing
400+
the Work or Derivative Works thereof, You may choose to offer,
401+
and charge a fee for, acceptance of support, warranty, indemnity,
402+
or other liability obligations and/or rights consistent with this
403+
License. However, in accepting such obligations, You may act only
404+
on Your own behalf and on Your sole responsibility, not on behalf
405+
of any other Contributor, and only if You agree to indemnify,
406+
defend, and hold each Contributor harmless for any liability
407+
incurred by, or claims asserted against, such Contributor by reason
408+
of your accepting any such warranty or additional liability.
409+
410+
END OF TERMS AND CONDITIONS
411+
412+
APPENDIX: How to apply the Apache License to your work.
413+
414+
To apply the Apache License to your work, attach the following
415+
boilerplate notice, with the fields enclosed by brackets "[]"
416+
replaced with your own identifying information. (Don't include
417+
the brackets!) The text should be enclosed in the appropriate
418+
comment syntax for the file format. We also recommend that a
419+
file or class name and description of purpose be included on the
420+
same "printed page" as the copyright notice for easier
421+
identification within third-party archives.
422+
423+
Copyright [yyyy] [name of copyright owner]
424+
425+
Licensed under the Apache License, Version 2.0 (the "License");
426+
you may not use this file except in compliance with the License.
427+
You may obtain a copy of the License at
428+
429+
http://www.apache.org/licenses/LICENSE-2.0
430+
431+
Unless required by applicable law or agreed to in writing, software
432+
distributed under the License is distributed on an "AS IS" BASIS,
433+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
434+
See the License for the specific language governing permissions and
435+
limitations under the License.
436+
437+
438+
------------------------------------------------------------------------------------
439+
This product bundles various third-party components under other open source licenses.
440+
This section summarizes those components and their licenses. See licenses/
441+
for text of these licenses.
442+
443+
444+
Apache Software Foundation License 2.0
445+
--------------------------------------
446+
447+
common/network-common/src/main/java/org/apache/spark/network/util/LimitedInputStream.java
448+
core/src/main/java/org/apache/spark/util/collection/TimSort.java
449+
core/src/main/resources/org/apache/spark/ui/static/bootstrap*
450+
core/src/main/resources/org/apache/spark/ui/static/vis*
451+
docs/js/vendor/bootstrap.js
452+
connector/spark-ganglia-lgpl/src/main/java/com/codahale/metrics/ganglia/GangliaReporter.java
453+
core/src/main/resources/org/apache/spark/ui/static/d3-flamegraph.min.js
454+
core/src/main/resources/org/apache/spark/ui/static/d3-flamegraph.css
455+
456+
Python Software Foundation License
457+
----------------------------------
458+
459+
python/pyspark/loose_version.py
460+
461+
BSD 3-Clause
462+
------------
463+
464+
python/lib/py4j-*-src.zip
465+
python/pyspark/cloudpickle/*.py
466+
python/pyspark/join.py
467+
468+
The CSS style for the navigation sidebar of the documentation was originally
469+
submitted by Óscar Nájera for the scikit-learn project. The scikit-learn project
470+
is distributed under the 3-Clause BSD license.
471+
472+
473+
MIT License
474+
-----------
475+
476+
core/src/main/resources/org/apache/spark/ui/static/dagre-d3.min.js
477+
core/src/main/resources/org/apache/spark/ui/static/*dataTables*
478+
core/src/main/resources/org/apache/spark/ui/static/graphlib-dot.min.js
479+
core/src/main/resources/org/apache/spark/ui/static/jquery*
480+
core/src/main/resources/org/apache/spark/ui/static/sorttable.js
481+
docs/js/vendor/anchor.min.js
482+
docs/js/vendor/jquery*
483+
docs/js/vendor/modernizer*
484+
485+
ISC License
486+
-----------
487+
488+
core/src/main/resources/org/apache/spark/ui/static/d3.min.js
489+
490+
491+
Creative Commons CC0 1.0 Universal Public Domain Dedication
492+
-----------------------------------------------------------
493+
(see LICENSE-CC0.txt)
494+
495+
data/mllib/images/kittens/29.5.a_b_EGDP022204.jpg
496+
data/mllib/images/kittens/54893.jpg
497+
data/mllib/images/kittens/DP153539.jpg
498+
data/mllib/images/kittens/DP802813.jpg
499+
data/mllib/images/multi-channel/chr30.4.184.jpg
500+
501+
https://github.com/apache/spark/blob/master/LICENSE

‎java/spark/src/main/scala/org/apache/spark/sql/util/LanceArrowUtils.scala

+12-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,18 @@ import org.apache.spark.sql.types._
2323
import java.util.concurrent.atomic.AtomicInteger
2424
import scala.collection.JavaConverters._
2525

26-
// This file was folk from ArrowUtils in apache spark since it has a lot of private methods.
27-
// In this util, we want to deal with the UINT64 and FixedSizeList
26+
/**
27+
SPDX-License-Identifier: Apache-2.0
28+
SPDX-FileCopyrightText: Copyright The Lance Authors
29+
30+
The following code is originally from https://github.com/apache/spark/blob/master/sql/api/src/main/scala/org/apache/spark/sql/util/ArrowUtils.scala
31+
and is licensed under the Apache license:
32+
33+
License: Apache License 2.0, Copyright 2014 and onwards The Apache Software Foundation.
34+
https://github.com/apache/spark/blob/master/LICENSE
35+
36+
It has been modified by the Lance developers to fit the needs of the Lance project.
37+
*/
2838
object LanceArrowUtils {
2939
def fromArrowField(field: Field): DataType = {
3040
field.getType match {

‎java/spark/src/test/java/com/lancedb/lance/spark/TestUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public static class TestTable1Config {
4141
Arrays.asList(
4242
Arrays.asList(0L, 0L, 0L, 0L, 0L),
4343
Arrays.asList(1L, 2L, 3L, -1L, 1L),
44-
Arrays.asList(2L, 4L, 6L, -2L, 4294967296L),
45-
Arrays.asList(3L, 6L, 9L, -3L, 4294967297L));
44+
Arrays.asList(2L, 4L, 6L, -2L, (1L << 32) + 0L),
45+
Arrays.asList(3L, 6L, 9L, -3L, (1L << 32) + 1L));
4646
public static final LanceConfig lanceConfig;
4747

4848
public static final StructType schema =

‎java/spark/src/test/scala/org/apache/spark/sql/util/LanceArrowUtilsSuite.scala

+12-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@ import org.scalatest.funsuite.AnyFunSuite
2222

2323
import java.time.ZoneId
2424

25-
// this suite code was fork from apache spark ArrowUtilsSuite and add test("unsigned long")
25+
/**
26+
SPDX-License-Identifier: Apache-2.0
27+
SPDX-FileCopyrightText: Copyright The Lance Authors
28+
29+
The following code is originally from https://github.com/apache/spark/blob/master/sql/catalyst/src/test/scala/org/apache/spark/sql/util/ArrowUtilsSuite.scala
30+
and is licensed under the Apache license:
31+
32+
License: Apache License 2.0, Copyright 2014 and onwards The Apache Software Foundation.
33+
https://github.com/apache/spark/blob/master/LICENSE
34+
35+
It has been modified by the Lance developers to fit the needs of the Lance project.
36+
*/
2637
class LanceArrowUtilsSuite extends AnyFunSuite {
2738
def roundtrip(dt: DataType, fieldName: String = "value"): Unit = {
2839
dt match {

‎java/spark/src/test/scala/org/apache/spark/sql/vectorized/LanceArrowColumnVectorSuite.scala

+12-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,18 @@ import org.apache.arrow.vector.complex._
2222
import org.scalatest.funsuite.AnyFunSuite
2323
import org.apache.spark.unsafe.types.UTF8String
2424

25-
// This test code was folk from apache spark ArrowColumnVectorSuite and add test("unsigned long")
25+
/**
26+
SPDX-License-Identifier: Apache-2.0
27+
SPDX-FileCopyrightText: Copyright The Lance Authors
28+
29+
The following code is originally from https://github.com/apache/spark/blob/master/sql/core/src/test/scala/org/apache/spark/sql/vectorized/ArrowColumnVectorSuite.scala
30+
and is licensed under the Apache license:
31+
32+
License: Apache License 2.0, Copyright 2014 and onwards The Apache Software Foundation.
33+
https://github.com/apache/spark/blob/master/LICENSE
34+
35+
It has been modified by the Lance developers to fit the needs of the Lance project.
36+
*/
2637
class LanceArrowColumnVectorSuite extends AnyFunSuite {
2738
test("boolean") {
2839
val allocator = ArrowUtils.rootAllocator.newChildAllocator("boolean", 0, Long.MaxValue)
@@ -510,5 +521,4 @@ class LanceArrowColumnVectorSuite extends AnyFunSuite {
510521
columnVector.close()
511522
allocator.close()
512523
}
513-
514524
}

0 commit comments

Comments
 (0)