MacOS with the default settings, on IPv6-enabled home network. Integration tests fails with panic:
--- FAIL: TestDataFrame_Select (0.00s)
dataframe_test.go:41:
Error Trace: /Users/ott/development/forks/spark-connect-go/internal/tests/integration/dataframe_test.go:41
Error: Received unexpected error:
[sparkerror] Error Type: execution error
Error Cause: failed to execute sql: select * from range(100): execution error: failed to call ExecutePlan in session 30941d43-d69e-4af0-af17-acfd619ca7da: rpc error: code = Unavailable desc = dns: error parsing A record IP address fe80::1%lo0
/Users/ott/development/forks/spark-connect-go/spark/sql/sparksession.go:135 (0x102fe4f41)
(*sparkSessionImpl).Sql: return nil, sparkerrors.WithType(fmt.Errorf("failed to execute sql: %s: %w", query, err), sparkerrors.ExecutionError)
/Users/ott/development/forks/spark-connect-go/internal/tests/integration/dataframe_test.go:40 (0x103022804)
TestDataFrame_Select: df, err := spark.Sql(ctx, "select * from range(100)")
/opt/homebrew/Cellar/go/1.23.4/libexec/src/testing/testing.go:1690 (0x102a09e64)
tRunner: fn(t)
/opt/homebrew/Cellar/go/1.23.4/libexec/src/runtime/asm_arm64.s:1223 (0x102950724)
goexit: MOVD R0, R0 // NOP
Test: TestDataFrame_Select
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x198 pc=0x10302293c]
Changing from sc://localhost to sc://127.0.0.1 fixes the problem
MacOS with the default settings, on IPv6-enabled home network. Integration tests fails with panic:
Changing from
sc://localhosttosc://127.0.0.1fixes the problem