Skip to content

Import commits from apache/arrow #1

Closed

Description

@kou

We need only commits for https://github.com/apache/arrow/tree/main/go . Other commits such as commits for .github/ aren't needed. We need to adjust other files for this repository.

We can do this by the following command lines:

git clone [email protected]:apache/arrow-go.git
cd arrow-go
git remote add arrow https://github.com/apache/arrow.git
git fetch arrow
git switch -c arrow-main-go arrow/main
git filter-branch --subdirectory-filter go
git switch main
git rebase arrow-main-go
git push origin --force main

Activity

  1. raulcd commented on Aug 29, 2024

    @raulcd
    Member

    I've tested the commands locally (without the push obviously) and the repository looks good on a first check. Should we run some testing to validate functionality before pushing?

  2. kou commented on Aug 29, 2024

    @kou
    MemberAuthor

    Good point. We can use go test ./... but we need to setup ARROW_TEST_DATA and PARQUET_TEST_DATA:

    ok  	github.com/apache/arrow/go/v18/arrow	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/array	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/arrio	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/avro/avro2parquet	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/avro	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/cdata	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/bitutil	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/compute	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/compute/exec	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/compute/internal/kernels	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/compute/exprs	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/csv	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/decimal128	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/decimal256	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/endian	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/encoded	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/extensions	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/flight	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/flight/flightsql	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/flight/flightsql/example	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/flight/flightsql/driver	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/flight/flightsql/example/cmd/sqlite_flightsql_server	[no test files]
    ?   	github.com/apache/arrow/go/v18/arrow/flight/flightsql/schema_ref	[no test files]
    ?   	github.com/apache/arrow/go/v18/arrow/flight/gen/flight	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/flight/session	(cached) [no tests to run]
    ok  	github.com/apache/arrow/go/v18/arrow/float16	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/internal	[no test files]
    ?   	github.com/apache/arrow/go/v18/arrow/internal/arrdata	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/internal/arrjson	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/internal/debug	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/internal/dictutils	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/internal/flatbuf	[no test files]
    ?   	github.com/apache/arrow/go/v18/arrow/internal/flight_integration	[no test files]
    ?   	github.com/apache/arrow/go/v18/arrow/internal/flight_integration/cmd/arrow-flight-integration-client	[no test files]
    ?   	github.com/apache/arrow/go/v18/arrow/internal/flight_integration/cmd/arrow-flight-integration-server	[no test files]
    ?   	github.com/apache/arrow/go/v18/arrow/internal/testing/gen	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/internal/testing/tools	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/ipc	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/ipc/cmd/arrow-cat	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/ipc/cmd/arrow-file-to-stream	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/ipc/cmd/arrow-json-integration-test	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/ipc/cmd/arrow-ls	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/ipc/cmd/arrow-stream-to-file	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/math	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/memory	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/memory/mallocator	(cached)
    ok  	github.com/apache/arrow/go/v18/arrow/scalar	(cached)
    ?   	github.com/apache/arrow/go/v18/arrow/util/util_message	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/tensor	(cached)
    ?   	github.com/apache/arrow/go/v18/internal/json	[no test files]
    ?   	github.com/apache/arrow/go/v18/internal/types	[no test files]
    ok  	github.com/apache/arrow/go/v18/arrow/util	(cached)
    ok  	github.com/apache/arrow/go/v18/internal/bitutils	(cached)
    ok  	github.com/apache/arrow/go/v18/internal/hashing	(cached)
    ok  	github.com/apache/arrow/go/v18/internal/utils	(cached)
    ?   	github.com/apache/arrow/go/v18/parquet/cmd/parquet_reader	[no test files]
    ?   	github.com/apache/arrow/go/v18/parquet/cmd/parquet_schema	[no test files]
    ?   	github.com/apache/arrow/go/v18/parquet/internal/debug	[no test files]
    ?   	github.com/apache/arrow/go/v18/parquet/internal/encryption	[no test files]
    ?   	github.com/apache/arrow/go/v18/parquet/internal/gen-go/parquet	[no test files]
    ?   	github.com/apache/arrow/go/v18/parquet/internal/testutils	[no test files]
    ?   	github.com/apache/arrow/go/v18/parquet/internal/thrift	[no test files]
    ok  	github.com/apache/arrow/go/v18/parquet	0.255s
    ok  	github.com/apache/arrow/go/v18/parquet/compress	(cached)
    ok  	github.com/apache/arrow/go/v18/parquet/file	17.140s
    ok  	github.com/apache/arrow/go/v18/parquet/internal/bmi	(cached)
    ok  	github.com/apache/arrow/go/v18/parquet/internal/encoding	4.240s
    ok  	github.com/apache/arrow/go/v18/parquet/internal/utils	(cached)
    ok  	github.com/apache/arrow/go/v18/parquet/metadata	(cached)
    ok  	github.com/apache/arrow/go/v18/parquet/pqarrow	3.482s
    ok  	github.com/apache/arrow/go/v18/parquet/schema	(cached)
    

    Hmm. It seems that we misses some files. (There are some "[no test files]".)

    I haven't looked into them yet but I think that we can work on them as follow-up tasks.

  3. joellubi commented on Aug 29, 2024

    @joellubi
    Member

    Hmm. It seems that we misses some files. (There are some "[no test files]".)

    This doesn't necessarily mean we missed files, not all directories contain test files. I've confirmed I get the same test output running on apache/arrow:main.

  4. kou commented on Aug 29, 2024

    @kou
    MemberAuthor

    Thanks. I didn't know about it.

  5. raulcd commented on Aug 29, 2024

    @raulcd
    Member

    Thanks @kou the output LGTM. @joellubi @zeroshade unless you want to do some extra testing I would go with the current.
    BTW we should track if there is any new commit being pushed to the main arrow repo on the go side to manually cherry-pick it in the interim.

  6. zeroshade commented on Aug 29, 2024

    @zeroshade
    Member

    This LGTM, we can do a follow-up PR that will update all of the import paths across the code-base to the new URL

  7. kou commented on Aug 29, 2024

    @kou
    MemberAuthor

    Thanks for confirming this approach. I'll do it soon.

    FYI: Here are related issues:

    BTW we should track if there is any new commit being pushed to the main arrow repo on the go side to manually cherry-pick it in the interim.

    apache/arrow#43881 [Go] Notify apache/arrow-go migration to all open PRs

    we can do a follow-up PR that will update all of the import paths across the code-base to the new URL

    #4 Update package name

  8. kou commented on Aug 30, 2024

    @kou
    MemberAuthor

    Sorry. I haven't done this yet.
    I'll do this now.

  9. kou commented on Aug 30, 2024

    @kou
    MemberAuthor

    We need to remove the protected branch configuration in .asf.yaml:

    $ git push origin --force-with-lease main
    Enumerating objects: 13921, done.
    Counting objects: 100% (13921/13921), done.
    Delta compression using up to 24 threads
    Compressing objects: 100% (3993/3993), done.
    Writing objects: 100% (13921/13921), 13.79 MiB | 2.75 MiB/s, done.
    Total 13921 (delta 9809), reused 13212 (delta 9721), pack-reused 0 (from 0)
    remote: Resolving deltas: 100% (9809/9809), done.
    remote: error: GH006: Protected branch update failed for refs/heads/main.
    remote: error: Cannot force-push to this branch
    To github.com:apache/arrow-go.git
     ! [remote rejected]     main -> main (protected branch hook declined)
    error: failed to push some refs to 'github.com:apache/arrow-go.git'
  10. added a commit that references this issue on Aug 30, 2024
  11. kou commented on Aug 30, 2024

    @kou
    MemberAuthor

    I tried git cherry-pick arrow-main-go instead of git merge to avoid force push. But it causes conflicts...

    Can we enable force push temporary? #80

  12. kou commented on Aug 30, 2024

    @kou
    MemberAuthor

    Oh, (git log --format=%H --reverse arrow-main-go | while read commit; do git cherry-pick $commit; done) works without conflict. I'll push it without #80.

  13. kou commented on Aug 30, 2024

    @kou
    MemberAuthor

    Pushed!

  14. added this to the 18.0.0 milestone on Oct 16, 2024
  15. added 3 commits that reference this issue on Mar 13, 2026
    d44414c
    49815c3
    90b9b69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions