You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "manuzhang (via GitHub)" <gi...@apache.org> on 2024/08/23 17:16:20 UTC

[PR] Remove Hive 2 dependency [iceberg]

manuzhang opened a new pull request, #10996:
URL: https://github.com/apache/iceberg/pull/10996

   (no comment)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2482615446

   @pvary  The failed tests list
   
   - TestHiveIcebergStorageHandlerLocalScan
   - TestHiveIcebergStorageHandlerNoScan
   - TestHiveIcebergStorageHandlerTimezone
   - TestHiveIcebergStorageHandlerWithEngine
   - TestHiveIcebergStorageHandlerWithMultipleCatalogs
   - TestHiveIcebergWithHiveAutogatherEnable
   
   I've restored checking of hive version in `iceberg-hive-metastore` module for spark tests to pass. `HiveVersion` is now only used in that module.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "BsoBird (via GitHub)" <gi...@apache.org>.
BsoBird commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1732222258


##########
mr/build.gradle:
##########
@@ -52,8 +52,8 @@ project(':iceberg-mr') {
       exclude group: 'org.pentaho' // missing dependency
       exclude group: 'org.slf4j', module: 'slf4j-log4j12'
     }
-    compileOnly libs.hive2.metastore
-    compileOnly libs.hive2.serde
+    compileOnly libs.hive3.metastore

Review Comment:
   Sir. should we jump straight to HIVE4?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1751666990


##########
mr/src/test/java/org/apache/iceberg/mr/hive/serde/objectinspector/TestIcebergObjectInspector.java:
##########
@@ -99,14 +98,9 @@ public void testIcebergObjectInspector() {
     assertThat(dateField.getFieldID()).isEqualTo(3);
     assertThat(dateField.getFieldName()).isEqualTo("date_field");
     assertThat(dateField.getFieldComment()).isEqualTo("date comment");
-    if (HiveVersion.min(HiveVersion.HIVE_3)) {
-      assertThat(dateField.getFieldObjectInspector().getClass().getName())
-          .isEqualTo(
-              "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive3");
-    } else {
-      assertThat(dateField.getFieldObjectInspector().getClass().getName())
-          .isEqualTo("org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspector");
-    }
+    assertThat(dateField.getFieldObjectInspector().getClass().getName())
+        .isEqualTo(
+            "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive");

Review Comment:
   seems that this is the wrong class here (and further below)?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2487438171

   @pvary @nastra @Fokko  @gaborkaszab I've sent out a discussion email. Please share your thoughts there.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1750200212


##########
mr/src/main/java/org/apache/iceberg/mr/hive/serde/objectinspector/IcebergObjectInspector.java:
##########
@@ -27,33 +27,23 @@
 import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;
 import org.apache.iceberg.Schema;
 import org.apache.iceberg.common.DynMethods;
-import org.apache.iceberg.hive.HiveVersion;
 import org.apache.iceberg.types.Type;
 import org.apache.iceberg.types.TypeUtil;
 import org.apache.iceberg.types.Types;
 
 public final class IcebergObjectInspector extends TypeUtil.SchemaVisitor<ObjectInspector> {
 
-  // get the correct inspectors depending on whether we're working with Hive2 or Hive3 dependencies
-  // we need to do this because there is a breaking API change in Date/TimestampObjectInspector
-  // between Hive2 and Hive3
   private static final String DATE_INSPECTOR_CLASS =
-      HiveVersion.min(HiveVersion.HIVE_3)
-          ? "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive3"
-          : "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspector";
+      "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspector";

Review Comment:
   maybe just rename those classes so that they don't have the `Hive` suffix



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1750198331


##########
mr/src/main/java/org/apache/iceberg/mr/hive/serde/objectinspector/IcebergObjectInspector.java:
##########
@@ -27,33 +27,23 @@
 import org.apache.hadoop.hive.serde2.typeinfo.TypeInfoFactory;
 import org.apache.iceberg.Schema;
 import org.apache.iceberg.common.DynMethods;
-import org.apache.iceberg.hive.HiveVersion;
 import org.apache.iceberg.types.Type;
 import org.apache.iceberg.types.TypeUtil;
 import org.apache.iceberg.types.Types;
 
 public final class IcebergObjectInspector extends TypeUtil.SchemaVisitor<ObjectInspector> {
 
-  // get the correct inspectors depending on whether we're working with Hive2 or Hive3 dependencies
-  // we need to do this because there is a breaking API change in Date/TimestampObjectInspector
-  // between Hive2 and Hive3
   private static final String DATE_INSPECTOR_CLASS =
-      HiveVersion.min(HiveVersion.HIVE_3)
-          ? "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive3"
-          : "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspector";
+      "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspector";

Review Comment:
   is this the correct one?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 and Hadoop 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang closed pull request #10996: Remove Hive 2 and Hadoop 2
URL: https://github.com/apache/iceberg/pull/10996


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2479011158

   6 tests in `iceberg-mr` failed due to [HIVE-21584](https://issues.apache.org/jira/browse/HIVE-21584).
   
   ```
   TestHiveIcebergWithHiveAutogatherEnable > initializationError FAILED
       java.lang.RuntimeException: Error applying authorization policy on hive configuration: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
           at org.apache.hive.service.cli.CLIService.init(CLIService.java:118)
           at org.apache.hive.service.CompositeService.init(CompositeService.java:59)
           at org.apache.hive.service.server.HiveServer2.init(HiveServer2.java:229)
           at org.apache.iceberg.mr.hive.TestHiveShell.start(TestHiveShell.java:96)
           at org.apache.iceberg.mr.hive.HiveIcebergStorageHandlerTestUtils.shell(HiveIcebergStorageHandlerTestUtils.java:76)
           at org.apache.iceberg.mr.hive.TestHiveIcebergWithHiveAutogatherEnable.beforeClass(TestHiveIcebergWithHiveAutogatherEnable.java:74)
   
           Caused by:
           java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')
               at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:413)
               at org.apache.hadoop.hive.ql.session.SessionState.<init>(SessionState.java:389)
               at org.apache.hive.service.cli.CLIService.applyAuthorizationConfigPolicy(CLIService.java:128)
               at org.apache.hive.service.cli.CLIService.init(CLIService.java:115)
               ... 5 more
   ```
   
   It's been back-ported to hive 3.1, but there's no new release yet. @pvary @nastra thoughts?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1752004828


##########
mr/src/test/java/org/apache/iceberg/mr/hive/serde/objectinspector/TestIcebergObjectInspector.java:
##########
@@ -168,26 +161,16 @@ public void testIcebergObjectInspector() {
     assertThat(timestampField.getFieldID()).isEqualTo(11);
     assertThat(timestampField.getFieldName()).isEqualTo("timestamp_field");
     assertThat(timestampField.getFieldComment()).isEqualTo("timestamp comment");
-    if (HiveVersion.min(HiveVersion.HIVE_3)) {
-      assertThat(timestampField.getFieldObjectInspector().getClass().getSimpleName())
-          .isEqualTo("IcebergTimestampObjectInspectorHive3");
-    } else {
-      assertThat(timestampField.getFieldObjectInspector())
-          .isEqualTo(IcebergTimestampObjectInspector.get());
-    }
+    assertThat(timestampField.getFieldObjectInspector().getClass().getSimpleName())
+        .isEqualTo("IcebergTimestampObjectInspector");
 
     // timestamp with tz
     StructField timestampTzField = soi.getStructFieldRef("timestamptz_field");
     assertThat(timestampTzField.getFieldID()).isEqualTo(12);
     assertThat(timestampTzField.getFieldName()).isEqualTo("timestamptz_field");
     assertThat(timestampTzField.getFieldComment()).isEqualTo("timestamptz comment");
-    if (HiveVersion.min(HiveVersion.HIVE_3)) {
-      assertThat(timestampTzField.getFieldObjectInspector().getClass().getSimpleName())
-          .isEqualTo("IcebergTimestampWithZoneObjectInspectorHive3");
-    } else {
-      assertThat(timestampTzField.getFieldObjectInspector())
-          .isEqualTo(IcebergTimestampWithZoneObjectInspector.get());
-    }
+    assertThat(timestampTzField.getFieldObjectInspector().getClass().getSimpleName())

Review Comment:
   we can probably just use the class directly (similarly to what has been previously done for Hive2:
   
   ```
   assertThat(timestampTzField.getFieldObjectInspector())
             .isEqualTo(IcebergTimestampWithZoneObjectInspector.get());
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1753036975


##########
mr/src/test/java/org/apache/iceberg/mr/hive/serde/objectinspector/TestIcebergObjectInspector.java:
##########
@@ -99,14 +98,9 @@ public void testIcebergObjectInspector() {
     assertThat(dateField.getFieldID()).isEqualTo(3);
     assertThat(dateField.getFieldName()).isEqualTo("date_field");
     assertThat(dateField.getFieldComment()).isEqualTo("date comment");
-    if (HiveVersion.min(HiveVersion.HIVE_3)) {
-      assertThat(dateField.getFieldObjectInspector().getClass().getName())
-          .isEqualTo(
-              "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive3");
-    } else {
-      assertThat(dateField.getFieldObjectInspector().getClass().getName())
-          .isEqualTo("org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspector");
-    }
+    assertThat(dateField.getFieldObjectInspector().getClass().getName())
+        .isEqualTo(
+            "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive");

Review Comment:
   I removed iceberg-mr from tests from removing the hive2 tests. Now it's added in hive3 tests while there are new test errors I need to fix. Thanks for catching this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1843854663


##########
mr/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergInputFormat.java:
##########
@@ -59,12 +57,12 @@ public class HiveIcebergInputFormat extends MapredIcebergInputFormat<Record>
   private static final Logger LOG = LoggerFactory.getLogger(HiveIcebergInputFormat.class);
   private static final String HIVE_VECTORIZED_RECORDREADER_CLASS =
       "org.apache.iceberg.mr.hive.vector.HiveIcebergVectorizedRecordReader";
-  private static final DynConstructors.Ctor<AbstractMapredIcebergRecordReader>
-      HIVE_VECTORIZED_RECORDREADER_CTOR;
+  private static DynConstructors.Ctor<AbstractMapredIcebergRecordReader>
+      hiveVectorizedRecordreaderCtor;

Review Comment:
   `HiveIcebergVectorizedRecordReader` is in `iceberg-hive3` module and can not be loaded in `iceberg-mr` tests.  Hence, we need to catch the exception and reassign it to `null`. Same for `HiveVectorizedReader`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1843836878


##########
mr/src/main/java/org/apache/iceberg/mr/mapreduce/IcebergInputFormat.java:
##########
@@ -213,11 +212,11 @@ private static final class IcebergRecordReader<T> extends RecordReader<Void, T>
 
     private static final String HIVE_VECTORIZED_READER_CLASS =
         "org.apache.iceberg.mr.hive.vector.HiveVectorizedReader";
-    private static final DynMethods.StaticMethod HIVE_VECTORIZED_READER_BUILDER;
+    private static DynMethods.StaticMethod hiveVectorizedReaderBuilder;

Review Comment:
   same as above. why is this non-final now?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1843517724


##########
mr/src/test/java/org/apache/iceberg/mr/hive/TestHiveIcebergStorageHandlerNoScan.java:
##########
@@ -770,9 +769,7 @@ public void testIcebergAndHmsTableProperties() throws Exception {
     if (Catalogs.hiveCatalog(shell.getHiveConf(), tableProperties)) {
       expectedIcebergProperties.put(TableProperties.ENGINE_HIVE_ENABLED, "true");
     }
-    if (HiveVersion.min(HiveVersion.HIVE_3)) {
-      expectedIcebergProperties.put("bucketing_version", "2");
-    }
+    expectedIcebergProperties.put("bucketing_version", "2");

Review Comment:
   nit newline above this



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2479686648

   > > I expect that there will be users trying to use HiveCatalog with old Hive versions.
   > 
   > @pvary We don't expect them to use iceberg 1.8+ with old Hive versions, right?
   
   I meant, that they will try to do it...


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2478468746

   I expect that there will be users trying to use HiveCatalog with old Hive versions.
   Do we want to (could we) throw a meaningful exception when this happens?
   
   Maybe we can throw an exception in the `HiveVersion.calculalte()`? I am not sure about this, as this will cause an error to be thrown when Hive is on the classpath, even if it is not used.
   
   Is HiveVersion used anywhere after this change?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2485757937

   Let me consult with the Hive folks and come back soon with a proposal.
   Thanks,
   Peter


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2481719211

   @pvary @nastra @Fokko
   Given Hive 3.1 is already broken on JDK 11+ before this PR, how about skipping these failed tests not to block removing Hive 2? I think upgrading to Hive 4 is a bigger change and effort, and needs more time and discussion.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2537550479

   We have a [consensus on the dev list](https://lists.apache.org/thread/jfcqfw9vhq4j7h0kwnlf338jgyzcq8s4) to drop hive-runtime and upgrade to Hive 4. I've submitted https://github.com/apache/iceberg/pull/11750 and will rework this PR once that's in.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 and Hadoop 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang closed pull request #10996: Remove Hive 2 and Hadoop 2
URL: https://github.com/apache/iceberg/pull/10996


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1734916650


##########
mr/build.gradle:
##########
@@ -52,8 +52,8 @@ project(':iceberg-mr') {
       exclude group: 'org.pentaho' // missing dependency
       exclude group: 'org.slf4j', module: 'slf4j-log4j12'
     }
-    compileOnly libs.hive2.metastore
-    compileOnly libs.hive2.serde
+    compileOnly libs.hive3.metastore

Review Comment:
   Please share your thoughts in the discussion thread on the dev list https://lists.apache.org/thread/zg14b8cor4lnbyd3t4n1297y2bwb1fsg.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2585490637

   This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the dev@iceberg.apache.org list. Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1843834812


##########
mr/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergInputFormat.java:
##########
@@ -59,12 +57,12 @@ public class HiveIcebergInputFormat extends MapredIcebergInputFormat<Record>
   private static final Logger LOG = LoggerFactory.getLogger(HiveIcebergInputFormat.class);
   private static final String HIVE_VECTORIZED_RECORDREADER_CLASS =
       "org.apache.iceberg.mr.hive.vector.HiveIcebergVectorizedRecordReader";
-  private static final DynConstructors.Ctor<AbstractMapredIcebergRecordReader>
-      HIVE_VECTORIZED_RECORDREADER_CTOR;
+  private static DynConstructors.Ctor<AbstractMapredIcebergRecordReader>
+      hiveVectorizedRecordreaderCtor;

Review Comment:
   not sure why this is non-final now?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2480424096

   > It's been back-ported to hive 3.1, but there's no new release yet. @pvary @nastra thoughts?
   
   Basically the missing release means that there is no Hive 3 with Java 11 (contrary to our previous expectations).
   
   If we start using Hive 4, we have to exclude the embedded Iceberg from the classpath.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2485864509

   I have learned that there are no Hive 3 releases are planned. So these tests will not work with Hive3.
   
   I would like to see the Hive connector upgraded to Hive 4 which supports Java 11, and based on the informations I have learned from the Hive folks, Hive 4.1.0 will support Java 17 too.
   
   @gaborkaszab mentioned that he could make some time to check if the upgrade is possible - if that is something that the community thinks would be useful. I would suggest to discuss this with a wide audience on the dev list before starting to work on it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1751671524


##########
mr/src/test/java/org/apache/iceberg/mr/hive/serde/objectinspector/TestIcebergObjectInspector.java:
##########
@@ -99,14 +98,9 @@ public void testIcebergObjectInspector() {
     assertThat(dateField.getFieldID()).isEqualTo(3);
     assertThat(dateField.getFieldName()).isEqualTo("date_field");
     assertThat(dateField.getFieldComment()).isEqualTo("date comment");
-    if (HiveVersion.min(HiveVersion.HIVE_3)) {
-      assertThat(dateField.getFieldObjectInspector().getClass().getName())
-          .isEqualTo(
-              "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive3");
-    } else {
-      assertThat(dateField.getFieldObjectInspector().getClass().getName())
-          .isEqualTo("org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspector");
-    }
+    assertThat(dateField.getFieldObjectInspector().getClass().getName())
+        .isEqualTo(
+            "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive");

Review Comment:
   also why doesn't the unit test fail if the wrong class is being used here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2482780914

   > The failed tests list [..]
   > Do we have these testing for Hive 3 on main branch now?
   
   I think these tests should be running fine with Java 8. The issue is that with Java 11 we can not use this Hive 3 release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1839800670


##########
hive3/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergInputFormat.java:
##########
@@ -63,19 +61,15 @@ public class HiveIcebergInputFormat extends MapredIcebergInputFormat<Record>
       HIVE_VECTORIZED_RECORDREADER_CTOR;
 
   static {

Review Comment:
   I don't think the `static` block is necessary anymore, meaning you can inline this into L61



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2478998374

   > I expect that there will be users trying to use HiveCatalog with old Hive versions.
   
   @pvary We don't expect them to use iceberg 1.8+ with old Hive versions, right?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1843196936


##########
.github/workflows/hive-ci.yml:
##########
@@ -66,34 +66,34 @@ concurrency:
   cancel-in-progress: ${{ github.event_name == 'pull_request' }}
 
 jobs:
-  hive2-tests:
+  mr-tests:
     runs-on: ubuntu-22.04
     strategy:
       matrix:
         jvm: [11, 17, 21]
     env:
       SPARK_LOCAL_IP: localhost
     steps:
-    - uses: actions/checkout@v4
-    - uses: actions/setup-java@v4
-      with:
-        distribution: zulu
-        java-version: ${{ matrix.jvm }}
-    - uses: actions/cache@v4
-      with:
-        path: |
-          ~/.gradle/caches
-          ~/.gradle/wrapper
-        key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
-        restore-keys: ${{ runner.os }}-gradle-
-    - run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
-    - run: ./gradlew -DsparkVersions= -DhiveVersions=2 -DflinkVersions= -DkafkaVersions= -Pquick=true :iceberg-mr:check :iceberg-hive-runtime:check -x javadoc
-    - uses: actions/upload-artifact@v4
-      if: failure()
-      with:
-        name: test logs
-        path: |
-          **/build/testlogs
+      - uses: actions/checkout@v4

Review Comment:
   indentation seems to be off here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang closed pull request #10996: Remove Hive 2
URL: https://github.com/apache/iceberg/pull/10996


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1843506343


##########
mr/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergInputFormat.java:
##########
@@ -113,17 +93,23 @@ public RecordReader<Void, Container<Record>> getRecordReader(
 
     if (HiveConf.getBoolVar(job, HiveConf.ConfVars.HIVE_VECTORIZATION_ENABLED)
         && Utilities.getVectorizedRowBatchCtx(job) != null) {
-      Preconditions.checkArgument(
-          HiveVersion.min(HiveVersion.HIVE_3), "Vectorization only supported for Hive 3+");
 
       job.setEnum(InputFormatConfig.IN_MEMORY_DATA_MODEL, InputFormatConfig.InMemoryDataModel.HIVE);
       job.setBoolean(InputFormatConfig.SKIP_RESIDUAL_FILTERING, true);
 
       IcebergSplit icebergSplit = ((IcebergSplitContainer) split).icebergSplit();
+      DynConstructors.Ctor<AbstractMapredIcebergRecordReader> ctor =

Review Comment:
   Probably it would be better to still keep a constant for this instead of recreating it every time



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2466177889

   @nastra This is ready for review now after 1.7.0 release.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2485349297

   @pvary I mean these tests already fail for hive 3 after dropping JDK 8 support. It's not caught before due to Hive 3 tests not running.  Please check https://github.com/apache/iceberg/pull/11584, where that is fixed and those tests fail for Hive 3.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2472951142

   > Remove Hive dependency from iceberg-mr and merge all Hive related codes into iceberg-hive3
   
   @manuzhang can we maybe do this in a separate step? I think the scope of this PR should really only be to remove Hive2 and set the default to Hive3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1839813669


##########
hive3/src/main/java/org/apache/iceberg/mr/hive/Deserializer.java:
##########


Review Comment:
   why are all of these files being moved from `iceberg-mr`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "nastra (via GitHub)" <gi...@apache.org>.
nastra commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1842669520


##########
mr/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergInputFormat.java:
##########
@@ -63,19 +61,15 @@ public class HiveIcebergInputFormat extends MapredIcebergInputFormat<Record>
       HIVE_VECTORIZED_RECORDREADER_CTOR;
 
   static {
-    if (HiveVersion.min(HiveVersion.HIVE_3)) {
-      HIVE_VECTORIZED_RECORDREADER_CTOR =
-          DynConstructors.builder(AbstractMapredIcebergRecordReader.class)
-              .impl(
-                  HIVE_VECTORIZED_RECORDREADER_CLASS,
-                  IcebergInputFormat.class,
-                  IcebergSplit.class,
-                  JobConf.class,
-                  Reporter.class)
-              .build();
-    } else {
-      HIVE_VECTORIZED_RECORDREADER_CTOR = null;
-    }
+    HIVE_VECTORIZED_RECORDREADER_CTOR =

Review Comment:
   can be inlined into L61



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2479763958

   > It's been back-ported to hive 3.1, but there's no new release yet. @pvary @nastra thoughts?
   
   What about using Hive4 instead?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1843512697


##########
mr/src/main/java/org/apache/iceberg/mr/mapreduce/IcebergInputFormat.java:
##########
@@ -479,6 +446,17 @@ private CloseableIterable<T> newOrcIterable(
       return applyResidualFiltering(orcIterator, task.residual(), readSchema);
     }
 
+    private DynMethods.StaticMethod buildVectorizedReader() {
+      return DynMethods.builder("reader")

Review Comment:
   Keep the static variable



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "pvary (via GitHub)" <gi...@apache.org>.
pvary commented on PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#issuecomment-2482012167

   > @pvary @nastra @Fokko Given Hive 3.1 is already broken on JDK 11+ before this PR, how about skipping these failed tests not to block removing Hive 2? I think upgrading to Hive 4 is a bigger change and effort, and needs more time and discussion.
   
   Which tests are failing? I'm afraid that most of the Hive execution based tests use HiveShell, which is not able to start. This would mean that we effectively remove Hive execution testing.
   I would much prefer to move to Hive4, and keep testing.
   
   BTW I see Spark test failures. Old Spark used embedded Hive 1.2. That was the reason for some of the Hive version check in the HiveTableOpereation code. You might need to check that too.
   
   Thanks for working on this!
   Peter


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Remove Hive 2 [iceberg]

Posted by "manuzhang (via GitHub)" <gi...@apache.org>.
manuzhang commented on code in PR #10996:
URL: https://github.com/apache/iceberg/pull/10996#discussion_r1753036975


##########
mr/src/test/java/org/apache/iceberg/mr/hive/serde/objectinspector/TestIcebergObjectInspector.java:
##########
@@ -99,14 +98,9 @@ public void testIcebergObjectInspector() {
     assertThat(dateField.getFieldID()).isEqualTo(3);
     assertThat(dateField.getFieldName()).isEqualTo("date_field");
     assertThat(dateField.getFieldComment()).isEqualTo("date comment");
-    if (HiveVersion.min(HiveVersion.HIVE_3)) {
-      assertThat(dateField.getFieldObjectInspector().getClass().getName())
-          .isEqualTo(
-              "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive3");
-    } else {
-      assertThat(dateField.getFieldObjectInspector().getClass().getName())
-          .isEqualTo("org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspector");
-    }
+    assertThat(dateField.getFieldObjectInspector().getClass().getName())
+        .isEqualTo(
+            "org.apache.iceberg.mr.hive.serde.objectinspector.IcebergDateObjectInspectorHive");

Review Comment:
   I removed iceberg-mr from tests when removing the hive2 tests. Now it's added in hive3 tests while there are new test errors I need to fix. Thanks for catching this.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org