This repository was archived by the owner on May 7, 2026. It is now read-only.
Commit 10ec52f
authored
feat: add bigframes.bigquery.st_regionstats to join raster data from Earth Engine (#2228)
* feat: add bigframes.bigquery.st_regionstats to join raster data from Earth Engine
* upgrade sqlglot
* address samples lint error
* avoid sqlglot rtrim/ltrim bug1 parent 5663d2a commit 10ec52fCopy full SHA for 10ec52f
16 files changed
+399-7Lines changed: 399 additions & 7 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- bigframes
- bigquery
- _operations
- core/compile
- ibis_compiler/operations
- sqlglot/expressions
- operations
- samples/snippets
- testing
- tests/unit/core/compile/sqlglot
- snapshots/test_compile_geo
- test_st_regionstats_without_optional_args
- test_st_regionstats
- test_st_simplify
- third_party/bigframes_vendored/ibis
- backends/sql/compilers
- bigquery
- expr/operations
Expand file treeCollapse file tree
Open diff view settings
Collapse file
bigframes/bigquery/__init__.py
Copy file name to clipboardExpand all lines: bigframes/bigquery/__init__.py+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
| 43 | + |
43 | 44 | |
44 | 45 | |
45 | 46 | |
| ||
81 | 82 | |
82 | 83 | |
83 | 84 | |
| 85 | + |
84 | 86 | |
85 | 87 | |
86 | 88 | |
|
Collapse file
bigframes/bigquery/_operations/geo.py
Copy file name to clipboardExpand all lines: bigframes/bigquery/_operations/geo.py+62-1Lines changed: 62 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
| 17 | + |
| 18 | + |
18 | 19 | |
19 | 20 | |
20 | 21 | |
21 | 22 | |
| 23 | + |
22 | 24 | |
23 | 25 | |
24 | 26 | |
| ||
677 | 679 | |
678 | 680 | |
679 | 681 | |
| 682 | + |
| 683 | + |
| 684 | + |
| 685 | + |
| 686 | + |
| 687 | + |
| 688 | + |
| 689 | + |
| 690 | + |
| 691 | + |
| 692 | + |
| 693 | + |
| 694 | + |
| 695 | + |
| 696 | + |
| 697 | + |
| 698 | + |
| 699 | + |
| 700 | + |
| 701 | + |
| 702 | + |
| 703 | + |
| 704 | + |
| 705 | + |
| 706 | + |
| 707 | + |
| 708 | + |
| 709 | + |
| 710 | + |
| 711 | + |
| 712 | + |
| 713 | + |
| 714 | + |
| 715 | + |
| 716 | + |
| 717 | + |
| 718 | + |
| 719 | + |
| 720 | + |
| 721 | + |
| 722 | + |
| 723 | + |
| 724 | + |
| 725 | + |
| 726 | + |
| 727 | + |
| 728 | + |
| 729 | + |
| 730 | + |
| 731 | + |
| 732 | + |
| 733 | + |
| 734 | + |
| 735 | + |
| 736 | + |
| 737 | + |
| 738 | + |
| 739 | + |
| 740 | + |
680 | 741 | |
681 | 742 | |
682 | 743 | |
|
Collapse file
bigframes/core/compile/ibis_compiler/operations/geo_ops.py
Copy file name to clipboardExpand all lines: bigframes/core/compile/ibis_compiler/operations/geo_ops.py+31Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
| 19 | + |
19 | 20 | |
20 | 21 | |
| 22 | + |
21 | 23 | |
22 | 24 | |
23 | 25 | |
| ||
101 | 103 | |
102 | 104 | |
103 | 105 | |
| 106 | + |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
104 | 135 | |
105 | 136 | |
106 | 137 | |
|
Collapse file
bigframes/core/compile/sqlglot/expressions/geo_ops.py
Copy file name to clipboardExpand all lines: bigframes/core/compile/sqlglot/expressions/geo_ops.py+26Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
74 | 74 | |
75 | 75 | |
76 | 76 | |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
77 | 103 | |
78 | 104 | |
79 | 105 | |
|
Collapse file
bigframes/operations/__init__.py
Copy file name to clipboardExpand all lines: bigframes/operations/__init__.py+5-3Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
121 | 121 | |
122 | 122 | |
123 | 123 | |
| 124 | + |
124 | 125 | |
125 | 126 | |
126 | 127 | |
| ||
415 | 416 | |
416 | 417 | |
417 | 418 | |
418 | | - |
419 | | - |
420 | | - |
421 | 419 | |
422 | 420 | |
| 421 | + |
423 | 422 | |
| 423 | + |
| 424 | + |
| 425 | + |
424 | 426 | |
425 | 427 | |
426 | 428 | |
|
Collapse file
bigframes/operations/geo_ops.py
Copy file name to clipboardExpand all lines: bigframes/operations/geo_ops.py+24Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
13 | 13 | |
14 | 14 | |
15 | 15 | |
| 16 | + |
16 | 17 | |
17 | 18 | |
18 | 19 | |
| ||
135 | 136 | |
136 | 137 | |
137 | 138 | |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
138 | 162 | |
139 | 163 | |
140 | 164 | |
|
Collapse file
samples/snippets/st_regionstats_test.py
Copy file name to clipboard+80Lines changed: 80 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
Collapse file
+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
54 | 54 | |
55 | 55 | |
56 | 56 | |
57 | | - |
| 57 | + |
| 58 | + |
58 | 59 | |
59 | 60 | |
60 | 61 | |
|
Collapse file
testing/constraints-3.9.txt
Copy file name to clipboardExpand all lines: testing/constraints-3.9.txt+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
| 24 | + |
25 | 25 | |
26 | 26 | |
27 | 27 | |
|
Collapse file
tests/unit/core/compile/sqlglot/snapshots/test_compile_geo/test_st_regionstats/out.sql
Copy file name to clipboard+36Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
0 commit comments