Commit 463f868
authored
build: add pqarrow_read_only build tags to avoid building write related code (apache#569)
### Rationale for this change
The current binary when built is 20mb. We have a use case in which we
only need to read data from a parquet file and do not need to write any
parquet data out. By Adding build tags to code that is only needed to
write we can save ~12mb off the size of our binary compiled with
arrow-go.
### What changes are included in this PR?
This PR adds the build tag `!pqarrow_read_only` to write related files
in the `pqarrow` package.
### Are these changes tested?
Tested the build locally and against my read only use case.
Added test in `ci/scripts/build.sh`
### Are there any user-facing changes?
No, this change is only for consumers who build `arrow-go` but do not
need write functionality.1 parent 528af29 commit 463f868
File tree
6 files changed
+14
-2
lines changed- arrow/avro/avro2parquet
- ci/scripts
- parquet/pqarrow
6 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
0 commit comments