Commit 7fc2421
fix: Throw error for unsupported compression kinds in TextReader (facebookincubator#15316)
Summary:
This PR fixes an issue where TextReader would produce garbled output when
trying to read files with unsupported compression formats (like SNAPPY,
LZO, LZ4). Instead of failing silently, TextReader will now check the
compression kind upon initialization and throw an explicit exception if
it is not supported. This prevents data corruption and provides clear
feedback to the user.
This PR fixes facebookincubator#15314.
Pull Request resolved: facebookincubator#15316
Reviewed By: kevinwilfong
Differential Revision: D85881726
Pulled By: zacw7
fbshipit-source-id: b08920b030dcc5d50ac1b9bcfb0a67a6fdd1b4171 parent 853c625 commit 7fc2421
File tree
5 files changed
+33
-0
lines changed- velox/dwio/text
- reader
- tests/reader
- examples
5 files changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1910 | 1910 | | |
1911 | 1911 | | |
1912 | 1912 | | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
1913 | 1938 | | |
1914 | 1939 | | |
1915 | 1940 | | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
0 commit comments