Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-3419

Compilation error with query on view

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • COMP - Compiler

    Description

      Following are the steps to reproduce the issue

      create dataset users_channels1 PRIMARY KEY (__id: uuid) AUTOGENERATED;
      
      CREATE VIEW users_channel (__id string, name string, user_id string) DEFAULT NULL PRIMARY KEY (__id) NOT ENFORCED AS SELECT __id, name, user_id FROM `users_channels1`;
      
      select users_channel.* from users_channel where user_id="a"; 
      10:16:35.943 [HttpExecutor(port:19001)-13] ERROR org.apache.asterix - class org.apache.asterix.om.base.AMissing cannot be cast to class org.apache.asterix.om.base.AString (org.apache.asterix.om.base.AMissing and org.apache.asterix.om.base.AString are in unnamed module of loader 'app')
      java.lang.ClassCastException: class org.apache.asterix.om.base.AMissing cannot be cast to class org.apache.asterix.om.base.AString (org.apache.asterix.om.base.AMissing and org.apache.asterix.om.base.AString are in unnamed module of loader 'app')
          at org.apache.asterix.dataflow.data.nontagged.serde.AStringSerializerDeserializer.serialize(AStringSerializerDeserializer.java:37) ~[classes/:?]
          at org.apache.asterix.formats.nontagged.SerializerDeserializerProvider$1.serialize(SerializerDeserializerProvider.java:200) ~[classes/:?]
          at org.apache.asterix.formats.nontagged.SerializerDeserializerProvider$1.serialize(SerializerDeserializerProvider.java:175) ~[classes/:?]
          at org.apache.asterix.dataflow.data.nontagged.serde.ARecordSerializerDeserializer.serialize(ARecordSerializerDeserializer.java:190) ~[classes/:?]
          at org.apache.asterix.dataflow.data.nontagged.serde.ARecordSerializerDeserializer.serialize(ARecordSerializerDeserializer.java:48) ~[classes/:?]
          at org.apache.asterix.formats.nontagged.SerializerDeserializerProvider$1.serialize(SerializerDeserializerProvider.java:200) ~[classes/:?]
          at org.apache.asterix.formats.nontagged.SerializerDeserializerProvider$1.serialize(SerializerDeserializerProvider.java:175) ~[classes/:?]
          at org.apache.asterix.runtime.formats.NonTaggedDataFormat.getConstantEvalFactory(NonTaggedDataFormat.java:338) ~[classes/:?]
          at org.apache.asterix.jobgen.QueryLogicalExpressionJobGen.createConstantEvaluatorFactory(QueryLogicalExpressionJobGen.java:154) ~[classes/:?]
      

       

      Attachments

        Activity

          People

            peeyushgupta1 Peeyush Gupta
            peeyushgupta1 Peeyush Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: